wooga / eredis

Erlang Redis client
MIT License
628 stars 279 forks source link

y wait for ack when using redis pub sub? #43

Closed chirag04 closed 11 years ago

chirag04 commented 11 years ago

Waiting for ack in redis pub sub is kind of blocking. y do we need that?

knutin commented 11 years ago

If you are referring to the subscriber acking receipt of each message from eredis_sub, the reason is to avoid overloading the subscriber with messages. If the subscriber takes some time to handle each message, it can easily get overloaded if the rate of incoming messages are higher than the rate it can consume messages.

It is a safety measure.