1
votes

I am using hazelcast local listener for my use case. i have read the documentation and understands that it uses queue to push events to listeners.

What happens to the events in the queue of node that is down ? will these be ignored or will be in queue and routed to new node if the replica is configured ? Please clarify.

Is there any way to acknowledge the successful receive of the message with some kind of call back ? so that event never be lost.

1

1 Answers

0
votes

LocalListener queues are not distributed (as it would involve serialization). Anyhow listeners are not expected to do long running operations therefore your queue should always be empty. Queues tend to have only one of two states: empty or full (depending on fast or slow consumer).

And yes if the node goes down and your local queue is full, you'll loose events.

What is your usecase? Do you have slow consumers? Think to offload them to a Hazelcast distributed queue and execute them independently from the event threads.