Yesterday I read Chapter 6 in Redis In Action, where Joshua Carlton writes: βOne of the drawbacks of publishing and publishing the Redis model is that the client must always connect to messages, disconnections can lead to client loss by messages, and older versions of Redis can become unsuitable, crash or be killed if there was a slow subscriber. "
Joshua Carleton then states that βAlthough push messaging can be useful, we encounter problems where customers cannot keep in touch all the time for one reason or another. To address this limitation, write two different messaging methods that are good can use PUBLISH / SUBSCRIBE as a substitute. First, start by exchanging messages with one recipient, since he has a lot in common with our queues with the first entry, the first exit. Later in this section, go to the method in which we can do some Message recipients: With multiple recipients, we can replace Redis PUBLISH and SUBSCRIBE when we need our messages to reach all recipients, even if they have been disconnected. "We are interested to see if it will be more efficient to replace Redis PUBLISH and SUBSCRIBE with Joshua Carlton Section 6.5 .2. Multi-user publication / replacement subscription instead of using the UDP protocol to detect and correct disconnect loss.
Could we set a high tcp_max_syn_backlog in redis.conf to prevent either of
Joshua Carlson's single-user messaging and multi-drop messaging methods with a load of 20,000 messages per second, where each message is 20 bytes?
Frank source share