[nanomsg] Re: Internet facing applications

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Thu, 22 Aug 2013 14:27:39 +0200

Hi Jan,


I am reposting my HN comment <https://news.ycombinator.com/item?id=6243065>:

I am hoping for some kind of solution for the DoS problems present in
ZeroMQ (and probably in nanomsg as well) when used in an Internet
facing application. For example the possibility to subscribe to an
unlimited number of prefixes in the PUBSUB model leads to memory
explosion on the server side.

I believe that absence of safeguards such as peer management,
subscribe limit, and maximum message size prevents more widespread
usage of ZeroMQ.  With these, it might be possible to finally get
over the absurd HTTP transport for everything we are seeing now.

Yes. Absolutely true. We've discussed these issues back in 2010 or so, but unfortunately they weren't implemented (with the exception of ZMQ_MAXMSGSIZE).

For starters I would propose following limits:

- max message size
- max number of peers
- max total size of subscriptions

Anything else you can think of?

Martin

Other related posts: