Chapter 7. Reactive streaming
This chapter covers
- Seeing the dangers of unbounded buffers
- Safeguarding your application with backpressure
- Using Akka Streams in your application
- Integrating Akka Streams with other toolkits
In chapter 6, you learned how to cross actor system boundaries and send messages to remote actors. In this chapter, you learn how to prevent an application from being overwhelmed by too many messages. The reactive approach to regulating streams of messages so that they don’t become floods is called backpressure.
Akka applies backpressure for you through Akka Streams. On the surface, Akka Streams is similar to other libraries you may have encountered, such as the java.util.stream package introduced in Java 8. You can take ...
Get Reactive Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.