5. REAL EXAMPLES WRITTEN IN PHP
SHOWCASING DDD ARCHITECTURAL
STYLES, TACTICAL DESIGN, AND BOUNDED
CONTEXT INTEGRATION
foreword by Matthias Noback
https://leanpub.com/ddd-in-php
60. WRAP-UP
INTEGRATING BOUNDED CONTEXT TIPS
▸ Integration strategies: Messaging (Async) over REST (Sync)
▸ Start firing Domain Events from deeper in your Model as possible
▸ Add simple listeners in your bootstrapping (Elastic + Kibana)
▸ Persist Domain Events into your main storage in the same Tx as Domain changes
▸ Provide an API endpoint for your Domain Events so other apps can get in sync
▸ Publish your Domain events to a Messaging System (RabbitMQ) and keep track of the last
messages sent
▸ Protect yourself with Idem Potent operations