Book Image

Mastering ServiceStack

By : Andreas Niedermair
Book Image

Mastering ServiceStack

By: Andreas Niedermair

Overview of this book

Table of Contents (13 chapters)

Chapter 3. Asynchronous Communication between Components

In this chapter we will cover the following topics:

  • In Memory MQ

  • RCON

  • RedisMQ

  • RabbitMQ

  • Server-sent events

  • Look left and right

The recent release of .NET has added several new ways to further embrace asynchronous and parallel processing by introducing the Task Parallel Library (TPL), async, and await.

The need for asynchronous processing is present since the early days of programming. Its main concept is to offload the processing to another thread or process to release the calling thread from waiting and it has become a standard model since the rise of GUIs.

In such interfaces only one thread is responsible for drawing the GUI, which must not be blocked in order to remain available and not putting the application in a non-responding state.

This paradigm is a core point in distributed systems, at some point, long running operations are offloaded to a separate component, either to overcome blocking or to avoid resource bottlenecks using dedicated...