Skip to Content
Akka in Action, Second Edition
book

Akka in Action, Second Edition

by Raymond Roestenburg, Rob Williams, Francisco Lopez Sancho, Robertus Bakker
August 2023
Intermediate to advanced content levelIntermediate to advanced
400 pages
11h 7m
English
Manning Publications
Content preview from Akka in Action, Second Edition

15 Akka betting house, part 2

This chapter covers

  • Creating projections and endpoints for them
  • Running an app locally and in Kubernetes

We began the betting-house example in chapter 12. There we had the three main actors representing the business: the bet, the market, and the wallet. The market is a specific sports event with odds to bet against. The wallet represents the account of a user with its balance. The bet is the amount of money invested in a market and backed by a wallet.

In this chapter, you add two projections: one for the markets and one for the bets. These projections transform some of the events they receive from the entities and push them—those from the markets into a Kafka topic, and those from the bets into a database (see ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Akka in Action

Akka in Action

Rob Williams, Raymond Roestenburg, Robertus Bakker
Akka in Action, Second Edition, Video Edition

Akka in Action, Second Edition, Video Edition

Robertus Bakker, Rob Williams, Raymond Roestenburg, Francisco Lopez-Sancho
Functional Programming in Scala, Second Edition

Functional Programming in Scala, Second Edition

Paul Chiusano, Runar Bjarnason, Michael Pilquist

Publisher Resources

ISBN: 9781617299216Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link