seikho / evtstore Goto Github PK
View Code? Open in Web Editor NEWEvent Sourcing and CQRS with Node.js and TypeScript
Home Page: https://seikho.github.io/evtstore
Event Sourcing and CQRS with Node.js and TypeScript
Home Page: https://seikho.github.io/evtstore
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)
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).
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.
Does multiple instances of event handler ensure that events will be processed with correct order?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.