Skip to content
.NET event sourced domain driven design model via NServiceBus and GetEventStore
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
samples Update samples to latest version Mar 12, 2019
src Child tracker stream generation was not getting the right parent id a… Mar 12, 2019
.gitattributes Initial commit Dec 26, 2014
.gitignore changes from the netstandard branch going mainstream Mar 30, 2018
Aggregates.NET.sln move samples into different solutions Jun 8, 2018
LICENSE Initial commit Dec 26, 2014 make a correct version tag Mar 9, 2019
appveyor.yml Update packages, project badges, appveyor and build logics Jun 6, 2018
build.cake Test repository should check if stream exists for NEW streams to mimi… Jun 7, 2018
build.ps1 Add build scripts Sep 20, 2017 Add build scripts Sep 20, 2017
icon.png changes from the netstandard branch going mainstream Mar 30, 2018

Build Build status
Coverage Coveralls Coverage Status SonarCloud SonarCloud
Quality SonarCloud GitHub issues
Nuget Nuget

Aggregates.NET v0.15

Aggregates.NET is a framework to help developers integrate the excellent NServiceBus and EventStore libraries together.

This library contains code to help create and manage domain driven design objects such as Aggregates, Entities, Value Objects, etc. This framework is by far not the only option, other libraries include:

This project was originally inspired by and still uses many ideas from NES and CommonDomain.

What will Aggregates.NET do for you?

We fill in the gap between EventStore and NServiceBus. Commands from NServiceBus are applied to aggregate objects via message handlers and events generated via the aggregates are saved to the event stream and published to the bus.

Current features include -

  • Entities (Aggregates)
  • Children entities of entities (infinite parenthood)
  • Snapshotting
  • Query pattern
  • Unit of Work and Repository pattern
  • Automatic saving and publishing of domain events
  • Out of band events (events saved or published which do not affect business logic of entity)
  • Bulk command and event delivery
  • Intelligent and configurable conflict resolution
  • Automatic configuration of projections and competing consumers for consumers
  • EventStore sharding
  • Automatic command accept/reject replies
  • Ton of performance counters


Aggregates.NET is not slow - but I did not write it focused on bleeding fast performance. "Premature optimization is bad" etc etc. Aggregates.NET is however designed with features meant to allow you to perform well. A great example is the support for bulk command and event processing. When setup you can have your app process say 1000 messages of a specific type at once instead of one at a time. The advantage being that you can cache objects while processing saving a vast amount of read time from your database.
These features of course have trade offs and should only be used in specialized circumstances but when your app is tuned correctly you'll definitely see greater throughput than a traditional read, hydrate, write, repeat paradigm.

Currently Aggregates.NET offers the following performance features:

  • Snapshotting
  • Bulk message (commands and events) delivery
  • Special "weak" conflict resolver which delays stream conflict resolution preventing conflict hell
  • Smart snapshot store
  • Out of band events
  • Async throughout


Aggregates.NET is still under development but I personally am using it in 2 projects so its very usable. Expect fairly often updates via Nuget as I tend to add and fix things when the issue pops up. Sometimes the packages have a bug or some small issue but I always fix it right away. I do not have any plans yet for 'stable' releases so only use the library is you are comfortable with beta builds.

I have no plans to freeze the API or do semantic versioning anytime soon - so keep that in mind when updating packages

Other Transports / EventStores

I welcome pull requests for other transports or stores - otherwise they'll only be added if I need them


Nuget packages are available under the id Aggregates.NET. There are also binaries and source code releases available via github.


This is a one man project so documentation is lacking - sorry about that. If you have any questions about using Aggregates.NET feel free to contact me via email or slack (the ddd/cqrs slack group)

You can’t perform that action at this time.