cshannon commented on issue #4664:
URL: https://github.com/apache/accumulo/issues/4664#issuecomment-2168864039

   I think long polling here should work. Ideally, being able to do pub/sub and 
push notifications to a listener is the best way so there isn't any polling but 
long polling is also viable and most messaging APIs support it. Both 
[Kafka](https://kafka.apache.org/37/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.html#poll(java.time.Duration))
 and 
[JMS](https://jakarta.ee/specifications/messaging/3.0/apidocs/jakarta/jms/messageconsumer#receive-long-)
 brokers (just as two examples) support long polling in their API and it works 
pretty well with similar behavior as here. The calls will wait for  
messages/records to arrive and then if the timeout passes will return 
empty/null, etc and you can try again.


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