agco / harvesterjs

Create JSONAPI-compliant APIs over a Node.js + MongoDB stack in an easy, boilerplate-free manner
http://agco.github.io/harvesterjs/
MIT License
68 stars 13 forks source link

Feature/glblagctwo 984 #138

Closed kristofsajdak closed 9 years ago

kristofsajdak commented 9 years ago

This PR adds a asyncInMemory option as a temporary countermeasure, trading off reliability in favour of performance

Each onChange handler marked with asyncInMemory: true will be processed asynchronous, the event reader will not wait for completion and checkpoints are not set.

In case the server crashes, processing will be resumed from the last known checkpoint, set by a non asyncInMemory onChange event completion.