Giter Site home page Giter Site logo

seikho / evtstore Goto Github PK

View Code? Open in Web Editor NEW
62.0 62.0 5.0 660 KB

Event Sourcing and CQRS with Node.js and TypeScript

Home Page: https://seikho.github.io/evtstore

TypeScript 99.06% HTML 0.94%
cqrs event-sourcing mongodb nodejs postgres typescript

evtstore's People

Contributors

dependabot[bot] avatar seikho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

evtstore's Issues

How to pass transaction to be able to rollback a sequence of actions?

I am using the evtstore library in our app and I need a way to pass transaction in knex provider in order to rollback a sequence of actions in our application. Do you have any advice for it? After a small walkthrough in codebase it seems that I need to pass it only in the append function of the provider (where exists the only insertion in events table)

How to copy an aggregate?

I've stumbled a bit further and encountered my next problem.
How do I go about copying an aggregate? I have a Presentation and then the command is issued to copy it (with a new aggregateId).
image

I however haven't found a way to query for another aggregate from the command handler ๐Ÿค” So I'm unsure on how to get the extra data needed into the event.
Perhaps there is another way to accomplish what I'm after.

best regards Oskar

Edit: typescript complains that I'm referencing the presentationDomain from inside itself, which is not legal.

confusion around streams, aggregates and ids

Hi! Just found this nice little library that I'm now trying out ๐Ÿ‘
I started out with looking and toying with your sample code and tried to modify it so that a userId is passed around as well.
I'm a bit confused on what the aggregate should be. In my mind I would like to have a stream and aggregate per user (and perhaps also a stream for all users). If I want to build an aggregate per user; do I need a new domain for each user in this case? I'm new to event sourcing, so forgive me if the question is unclear or vague.

br Oskar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.