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

Provide way for Python Producers to initialise their topics with events. #20

Open
stefan-cardnell-rh opened this issue Sep 30, 2024 · 0 comments

Comments

@stefan-cardnell-rh
Copy link
Contributor

We may wish to provide a way for Python Producers to send an initial set of data events to their topics.

For instance, this can be the case when using Python producers to send Django model instance changes to a topic instead of using Debezium source connectors. Debezium may not meet our requirements, especially when related-table data is needed in the event.

Ideas/considerations:

  1. Provide a subclass/decorator which allows defining an initialize method on the Producer, which can be called for the Producer to create initial data events.
  2. Run this initialize method during kafka startup (kafka_consume) or provide another management command for event initialization.
  3. (Optional) Provide some way for Producers to track their sent initial events, to not send them if they are initialised multiple times.
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

1 participant