mattisonchao commented on issue #21055:
URL: https://github.com/apache/pulsar/issues/21055#issuecomment-1690780669

   Hi, @thetumbled 
   
   >When we use Producer to send asynchronously, we do not gurantee the message 
order, right?
   
   It depends on how you define the **"message order"**.  Even if the method is 
async, it will put the request in a queue. which means it will ensure the 
publishing request order, but some requests may get the exception and jump out 
of the order.
   
   >Using the compaction mechanism, we compact messages with the same key, and 
the last message takes effect. Therefore, we do care about the order of the 
messages.
   As a result, when we use the topic compaction mechanism, we need to send 
messages synchronously. But in the topic policy and transaction TB modules, all 
messages production is asynchronous, which may be a big problem as it has a 
wide range of influence.
   
   Well, would you mind giving an example or test to demonstrate this idea? it 
will help a lot for issue trouble.


-- 
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]

Reply via email to