Architecture

Efficiently Handling Asynchronous Request-Reply with an In-Memory Queue and MediatR in C#

April 1, 2023 in MediatR Domain Driven Design Architecture
Read Time: 9 minutes
Efficiently Handling Asynchronous Request-Reply with an In-Memory Queue and MediatR in C#
What is the Asynchronous Request-Reply Pattern Over the years I’ve often needed this pattern, I just didn’t know it had a name. Oftentimes, we’d like to kick off long running process from the user interface to your backend server. The problem is that HTTP isn’t great at handling long-running processes. Case in point, the default timeout on the HttpClient class is 100 seconds. What I’ve typically done is simply extend the timeout to something ridiculous to ensure that my process won’t time out.
Read more...