Coder Social home page Coder Social logo

easy-source's People

Contributors

bakerface avatar yonahforst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

easy-source's Issues

AggregateStores vs ProjectionStores

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!

Understanding the example

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 there!

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.

event broadcast

Where is the right place to hook into command processing in order to broadcast resulting events to other systems?

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.