Comments (2)
In the projects I've seen so far... for the replay use case (new read model) we/they do replay each event from the beginning.... => getEvents https://github.com/adrai/node-eventstore#query-your-events
and for occasionally missing events => getEventsByRevision
and only for edge cases when denormalizers where down for a longer time... they do get the "THE_LAST_EVENT_SEEN" containing an occurredAt field and use getEventsSince
from node-eventstore.
Thanks for the fast reply... the last point is how I do it currently. However, I quite often had events that occurred at the same time (yes, exactly same time down to milliseconds). Guess I just augment my function so it ignores everything that comes before the last seen event ID.
from node-eventstore.
Related Issues (20)
- Mongo URL parser deprecated. HOT 2
- PostgreSQL data store HOT 4
- override commitStamp ? HOT 3
- Replaying events to rebuild aggregates HOT 2
- Release a new version with new lodash HOT 2
- Auto-reconnect MongoDB HOT 2
- Calling `es.init()` multiple times causes multiple `connect` & `disconnect` listeners to be added HOT 2
- When using tingodb, no more events are published after restarting app HOT 4
- Flag for dropping existing data when initializing? HOT 3
- Method for testing if there are any or how many events are stored? HOT 5
- MongoDB connection fails with current default options HOT 14
- DeprecationWarning: current Server Discovery and Monitoring engine is deprecated HOT 3
- User Interface HOT 1
- Question: Can I query snapshots by date? HOT 3
- MongoDB: "revision" field type should be casted to number when createSnapshot HOT 4
- [MongoDB] BUG: streamEventsByRevision omits first event and repeats last event. HOT 1
- Opposite of getEventsSince
- npm audit fail on dotty HOT 1
- Azure table is deprecated HOT 1
- batch workflows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-eventstore.