F
F
FairyFox57002020-03-30 16:36:42
ASP.NET
FairyFox5700, 2020-03-30 16:36:42

Should all methods in repositories be asynchronous?

I have repositories for domain models with CRUD operations. Should all these operations be made asynchronous, or should we limit ourselves to GetAsync(), DeleteAsync()?
Is there any benefit to these asynchronous repositories at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2020-03-30
@FairyFox5700

Yes, when used correctly, asynchronous methods allow you to reuse threads and thereby increase application throughput.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question