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

Consider using a listeners pool #38

Open
massenz opened this issue Sep 10, 2022 · 1 comment
Open

Consider using a listeners pool #38

massenz opened this issue Sep 10, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@massenz
Copy link
Owner

massenz commented Sep 10, 2022

Currently, even if running in coroutines and using channels to distribute the workload, the entire application is (essentially) single-threaded, as we only start one coroutine per task (listener, pub/sub, etc.)

We should explore the possibility of running the workers concurrently - however, this opens up the possibility of race conditions for events which, even if arriving in order from SQS, may become out-of-order (and cause unwanted issues, with transitions being deemed invalid, incorrectly).

It is non-obvious how to "single-thread" per FSM, while keeping independent event stream running concurrently.

@massenz massenz added the enhancement New feature or request label Sep 10, 2022
@massenz massenz self-assigned this Sep 10, 2022
@massenz
Copy link
Owner Author

massenz commented Nov 1, 2022

See also #58

@massenz massenz added this to the v1 Release milestone Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant