Giter VIP home page Giter VIP logo

node-cqrs's People

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

Watchers

 avatar  avatar  avatar  avatar

node-cqrs's Issues

Snapshot clearing

In order to make it easier to rebuild structural data view in the application, we need a simple way to purge snapshots for a given view / aggregate.

i want use cqrs at npmjs , can i?

i want use cqrs at npmjs , can i?

i develop a new cqrs domain project, i like cqrs name.

npm install cqrs

can i use it? make to me?

Collection views

In order to significantly speedup view fetching, need to implement better way how to store denormalized data in the smaller chunks. Currently each view is stored as separate document (unique key) but we need to implement much better granularity (by different rules).

Example: View with list of events for multiple users in a time
Instead of storing one big bulk and then fetching just part of the view on the app level, we would store view per day and user. This would mean fetching data for particular day and user would be way faster.

The strategy how to split data should be easy to change.

More precise time for events

CouchDB is not very good in generating sequences. Instead each id is random generated string. It makes it a bit difficult to order the events then. The easies way is to order by time when event was created, although in some apps, there can be multiple events coming at same mili-second.

Luckily there are solutions in node.js to work with microseconds, thus orders of magnitude more precise solution.

Separate views building and reading concerns

View is the representation of read model in the system. Currently it encapsulate two basic concepts: view building and view reading. After recent updates, we are able to separate those concerns, thus we would have one component responsible to build the view data (orchestrated by denormalizer) and other much simpler component to read it.

Separate views building and reading concerns

View is the representation of read model in the system. Currently it encapsulate two basic concepts: view building and view reading. After recent updates, we are able to separate those concerns, thus we would have one component responsible to build the view data (orchestrated by denormalizer) and other much simpler component to read it.

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.