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 answers
Related Questions in DOMAIN-DRIVEN-DESIGN
- Should i take DateTime.Now from Database?
- How to avoid anemic data model? Can repositories be injected into entities?
- Defining aggregate roots when invariants exist within a list
- Is it okay to create a DTO counterpart of a table in a database assuming its persistent ignorant domain model and the DTO is in the repository?
- Should i do authorization on my Domain Services?
- Should i validate if related entity exists before insert?
- Using framework event dispatcher to raise domain event
- How to temporarily circumvent domain object's creation contracts when restoring application from backup?
- Domain Driven Design for Rails App: Implementing a service in a basic example
- DDD\CQRS\Event Sourcing and request historical data
- Is it possible to properly use DDD with all building blocks in monolith application?
- Replicate property size from domain to fluent api and viewmodel
- DDD aware of existance of an entity outside the context?
- Is there a way to access a private property in a where clause?
- Should I unite business domains into one business layer
Related Questions in BOUNDED-CONTEXTS
- Communication between classes of multiple domain's on same underlying DB table
- .net implementation of communication between aggregate roots in different bounded context
- Good practice to handle a use case requiring data from another bounded context
- Creating multiple contexts in Entity Framework Code First
- How to deal with MVC ViewModel - Domain Model - Entity in MVC controllers and services
- Validation in DDD requiring data from distinct bounded contexts
- Should database primary keys be used to identify entities across microservices?
- How to improve my design to handle a business rule spanning multiple microservices/bounded contexts?
- Bounded context and infrastructure relationship
- Documenting the aggregates & relations between microservices
- Return HTML from bounded context
- Microservice, bounded context and shared data
- Modern monolitical application
- Bounded Context in EntityFramework CodeFirst
- DDD: how to organize builders that bootstrap domain objects? Same Bounded Context?
Related Questions in DDDD
- Repository or ServiceAgent in DDD
- Domain Driven Design: reference between entities of different aggregates
- DDD: It's correct to use Domain Events to guarantee invariants consistency? Do I have alternatives?
- Distrubuted domain driven design modeling
- CQRS, DDDD in an accounting domain
- Which is the best way to separate aggregate in DDD
- Domain Events for syncing data to other microservices
- How domain events can be communicated (published / subscribed) across bounded context
- Using Kafka as a (CQRS) Eventstore. Good idea?
- Query remote rest service from ddd aggregate
- DDDD: Event data
- EventSourcing inside and outside Bounded Contexts
- How to deal with updating Entity (CRUD) and Domain Events using DDD?
- Distributed Domain Driven Design Resources
- Designing Leaderboard Scores in DDD
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?
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)
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.