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

document subscription via risingwave-py #218

Open
neverchanje opened this issue Jan 26, 2025 · 0 comments
Open

document subscription via risingwave-py #218

neverchanje opened this issue Jan 26, 2025 · 0 comments

Comments

@neverchanje
Copy link
Collaborator

The document of subscription lacks instructions on using a risingwave-py for a simpler exactly-once implementation.

threading.Thread(
    target=lambda: mv.on_change(
        handler = simple_event_handler,
        output_format=OutputFormat.DATAFRAME,
        # If set to True, progress of the subscription will be saved and can be recovered on python application crashed
        persist_progress=True, 
        max_batch_size = 10)
    ).start()

With persist_progress=True,, we can support exactly-once delivery, without worrying data loss after failure recovery.

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