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

feat: add producer with parameters #561

Merged
merged 1 commit into from
Feb 6, 2025
Merged

feat: add producer with parameters #561

merged 1 commit into from
Feb 6, 2025

Conversation

fraidev
Copy link
Contributor

@fraidev fraidev commented Feb 1, 2025

new api:

import fluvio

fluvio = Fluvio.connect()

topic = "a_topic"
builder = (
    TopicProducerConfigBuilder()
    .batch_size(32768)
    .linger(100)
    .compression(Compression.Gzip)
    .max_request_size(33554432)
    .timeout(600000)
    .isolation(Isolation.ReadCommitted)
    .delivery_semantic(DeliverySemantic.AtLeastOnce)
)
producer = fluvio.topic_producer_with_config(self.topic, config)

for i in range(10):
    producer.send_string("Hello %s " % i)

@fraidev fraidev force-pushed the produce_params branch 3 times, most recently from 7838bb3 to a7105e4 Compare February 1, 2025 20:50
@fraidev fraidev requested review from digikata and sehz February 1, 2025 21:09
@fraidev fraidev marked this pull request as ready for review February 1, 2025 21:09
@fraidev fraidev merged commit 8df3954 into main Feb 6, 2025
25 checks passed
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

Successfully merging this pull request may close these issues.

3 participants