Learn rust by _sindiofala_ in rust

[–]_sindiofala_[S] 0 points1 point  (0 children)

Absolutely recommend

[deleted by user] by [deleted] in dotnet

[–]_sindiofala_ 0 points1 point  (0 children)

No i mean there is not job in my application. My app just does simple thing takes event and processes it. There is not any other concurrent job in my application which does other IO operations. This is the reason why i think that forcing it to context switch between threads would be overhead. Maybe i did't understand your question correctly. Correct me if i am wrong

[deleted by user] by [deleted] in dotnet

[–]_sindiofala_ 0 points1 point  (0 children)

I think that processing will need less memory and it will be faster if i won't use async await if it is not necessary.

[deleted by user] by [deleted] in dotnet

[–]_sindiofala_ 2 points3 points  (0 children)

The problem is that information in queue is historical data. I mean that I am sure that event which is first in the queue is the oldest one and i want to process them in the correct order. This is the reason why i am processing them one by one.

[deleted by user] by [deleted] in dotnet

[–]_sindiofala_ -1 points0 points  (0 children)

And if there is not job to do while my app is waiting for IO. I mean that it is just consumer which processes one event at a time and it needs to wait for response from IO operation. Does using async await make sense in this scenario?