Base solution for your next web application

Activities of "sparkyjr"

Hi Aaron,

My mistake! Apologies, it was a typo from my side! I have corrected my question.

I will take a look at links you have shared, and get back to you if it's needed.

Thanks, SparkyJr

Hi,

When I make a web request its taking too long for the constructor (MVC Controller as well as AppService) to get initialized. The thing is that the constructor has some services injected which in turn has some other services injected.

The example is as follows:

public class Example1AppService : AcmeAppServiceBase, IExample1AppService
    {
        private readonly IRepository<entity1> _entity1Repository;
        private readonly IExample2AppService _example2AppService;
        private readonly IExample3AppService _example3AppService;
        private readonly IExample4AppService _example4AppService; 

        public Example1AppService(
            IRepository<entity1> entity1Repository,
            IExample2AppService example2AppService,
            IExample3AppService example3AppService,
             IExample4AppService  example4AppService
            )
        {
            _entity1Repository =entity1Repository;
            _example1AppService = example1AppService; 
            _example2AppService = example2AppService;
            _example4AppService = example4AppService;
        }

and Example2AppService has a lot of Repositories as well as services injected in its constructor. And time taken to hit constructor of Example1AppService is quite long and measurable.

I have worked with dependency injection in different project before and have never faced issue with constructor intialization. The IOC container that we used was Autofac.

Thanks in advance

Thanks Alper!

We will apply this attribute on the controller actions then:

[UnitOfWork(isTransactional: false)]

Regards, SparkyJr

Hi Alper,

We login as one tenant user. Then, we are accessing controller action, which calls app service method for creating some items, then access a list of same items, and then access a dashboard, which has many other items.

So, in short, 15 concurrent users create, and fetch items from the DB.

Does that answer your question?

Regards, SparkyJr

Thanks Alper for your reply!

So, in short, we need to disable unit of work for the entire flow, right? Like from controller action to the app service methods, right?

Are there any known issues if we disable unit of work?

Regards, SparkyJr

I am using Visual Studio Load Test with a load of 15 users , server location set as East US. I am visiting a few pages and also perfoming a create operation in the test script. But when I run this test with 15 users the site slows down like anything and the page response time is very bad even for simple read operations. I have tried the following: Disabling Background jobs Registering the Castle dependencies explicitly Also disabling Unit of Work for certain read methods.

Please provide some possible suggestions as to what could be going wrong.

We are using Abp Version=0.8.3.0

Hi,

We are experiencing a very slow performance when there are as less as 10 users using our site.

We have a strong feeling that the tables/records are getting locked, and are not available for other users. Because, unit of work is like a transaction, am I correct?

Does unit of work lock tables/records? Does it lock tables/records even if the method is just fetching data?

Thanks in advance, SparkyJr

Hi ismcagdas,

Thanks for you reply!

I will be trying out what you guys have suggested, and will get back to you in case I need any help.

Regrads, SparkyJr

OK, thanks Aaron! That sounds good.

I am installing VS 2017 v15.5, and I am expecting it to fix the errors.

Regards, SparkyJr

Showing 11 to 20 of 71 entries