Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Integrating Bounded Contexts

Integrating Bounded Contexts

A bounded context is a safe place for models to evolve freely. There are no conflicts or contradictions within a bounded context. So, how does one convey important and meaningful changes that happen within the context that can impact the overall system? Messaging can be useful as an integration mechanism between bounded contexts. Learn how you can combine the principles of DDD with event-driven architecture to build truly autonomous services, a.k.a microservices.

Indu Alagarsamy

February 05, 2020
Tweet

More Decks by Indu Alagarsamy

Other Decks in Programming

Transcript

  1. WHEN an aircraft type is changed: Passenger gets notified with

    a new booking proposal Passenger can cancel flight Passenger can accept proposed booking @indu_alagarsamy
  2. Mycenae, Greece A Business Process can be triggered by an

    event from a different bounded context AircraftTypeHasChanged FLIGHT PLANNING BOUNDED CONTEXT BOOKING BOUNDED CONTEXT WHEN an aircraft type is changed @indu_alagarsamy
  3. Mycenae, Greece Multiple messages can take part in a business

    process AircraftTypeHasChanged NotifyCustomer RebookFlight BookingWasCancelled @indu_alagarsamy FLIGHT PLANNING BOUNDED CONTEXT BOOKING BOUNDED CONTEXT
  4. WHEN an aircraft type is changed: Only passengers with Premium

    status gets notified with a new booking proposal Passenger can cancel flight Passenger can accept proposed booking @indu_alagarsamy
  5. @indu_alagarsamy Talk to domain experts. Eventstorm with them. Models are

    not perfect Evolve and refactor with an obsession for domain language Strive for Autonomy. Use events to communicate between bounded contexts