Home > front end >  Async/Await in high-scale projects
Async/Await in high-scale projects

Time:07-12

Is using Async/Await in calling every database methods(Repository Pattern) in a large and high scale project, ok? Is it going to lower my server performance? Sorry for my English :(

CodePudding user response:

Is using Async/Await in calling every database methods(Repository Pattern) in a large and high scale project, ok?

Yes.

Is it going to lower my server performance?

The speed of each individual request will remain approximately the same. However, the scalability of your sever will increase (become more performant), assuming that your database backend is also scalable.

CodePudding user response:

The performance of your server does not depend on whether the calls are synchronous or asynchronous, but it does depend on how many calls are made at the same time (concurrency) and of course the hardware or resources available to the server.

  • Related