An open host service is a way of mapping between contexts that is appropriate for cases where you would expose access via APIs. What is a good way to represent a mapping beween contexts, where you intend to publish / consume domain events?
How domain events can be communicated (published / subscribed) across bounded context
644 Views Asked by plasmadrive At
1
There are 1 best solutions below
Related Questions in DOMAIN-DRIVEN-DESIGN
- How to use Interfaces in Domain Modelling DDD
- Domain driven design CQRS with multiple aggregates and bounded context
- Need more parameters in subclass overridden method
- Domain Driven Design: Aggregates Creating Aggregates
- How to deal with objects creation per request with high RPM node applications
- Async integration events needed sync
- In DDD where to handle interaction with external services that is part of business logic? In Domain Model or in Command Handler?
- How to split large time-related aggregates in DDD?
- One column with foreign key to multiple tables inf EntityFramework Core
- DDD & Clean Architecture: Why not define repositories in the application layer?
- Domain driven design: How to add a new database entry for an Aggregate?
- Integrate a versioning in aggregate
- when to pass args to the constructor of a service in ts?
- ASP.NET boilerplate module's dbcontext recreate abp main tables
- What's wrong with multiple entities in multiple bounded contexts pointing to the same identity?
Related Questions in BOUNDED-CONTEXTS
- What's wrong with multiple entities in multiple bounded contexts pointing to the same identity?
- How to create an object in multiple bounded contexts?
- How to manage identifiers for entities between bounded contexts in DDD?
- Validation in DDD requiring data from distinct bounded contexts
- How to validate stable identifiers across microservices/bounded contexts
- Managing Complexity in Communications between Multiple Bounded Contexts in DDD
- Is it recommended for a Bounded Context to communicate with another to validate entity relationships in Domain-Driven Design (DDD)?
- DDD Context Map – meaning of Arrows
- What is an Aggregate?
- Does the bounded context concept exist only in strategic DDD? Or it can be also be equal to the physical border of a service, in tactical DDD?
- How to resolve Order and Warehouse bounded contexts dependency when eventual consistency is not an option?
- Modeling (apparent?) dependency between DDD Bounded Contexts
- About the implementation of 'The abp bounded context module'
- Modular Monolith DB relations
- Always valid domain model entails prefixing a bunch of Value Objects. Doesn't that break the ubiquitous language?
Related Questions in DDDD
- how save ValueObject on Mongodb with c#?
- Have to handle an aggregate Id not being present in an event sourced eventual consistent system
- How to ensure data consistency between two different aggregates in an event-driven architecture?
- Domain Driven Design Calling Remote APIs
- Distrubuted domain driven design modeling
- Designing Leaderboard Scores in DDD
- How should I handle multiple aggregates root interaction
- DDD: It's correct to use Domain Events to guarantee invariants consistency? Do I have alternatives?
- Domain Driven Design: reference between entities of different aggregates
- How to manage two coupled aggregates in DDD?
- Domain Events for syncing data to other microservices
- How domain events can be communicated (published / subscribed) across bounded context
- How entities covered with in an aggregate Root are saved in DDD?
- DDD Domain Entity vs Persistence Entity
- Intermediate compute call before domain creation in DDD(Domain Driven Design)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
How to interact across bounded context when domain events occurs in the system ?
Interacting via events is a very powerful way to develop the application. Once you get used to this you will feel very easy and convenient way to interact within and across systems (depending on the business needs).
Let us consider you have two bounded context context-A and context-B respectively. In bounded context-A based on certain business logic in domain model you want to notify the other bounded context-B to take certain action.
In this case after executing your business logic in domain model. You can create an domain event from your domain service and let your application service (which is local to your bounded context in this case context-A) manage to fire an Domain Event to the publisher with help of your infrastructure layer. Now the publisher can store this event in the Event Store and then forward to the Messaging Queue.
The Subscriber in bounded context-B can make arrangements to listen to the events on bus and take required action to be executed.
Thus how in domain driven design we can organise to publish or subscribe to the domain events.
Hope this high level explanation may help.