Revo is an application framework for modern server C#/.NET applications built with event sourcing, CQRS and DDD.
The framework combines the concepts of event sourcing, CQRS and DDD to provide support for building applications that are scalable, maintainable, can work in distributed environments and are easy to integrate with outside world. As such, it takes some rather opinionated approaches on the design of certain parts of its architecture. Revo also offers other common features and infrastructure that is often necessary for building complete applications – for example, authorizations, validations, messaging, integrations, multi-tenancy or testing. Furthermore, its extensions implement other useful features like entity history change-tracking, auditing or user notifications.
Domain-Driven Design
Building blocks for rich DDD-style domain models (aggregates, entities, value objects, domain events, repositories...).
Event Sourcing
Implementing event-sourced entity persistence with support for multiple event store backends (PostgreSQL, MSSQL...).
CQRS
Segregating command and query responsibilities with:
- Commands and queries
- Command/query handlers
- Processing pipeline with filters for cross-cutting concerns (authorization, validation)
- Different read/write models
A/synchronous event processing
Support for both synchronous and asynchronous event processing, guaranteed at-least-once delivery, event queues with strict sequence ordering (optionally), event source catch-ups, optional pseudo-synchronous event dispatch for listeners (projectors, for example).
Data access
Abstraction layer for Entity Framework 6, RavenDB, testable in-memory database or other data providers.
Projections
Support for read-model projections with various backends (e.g. Entity Framework Core (PostgreSQL, MSSQL...), Entity Framework 6, RavenDB...), automatic idempotency- and concurrency-handling, etc.
SOA and integration
Scale and integrate by publishing and receiving events, commands and queries using common messaging patterns,
e.g. with RabbitMQ message queue and/or uses Rebus service bus.
Sagas
Coordinating long-running processes or inter-aggregate cooperation with sagas that react to events
(a.k.a. process managers).
Authorization
Basic permission/role-based ACL for commands and queries, fine-grained row filtering.
Other minor features:
- Validation for commands, queries and other structures.
- Jobs
- Multi-tenancy
- Event message metadata
- Event versioning
- History and change-tracking
- User notifications: event-based, with mail/APNS/FCM output channels, supporting aggregation, etc.
- ASP.NET Core (.NET Standard) & ASP.NET support
(TODO)
Binaries are up for grabs in form of NuGet packages:
Core | |
---|---|
Revo.Core | |
Revo.DataAccess | |
Revo.Domain | |
Revo.Infrastructure | |
Revo.Testing |
Data access | |
---|---|
Revo.EFCore | |
Revo.EFCore.AspNetCoreOData | |
Revo.EF6 | |
Revo.EF6.AspNetOData | |
Revo.RavenDB | |
Revo.RavenDB.AspNetOData |
Platforms | |
---|---|
Revo.AspNetCore | |
Revo.AspNet | |
Revo.Hangfire |
Other integrations & extensions | |
---|---|
Revo.Extensions.AspNet.Interop | |
Revo.Extensions.History | |
Revo.Extensions.Notifications | |
Revo.Rebus |
Most applications will require at least Revo.Core, Revo.DataAccess, Revo.Domain, Revo.Infrastructure packages to get started with and then typically a platform package like Revo.Platforms.AspNetCore (ASP.NET Core platform implementation) and a data-access package like Revo.EFCore (for Entity Framework Core support).
(TODO)
For now, see the sample Hello World application in the examples folder (Examples/Revo.Examples.HelloAspNet.Bootstrap) and the reference guide.
The framework is written in C# 7.1 and targets the .NET Standard 2.0 specification; some of its modules currently also use .NET Core 2.1 (ASP.NET Core) or .NET Framework 4.7.1 where needed (e.g. Entity Framework 6 support). Revo also makes a heavy use of the C# async/await pattern and uses the TAP (Task Asynchronous Pattern) throughout its entire codebase (i.e. async all the way).
MIT License
Copyright (c) 2017-2018 Martin Zima
Copyright (c) 2017-2018 ASP a.s.Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH > THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.