Skip to content

Support setting more methods for asynchronous producer #278

Description

@BewareMyPower

Currently the asynchronous producer only supports sending values, see

async def send(self, content: bytes) -> pulsar.MessageId:

and the flush method and some other properties are not implemented, see #277 (comment), we need to determine whether to implement them

The async Producer class is missing several methods that are available in the synchronous Producer class:

  1. flush() - to flush buffered messages
  2. producer_name() - to get the producer name
  3. topic() - to get the topic name
  4. last_sequence_id() - to get the last sequence ID
  5. is_connected() - to check connection status We should not add this API, see explanation here: feat: add producer connectivity functionality #286 (review)

Activity

  1. added this to the 3.9.0 milestone on Dec 23, 2025
  2. changed the title [-]Support setting more properties for asynchronous producer[/-] [+]Support setting more methods for asynchronous producer[/+] on Dec 23, 2025
  3. nachatz commented on Jan 25, 2026

    @nachatz
    Contributor

    I believe PR #286 closes this issue.

  4. modified the milestones: 3.9.0, 3.10.0 on Jan 27, 2026
  5. BewareMyPower commented on Jan 27, 2026

    @BewareMyPower
    ContributorAuthor

    This should have been closed by #280. The is_connected method should not be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions