momo-jun commented on code in PR #589: URL: https://github.com/apache/pulsar-site/pull/589#discussion_r1209677782
########## docs/client-libraries-producers.md: ########## @@ -41,33 +52,45 @@ Producer<String> producer = pulsarClient.newProducer(Schema.STRING) </Tabs> ```` -## Send messages +## Publish messages + +This example shows how to publish messages using producers. The publish operation will be done until the broker tells us that the message has been successfully published. It will return the message id after the message is published successfully. + +Pulsar supports both synchronous and asynchronous publishing of messages in most language clients. In some languages client(`Node.js` and `C#`), it is easy to publish messages synchronously based on the asynchronous method using language-specific mechanisms(like `await`). Review Comment: ```suggestion Pulsar supports both synchronous and asynchronous publishing of messages in most clients. In some language-specific clients, such as Node.js and C#, you can publish messages synchronously based on the asynchronous method using language-specific mechanisms (like `await`). ``` -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
