bakerface / easy-source Goto Github PK
View Code? Open in Web Editor NEWFrom zero to event sourcing
License: MIT License
From zero to event sourcing
License: MIT License
Hey there,
I've been reading up on DDD and I'm trying to understand the way the example is structured.
So first, with the aggregates folder: Is an aggregate
here equivalent to a DDD aggregate?
I was wondering about value objects and entities and how they should be represented. I assumed that idea
, project
, and user
are each a root entity inside some aggregate, with value objects maybe added directly from the event, without being explicitly modeled in the domain.
But then I looked at the projections folder and saw that projects
and ideas
are properties of the user
which made me think that maybe user
is the root entity and idea
and project
are additional entities inside the same DDD aggregate, and that maybe aggregate here means something different.
Moving on to projections: projects
and ideas
are initialized as empty arrays on the userRegistered
event. Is that where default/initial values should be set? and not in the defaultState
of the aggregate?
Thanks so much for your patience and sorry if these questions are really annoying ๐
Hi! I found this repo after finding your dynamodb-event-store
๐
I've been looking for days for something like this; I want to try event sourcing in my serverless app (hosted on aws).
I'm writing to see if this library is just a proof of concept, or something more. I had some issues integrating it with dynamodb-event-store
and dynamodb-snapshot-store
(just some naming convention stuff that I was able to work around). But I wanted to check with you first before submitting PRs, and see what your plans are with this.
It's really, really nice work! I would love to use it in my app.
Where is the right place to hook into command processing in order to broadcast resulting events to other systems?
Hi again!
I've been struggling to understand why projections are stored differently from aggregates. Aggregates are fetched and stored individually, while projections are fetched and stored as an entire set.
I mean, I kind of understand it. Is it because projections aren't necessarily acting on one record alone as the result of an event? and a single event could cause changes in multiple places?
But then how is this implemented on a datastore level? do you need to deserialize and serialize the entire set each time?
Thanks, as always!
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.