Leira.EventSourcing
1.1.0
Prefix Reserved
dotnet add package Leira.EventSourcing --version 1.1.0
NuGet\Install-Package Leira.EventSourcing -Version 1.1.0
<PackageReference Include="Leira.EventSourcing" Version="1.1.0" />
paket add Leira.EventSourcing --version 1.1.0
#r "nuget: Leira.EventSourcing, 1.1.0"
// Install Leira.EventSourcing as a Cake Addin #addin nuget:?package=Leira.EventSourcing&version=1.1.0 // Install Leira.EventSourcing as a Cake Tool #tool nuget:?package=Leira.EventSourcing&version=1.1.0
Leira.EventStore
Strongly typed event sourcing framework that useses CosmosDb as a datastore with strong consistency and resiliency.
About Event Sourcing
Traditionally, developers used to store state in databases, however this can be a problem as it doesn't track what happened to get to that end state. Making data auditing and applications debugging more difficult. Event Sourcing is the concept of storing all events that lead to the current state, which allows you to construct your endstate anytime on the fly.
Terminologies
Aggregate
An aggregate is your state object, eg. User, this is your UserAggregate. The aggregate can execute Commands & apply Events.
Command
A command is the action that the user takes in order to take an action, eg. Signup, ChangePassword ...etc. The command is responsible to validate the current state and that it can take the necessary action, however it doesn't change the state it self. Each command emmit Event(s) that change the state of the aggregate.
Event
Emitted by Commands, events are units of change against an Aggregate. Each event changes the state of the Aggregate appropriately.
Features
- Commands Idepmotency (Prevents the same command from running twice.
- Automatic Commands Storage.
- Automatic Events Versioning.
- Automatic Snapshotting.
- Cross Servers Concurrency and Consistency.
- Strong or Loose Consistency options.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Microsoft.Azure.Cosmos (>= 3.8.0)
- Microsoft.Extensions.Caching.Abstractions (>= 3.1.4)
- Microsoft.Extensions.Caching.Memory (>= 3.1.4)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.