[zeromq-dev] recovering from an unanswered reply
Pieter Hintjens
ph at imatix.com
Sat Aug 20 19:08:56 CEST 2011
On Sat, Aug 20, 2011 at 5:46 PM, Mathijs Kwik <bluescreen303 at gmail.com> wrote:
> Cool, I needed some confirmation that close/reconnect isn't evil/
> frowned upon.
It depends.
Could be good design, could be bad design. For example, reconnecting
is a simple way to handle certain error conditions (see Lazy Pirate
pattern), but frequent close/reconnect in normal situations may
exhaust system resources (running out of file handles or sockets).
General advice would be "never design anything that's not a precise
minimal answer to a problem you can identify and have to solve".
-Pieter
More information about the zeromq-dev
mailing list