Event-Driven Architecture in Golang by Michael Stack

Event-Driven Architecture in Golang by Michael Stack

Author:Michael Stack
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2022-11-03T00:00:00+00:00


Figure 7.2 – Store Management data usage

The Store and Product data flows out from the Store Management module to the rest of the application. It is sometimes pulled, and sometimes it is pushed:

Shopping Baskets and the Depot module make calls to pull in Store and Product data.

Order Processing accepts Store and Product data pushed from the Shopping Baskets module in its CreateOrder endpoint.

The data that is being pulled into the Shopping Baskets and Depot modules could be replaced with local cached copies of the data. The data that is shared with the Order Processing module is secondhand data not owned by the calling module. Stores and products are used in Order Processing only when details about an order are being requested. We will make the following changes to the Shopping Baskets and Depot modules:

Update the existing repositories to process data updates for stores and products

Create new tables that will work as our local cache

Use the existing gRPC calls as fallbacks when the local cache is missing data

Update the integration event handlers to use the cache repositories



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.