Alxander64 opened a new issue #9176: URL: https://github.com/apache/pulsar/issues/9176
**Is your enhancement request related to a problem? Please describe.** A clear and concise description of what the enhancement is. It seems as though the Python client producer has void return values for all of its functions. The relevant file is [here](https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/python/src/producer.cc). Because of how the Python package is a wrapper of the C++ one, I'm not sure if this is doable, but it would make sense for at least the `send` method to return something. For example, the synchronous `send` method should preferably return the MessageID of the message sent. If a producer client wants to know the MessageID of the delivered message in a synchronous manner, the only way it seems possible now is to use `send_async` and register a callback function, and then `flush` to ensure it waits until all messages in the queue are acknowledged. **Describe the solution you'd like** A clear and concise description of what you want to happen. For the Python client producer `send` method to have a useful return value. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here. Currently building an app where we'd like to know the MessageID of the message just recently sent to a topic, and use that MessageID as the value of a field in other topics. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
