Building autonomous services

Preview:

Citation preview

Building Autonomous Services

Matthias Noback @matthiasnoback

This workshop only deals with queries

"What's the current state of something-

something?"

The current state is the result of all past events

tail -n 1 -f

Solving the query issue

1. Services publish their events.

2. Other services subscribe to these events and update their own state accordingly.

3. They can build up any projection they like. This gives them the answers they need, without even asking.

About the domain

• We have a much simplified warehousing domain with several contexts:

1.Managing products in a catalog.

2.Receiving products (that were previously purchased from a supplier). This increases our stock levels for the received products.

3.Selling products from stock. A "sales order" represents the fact that we reserve the ordered products. This effectively decreases the stock levels for the ordered products.

Demo

Assignments

• 01.md - warming up

• 02.md (ultimate edition)

• Take a look at tips-and-tricks.md

https://training.matthiasnoback.nl/

Recommended