Chapter 2. Your first reactive web application

This chapter covers

  • Creating a new Play project
  • Streaming data from a remote server and broadcasting it to clients
  • Dealing with failure

In the previous chapter, we talked about the key benefits of adopting a reactive approach to web application design and operation, and you saw that the Play Framework is a good technology for this. Now it’s time to get your hands dirty and build a reactive web application. We’ll build a simple application that connects to the Twitter API to retrieve a stream of tweets and send them to clients using WebSockets.

2.1. Creating and running a new project

An easy way to start a new Play project is to use the Lightbend Activator, which is a thin wrapper around ...

Get Reactive Web Applications 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.