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

Make it possible for observers to opt-in for supporting parallelizing replay or not #1670

Open
einari opened this issue Jan 21, 2025 · 0 comments
Labels
breaking change Implementing will cause a breaking change / Major version bump observers Issues related to event sequence observers replay

Comments

@einari
Copy link
Contributor

einari commented Jan 21, 2025

By default when replaying an observer, it is put into an exclusive state of Replaying. This means it is not going to process anything for the observer and the observer is effectively suspended.

For some observers, it is ok to not be suspended for the entire observer - only the partitions being replayed.
Which means that if you were to replay the entire observer it would start off by having all partitions suspended, but as partitions finish it can start catching up and processing new events as they come.

For DevEx we could then say that by implementing the interfaces found in #1669 you basically opt-out by saying you have to be synchronous. This would be a breaking change from existing behavior.

@einari einari added breaking change Implementing will cause a breaking change / Major version bump replay observers Issues related to event sequence observers labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Implementing will cause a breaking change / Major version bump observers Issues related to event sequence observers replay
Projects
None yet
Development

No branches or pull requests

1 participant