bulletproof-nodejs
bulletproof-nodejs copied to clipboard
How to manage long running processes
Hi @santiq, your approach is interesting, and the whole architecture is nice and clean. I'm working on an EDD approach in my project which I used Redis streams under the hood as my event stream. on EDD there is a concept of projection that defines a read model and it's a long run process as my process listens to events and take an action when new events pushed to stream (CQRS).
each projection is a long-running dispatcher function that handles the events and updates db. I would like to manage these types of projections under the forked process. would you mind explaining how you do that in your code structure?
Have you given a thought of using agenda and make them long running process into background processes
He already has examples of using agenda