The bakery project

The bakery contains a few employees working together to produce delicious cookies. The structure of their communication is represented in the following diagram:

Each of the employees is skilled in a specific area:

  • The Manager drives the process by taking the results of the work of each of the participants and giving them to the next step in the flow. They also create initial shopping lists.
  • The Boy, if given a shopping list, will run to the grocery store and return with groceries.
  • The Chef, if given groceries, will make dough. They do so by creating a couple of Mixers of limited capacity so that bigger amounts of groceries can be processed in parallel.
  • The Cook, if given dough, makes some raw cookies.
  • The Baker, if given raw cookies, will bake them for some time using the Oven, hence producing delicious cookies.

This time we're going to model each worker as a microservice. The Mixers and the Oven will become implementation details of the owning service. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.66.94