August 2023
Intermediate to advanced
400 pages
11h 7m
English
This chapter covers
This chapter presents a real-world example. The functionality is only part of a large business use case: sports betting. The idea is to create three actors at the business’s core:
The market is a sporting event with specific odds that can be bet against. For example, the Liverpool vs. Real Madrid soccer match has a market where bets can be placed on a home win, an away win, or a draw.
The wallet represents a user’s account with their balance.
The bet is the amount of money invested in a market and secured by a wallet.
These entities reside in a cluster, so they can communicate directly. To communicate ...