Comments (3)
Hi @imvision I decided not to adresse firing events for external systems because data stores usually support triggering events natively (e.g., DynamoDB Stream or CosmosDB change feed)
Otherwise one can always implement publishing events in domain repositories, or by inheriting the event stores provided in this library.
from eventsourcing.
I was just doing some proof of concept for an accounting system using file persistence and realized that there was no way to build read models. Now I want to use MSSQL for the read model but only if the event store could trigger events after aggregates are persisted successfully. I guess I can create a base repository that can handle the publishing of events for all the inherited domain repos.
Thanks for response.
from eventsourcing.
I hope you don't mind me posting this hear, Jaques. It seems relevant to this question.
I have built three libraries that extend yours so that it can be used to fire integration events used by external systems.
I have created base classes and interfaces that can be extended to use any ORM, database and dependency injection framework. I have also provided a full implementation for EF Core, SQL Server and Microsoft.Extensions.DependencyInjection.
They use the DotNetCore.CAP library to publish the integration events only when the domain event has been persisted successfully to the event store. I.e. using the "Outbox Pattern".
They are here:
https://github.com/BenjaminCharlton/JKangEventSourcingWithCap
They can also be downloaded as Nuget packages.
I hope it's helpful. I would welcome feedback (especially contributions) from you or anybody else interested.
from eventsourcing.
Related Issues (14)
- Support using Azure Table Storage as event store
- Snapshots HOT 3
- Support using AWS DynamoDB as event store
- support using Azure Cosmos DB as event store
- Handling concurrency HOT 3
- Support rehydrating an entity at specific version
- Provide an abstract aggregate repository which supports distributed caching
- CQRS and Event Projection Samples
- TakeSnapshot Problem
- Great library! Should the DateTimes be changed to DateTimeOffset?
- What is the difference between Caching and Snapshot?
- Hot to make the aggregate thread-safe (suggestions)?
- TextFileSnapshotStore.FindLastSnapshotAsync crashes when unrelated snapshots are present
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventsourcing.