Stackexchange.redis: Question: Is it recommended to use the Async methods in the StackExchange.Redis API

Created on 25 Oct 2018  路  3Comments  路  Source: StackExchange/StackExchange.Redis

Redis operations are extremely fast. I don't have the link to the Microsoft documentation where it specifies that you don't need to/shouldn't use async for operations under 50ms, but I recall hearing this point.

For this reason, should Async operations even be used? (In fast Redis environments)

question

All 3 comments

I think it depends. Theres a SO question about this and it seems like the "under 50ms" guideline only applies to UI applications

It's all async under the covers in 2.x due to pipelines and generally how we pipeline data as a task stream of sorts (and this was already largely true in 1.x) - if you're in an async path, then yes - use the async methods and lighten your IO/thread load a bit.

Closing out to cleanup :)

Was this page helpful?
0 / 5 - 0 ratings