I was assigned to a new project, which was already running. I noted that people created all repository classes with async
methods and they are called in the controllers with await
, every time, so they are essentially working as synchronous code.
There is not possibility that they will be called asynchronously in future and the server, has a single SQL Server instance running.
It came from a kind of seed API project, the people who created it are no longer in the company and now no one knows exactly why they are async
. But I think that in the current project scenario, it doesn't make sense to make them async
at all, it's just adding unnecessary complexity to the system.
Does it make sense to make them async
at all in such scenario?