Building autonomous services
-
Upload
matthiasnoback -
Category
Software
-
view
125 -
download
1
Transcript of Building autonomous services
![Page 1: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/1.jpg)
Building Autonomous Services
Matthias Noback @matthiasnoback
![Page 2: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/2.jpg)
![Page 3: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/3.jpg)
![Page 4: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/4.jpg)
![Page 5: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/5.jpg)
This workshop only deals with queries
![Page 6: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/6.jpg)
![Page 7: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/7.jpg)
![Page 8: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/8.jpg)
![Page 9: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/9.jpg)
"What's the current state of something-
something?"
![Page 10: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/10.jpg)
The current state is the result of all past events
![Page 11: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/11.jpg)
![Page 12: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/12.jpg)
![Page 13: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/13.jpg)
![Page 14: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/14.jpg)
![Page 15: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/15.jpg)
tail -n 1 -f
![Page 16: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/16.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/17.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/18.jpg)
Demo
![Page 19: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/19.jpg)
Assignments
• 01.md - warming up
• 02.md (ultimate edition)
• Take a look at tips-and-tricks.md
![Page 20: Building autonomous services](https://reader034.fdocuments.us/reader034/viewer/2022042619/5a6ed0d37f8b9ad9638b50f3/html5/thumbnails/20.jpg)
https://training.matthiasnoback.nl/