Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to manage long running processes #95

Open
bidva opened this issue Jan 1, 2021 · 1 comment
Open

How to manage long running processes #95

bidva opened this issue Jan 1, 2021 · 1 comment

Comments

@bidva
Copy link

bidva commented Jan 1, 2021

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 bidva changed the title manage long running processes How to manage long running processes Jan 1, 2021
@elemanhillary
Copy link

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

He already has examples of using agenda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants