bulletproof-nodejs icon indicating copy to clipboard operation
bulletproof-nodejs copied to clipboard

How to manage long running processes

Open bidva opened this issue 4 years ago • 1 comments

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).

image

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?

bidva avatar Jan 01 '21 23:01 bidva

Have you given a thought of using agenda and make them long running process into background processes

He already has examples of using agenda

elemanhillary avatar May 27 '23 21:05 elemanhillary