All Projects → charlessolar → Todomvc Ddd Cqrs Eventsourcing

charlessolar / Todomvc Ddd Cqrs Eventsourcing

Licence: mit
Implementation of basic Todo app via tastejs/todomvc in C#/Typescript with eventsourcing, cqrs, and domain driven design

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Todomvc Ddd Cqrs Eventsourcing

Eshoponcontainersddd
Fork of dotnet-architecture/eShopOnContainers in full DDD/CQRS design using my own patterns
Stars: ✭ 126 (-5.97%)
Mutual labels:  microservices, eventsourcing, eventstore, cqrs-es, example, netstandard, ddd, cqrs, domain-driven-design, backend, frontend
Eventflow
Async/await first CQRS+ES and DDD framework for .NET
Stars: ✭ 1,932 (+1341.79%)
Mutual labels:  eventsourcing, eventstore, cqrs-es, netstandard, ddd, cqrs, domain-driven-design
Bifrost
This is the stable release of Dolittle till its out of alpha->beta stages
Stars: ✭ 111 (-17.16%)
Mutual labels:  eventsourcing, eventstore, ddd, cqrs, domain-driven-design
Aggregates.net
.NET event sourced domain driven design model via NServiceBus and GetEventStore
Stars: ✭ 261 (+94.78%)
Mutual labels:  microservices, eventsourcing, eventstore, ddd, cqrs
eventuous
Minimalistic Event Sourcing library for .NET
Stars: ✭ 236 (+76.12%)
Mutual labels:  cqrs, ddd, eventstore, domain-driven-design, eventsourcing
Ultimate Backend
Multi tenant SaaS starter kit with cqrs graphql microservice architecture, apollo federation, event source and authentication
Stars: ✭ 978 (+629.85%)
Mutual labels:  microservices, eventstore, ddd, cqrs, backend
Eventflow.example
DDD+CQRS+Event-sourcing examples using EventFlow following CQRS-ES architecture. It is configured with RabbitMQ, MongoDB(Snapshot store), PostgreSQL(Read store), EventStore(GES). It's targeted to .Net Core 2.2 and include docker compose file.
Stars: ✭ 131 (-2.24%)
Mutual labels:  eventsourcing, eventstore, ddd, cqrs, domain-driven-design
delta
DDD-centric event-sourcing library for the JVM
Stars: ✭ 15 (-88.81%)
Mutual labels:  cqrs, ddd, domain-driven-design, eventsourcing, cqrs-es
Revo
Event Sourcing, CQRS and DDD framework for C#/.NET Core.
Stars: ✭ 162 (+20.9%)
Mutual labels:  eventsourcing, netstandard, ddd, cqrs, domain-driven-design
Event Sourcing Jambo
An Hexagonal Architecture with DDD + Aggregates + Event Sourcing using .NET Core, Kafka e MongoDB (Blog Engine)
Stars: ✭ 159 (+18.66%)
Mutual labels:  microservices, cqrs-es, ddd, cqrs, domain-driven-design
Akkatecture
a cqrs and event sourcing framework for dotnet core using akka.net
Stars: ✭ 414 (+208.96%)
Mutual labels:  microservices, netstandard, ddd, cqrs, domain-driven-design
Jdonframework
Domain-Driven-Design Pub/Sub Domain-Events framework
Stars: ✭ 978 (+629.85%)
Mutual labels:  microservices, eventsourcing, cqrs, domain-driven-design
Event Sourcing Castanha
An Event Sourcing service template with DDD, TDD and SOLID. It has High Cohesion and Loose Coupling, it's a good start for your next Microservice application.
Stars: ✭ 68 (-49.25%)
Mutual labels:  eventstore, ddd, cqrs, domain-driven-design
Eventhorizon
CQRS/ES toolkit for Go
Stars: ✭ 961 (+617.16%)
Mutual labels:  eventsourcing, ddd, cqrs, domain-driven-design
Event Sourcing Cqrs Examples
Event Sourcing and CQRS in practice.
Stars: ✭ 265 (+97.76%)
Mutual labels:  cqrs-es, ddd, cqrs, domain-driven-design
Nestjs Cqrs Starter
NestJS CQRS Microservices Starter Project
Stars: ✭ 80 (-40.3%)
Mutual labels:  microservices, eventstore, ddd, cqrs
les
Go directly from an event storming to a working API: Event Markdown / Markup validation & NodeJS CQRS/ES application builder.
Stars: ✭ 48 (-64.18%)
Mutual labels:  cqrs, eventstore, eventsourcing, cqrs-es
Jivejdon
Jivejdon is a Domain Driven Design appication with CQRS/ES/Clean/Hexagonal architecture
Stars: ✭ 287 (+114.18%)
Mutual labels:  eventsourcing, cqrs-es, ddd, domain-driven-design
Symfony 5 Es Cqrs Boilerplate
Symfony 5 DDD ES CQRS backend boilerplate
Stars: ✭ 759 (+466.42%)
Mutual labels:  cqrs-es, ddd, cqrs, backend
Eventsourcing
A library for event sourcing in Python.
Stars: ✭ 760 (+467.16%)
Mutual labels:  eventsourcing, ddd, cqrs, domain-driven-design

Instructions

Linux Only

One docker image we require to run (eventstore) doesn't have a windows container - so run docker-compose on linux only for now!

Start

docker-compose build
docker-compose up

Note The web frontend is configured to talk to the api server via http://localhost:8080 in docker-compose.override.yml If you are running docker-compose up on another machine you need to change that address to the remote machines ip. Example:

frontend:
    build:
      args:
        API_SERVER: http://10.0.0.200:8080

Source Code!

Being this project has such a small domain context there are only a couple source files which contain real logic. Other files are helpers, extensions, or setup.

Important backend files:

Outstanding issues

  • The first todo added won't show up right away. Refreshing the page or adding another todo fixes it.

The first message sent through the whole system takes longer than all the others as NSB builds caches and does things in the background. In a true system this is what is known as "eventually consistent." The web app could fake adding the todo instead of submitting a new request to the web api to counter this.

  • Additional todo features like marking complete and deleting don't work

Its a problem with the web api which I am unfamilar with. DELETE just returns "unsupported media type" and google doesn't have an immediate solution. After debugging DI containers for 2 days I lack the motivation to dive into this issue deeply at this moment.

  • TodoMVC's css sheets are not perfectly integrated

Mainly because I use material-ui and am used to a more "react" way of styling - they are mostly correct

  • Web App is a separate container instead of being included in the presentation container

If the web app was returned via a GET from the asp net core endpoint we wouldn't have to worry about CORS or specifying the ip address of the host. I debated setting it up that way but integrating a typescript build pipeline with webpack into the C# build process is not my favorite thing to do. But it could happen and may be more ideal

What is EventSourcing?

EventSourcing is a process of representing domain objects (Orders, Invoices, Accounts, etc) as a series of separate events.

Your application ends up being 1 long audit log which records every state-changing event that occurs. The advantage of this approach is other processes can read this event log and generate models that contain only the information the process cares about. There is also additional information available that other services perhaps don't record themselves.

Imagine a shoppign cart which fills with items to buy. The warehouse only cares about the final order of the stuff the customer actually agreed to purchase -

but the marketing team might care more about the items the customer removed from their cart without buying.

Using eventsourcing correctly you can generate models which contain both sets of information to satisfy both departments with only 1 set of data.

What is CQRS

CQRS stands for Command and Query Responsibility Segregation

In a nut shell - commands are everything that want to change the application state. Queries are anything that want to read application state. There is no overlap

Commands do not return any data other than if they were Accepted or Rejected. Accepted meaning the change was saved and read models will be updated. Rejected meaning the command failed validation or was not valid to be run at this time. (One example would be trying to invoice a sales order which has already been invoiced)

Architecture Overview

Commands Processing

Good reads

EventStore Management

{host}:2113

RabbitMq Management

{host}:15672

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].