20
Building Autonomous Services Matthias Noback @matthiasnoback

Building autonomous services

Embed Size (px)

Citation preview

Page 1: Building autonomous services

Building Autonomous Services

Matthias Noback @matthiasnoback

Page 2: Building autonomous services
Page 3: Building autonomous services
Page 4: Building autonomous services
Page 5: Building autonomous services

This workshop only deals with queries

Page 6: Building autonomous services
Page 7: Building autonomous services
Page 8: Building autonomous services
Page 9: Building autonomous services

"What's the current state of something-

something?"

Page 10: Building autonomous services

The current state is the result of all past events

Page 11: Building autonomous services
Page 12: Building autonomous services
Page 13: Building autonomous services
Page 14: Building autonomous services
Page 15: Building autonomous services

tail -n 1 -f

Page 16: Building autonomous services

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.

Page 17: Building autonomous services

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.

Page 18: Building autonomous services

Demo

Page 19: Building autonomous services

Assignments

• 01.md - warming up

• 02.md (ultimate edition)

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

Page 20: Building autonomous services

https://training.matthiasnoback.nl/