concept throughput in category akka

appears as: throughput, throughput
Reactive Applications with Akka .NET

This is an excerpt from Manning's book Reactive Applications with Akka .NET.

In testing, when you have a dependency on an external service, you should replace it with something that optimizes system efficiency and throughput. Although this can be configured manually, a DI framework allows for the easier resolution of complex dependency graphs. A dependency graph is the chain of dependencies that builds up as dependencies depend on other services. For example, you may have a dependency on Gmail within your application, but Gmail itself might require an abstraction over the top of an email client.

In line with the Manifesto, you want to build applications that are responsive even under a heavy load. When considering scaling techniques, you saw that the most appropriate choice for rapid scalability is scaling out. You can use this approach to distribute messages to many targets without creating a bottleneck on a single actor. But so far, we haven’t addressed increasing the throughput of message queues. Akka.NET provides a number of implementations of routing logic that distribute messages through the router to its routees. Routers allow for a wide variety of behaviors, thus allowing you to build applications that remain responsive even under intense load.

Figure 7.14. A router allows you to receive a huge number of messages, in this case when users visit a web page to see an ad, and allows you to split those messages across multiple actors, thus increasing throughput.

In cases where you need to react on demand to unpredictable usage, routers allow you to scale the number of actors to receive and process messages. By parallelizing processing, you can easily increase throughput while also reducing response times.