Skip to content

[Enhancement] Add support for negatively acknowledging messages in Python functions #24294

Open
@lhotari

Description

@lhotari

Search before reporting

  • I searched in the issues and found nothing similar.

Motivation

Currently there's no way to explicly nack messages in Python functions.

Use case:
This would be useful in using a Python function as a dynamic router that forwards Pulsar messages to multiple other topics. In such a Pulsar function, it would be necessary to configure autoAck to false and handle acknowledgement only after the forwarded message has be successfully sent to the destination topic.
If this fails, the input message should be negatively acknowledged.

Solution

Add negative acknowledgement support to Pulsar Functions Python library and implementation.

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions