design-consideration

zmq vs redis for pub-sub pattern

微笑、不失礼 提交于 2019-12-18 10:29:34
问题 redis supports pub-sub zmq also supports pub-sub via a message broker What would be the architectural pros\cons for choosing between them? I'm aiming at points which are beyond the obvious use-case specific performance benchmarking that should be done (here's a nice example). Assume use of a high-level language such as Python. 回答1: I have worked with both ZeroMQ and Redis with python. I would say ZeroMQ is more robust, it offers real simple load balancing and also more than pub-sub, like

zmq vs redis for pub-sub pattern

时光怂恿深爱的人放手 提交于 2019-12-18 10:29:07
问题 redis supports pub-sub zmq also supports pub-sub via a message broker What would be the architectural pros\cons for choosing between them? I'm aiming at points which are beyond the obvious use-case specific performance benchmarking that should be done (here's a nice example). Assume use of a high-level language such as Python. 回答1: I have worked with both ZeroMQ and Redis with python. I would say ZeroMQ is more robust, it offers real simple load balancing and also more than pub-sub, like

When is custom enumerable/collection useful?

99封情书 提交于 2019-12-10 18:15:08
问题 I am dropping this line after having visited different websites to try understand real time example of using custom enumeration. I got examples. But they lead me to confusion. Example Take 1 class NumberArray { public int[] scores; public NumberArray() { } public NumberArray(int[] scores) { this.scores = scores; } public int[] Scores { get {return scores;} } } Take 2 public class Enumerator : IEnumerator { int[] scores; int cur; public Enumerator(int[] scores) { this.scores = scores; cur = -1

zmq vs redis for pub-sub pattern

…衆ロ難τιáo~ 提交于 2019-11-29 22:21:24
redis supports pub-sub zmq also supports pub-sub via a message broker What would be the architectural pros\cons for choosing between them? I'm aiming at points which are beyond the obvious use-case specific performance benchmarking that should be done (here's a nice example ). Assume use of a high-level language such as Python. I have worked with both ZeroMQ and Redis with python. I would say ZeroMQ is more robust, it offers real simple load balancing and also more than pub-sub, like request reply among others. But if you are only after pub-sub, redis is much simpler. In case the redis server