August 2023
Intermediate to advanced
400 pages
11h 7m
English
This chapter covers
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 ...