Chapter 4Consuming Backing Services with JRuby

Twitalytics requires some new features that trigger each time a post is created. It must retain a per-user count of new posts, annotate each new post with the stock price markup you implemented in Chapter 1, Getting Started with JRuby, and stream this information back to its clients.

Each feature adds a challenging concern to Twitalytics. One is stateful, one consumes a microservice over the network, and one must send the same data across multiple connections. None of these features are well suited to the synchronous request-response cycle of a traditional web application, which is why you’ll need to implement these features with the help of some backing services.

In this chapter, you’ll ...

Get Deploying with JRuby 9k 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.