oneby-wang commented on PR #24714:
URL: https://github.com/apache/pulsar/pull/24714#issuecomment-3268941585

   > This path correctly uses `thenCompose` instead of `thenComposeAsync`, 
which avoids unnecessary thread switching.
   > 
   > However, we still need to handle synchronized calls in Pulsar(This is the 
primary task). For example, 
`org.apache.pulsar.broker.authorization.AuthorizationService#canLookup`, which 
should be deprecated
   
   Is it ok if I replace canLookup with canLookupAsync? I searched 
canLookupAsync, canConsumeAsync, canProduceAsync, only find this call usage.
   
https://github.com/apache/pulsar/blob/90b2aac0fa61f90b3ddf3095da1652decf18602a/pulsar-websocket/src/main/java/org/apache/pulsar/websocket/admin/WebSocketWebResource.java#L152-L157
   
   Or, like comments above, we should open a separated topic to discuss 
xxxAsync calls?
   


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