Cloud Native Development Patterns and Best Practices by John Gilbert

Cloud Native Development Patterns and Best Practices by John Gilbert

Author:John Gilbert
Language: eng
Format: epub, pdf
Publisher: Packt
Published: 2018-02-12T10:51:17+00:00


Solution

Redesign the user experience to be eventually consistent. Replace synchronous inter-component communication with asynchronous inter-component communication by using the event stream to publish events which trigger downstream commands. Upstream components apply the Database-First variant of the Event Sourcing pattern to publish domain events that reflect changes in their state. Downstream components react to the domain events by performing a command and publishing a domain event to reflect the outcome of the command.

This cycle repeats through as many steps as are necessary to complete the activity. The cycle can fan-out to perform steps in parallel and then fan-in as well. Collaborators apply the CQRS pattern to avoid needing to synchronously retrieve relevant information. The CQRS Event Sourced Join technique can be used to implement fan-in. Ultimately, the outcome of the collaboration is revealed to the user.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.