Search⌘ K

Data Replication, Bounded Contexts, & Protocols

Understand how data replication within bounded contexts supports asynchronous microservices by maintaining encapsulation and reducing coupling. Learn the differences between synchronous protocols like REST and asynchronous messaging protocols such as Kafka and how they enable resilient communication in microservice systems.

Data replication and bounded context #

Asynchronous communication becomes more complicated if data is required to execute a request.

For example, in the catalog, the order process, and the invoice data about products and customers has to be available.

Each of the systems stores a part of the information about these business objects.

  • The catalog must display the products, so it has pictures and descriptions of the products.
  • For invoices, prices and tax rates are important.

This corresponds to the definition of bounded contexts.

Each bounded context has its own domain model. That means that all data for the bounded context is represented in its domain model. ...