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

Add version for outbox messages #939

Open
rmn-boiko opened this issue Nov 5, 2024 · 0 comments · May be fixed by #942
Open

Add version for outbox messages #939

rmn-boiko opened this issue Nov 5, 2024 · 0 comments · May be fixed by #942
Labels
enhancement New feature or request

Comments

@rmn-boiko
Copy link
Contributor

Currently, our outbox processor reads all messages from the database after the service starts. But if some message structure was changed it will cause panic.

The goal is to extend outbox messages with version and make sure service does not read messages with outdated version.
Possible solution:
current message:
pub struct FlowConfigurationUpdatedMessage { pub event_time: DateTime<Utc>, pub flow_key: FlowKey, pub paused: bool, pub rule: FlowConfigurationRule, }

Expected message:
pub struct OutboxMessage { message: Enum(existing messages), version: i32 }

@rmn-boiko rmn-boiko added the enhancement New feature or request label Nov 5, 2024
@rmn-boiko rmn-boiko linked a pull request Nov 7, 2024 that will close this issue
16 tasks
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

Successfully merging a pull request may close this issue.

1 participant