[zeromq-dev] Client-side web applications with ZeroMQ

Cosmo Harrigan cosmo.harrigan at singularityu.org
Thu Nov 21 20:08:36 CET 2013


Thanks for the comments. I'm going to try creating a small server that
relays messages between ZeroMQ (pyzmq) and socket.io (gevent-socketio).

Best regards,
Cosmo Harrigan


On Thu, Nov 21, 2013 at 1:30 AM, Michael Haberler <mail17 at mah.priv.at>wrote:

>
> Am 21.11.2013 um 06:57 schrieb Justin Karneges <justin at affinix.com>:
>
> > There's NullMQ, although I'm not sure of its status:
> > https://github.com/progrium/nullmq
> >
> > In my opinion, all a web application really needs is request/response
> > and pubsub, and you already have request/response in the form of HTTP.
> > So, the only thing missing is a one-way (server->client) publish
> > mechanism, and there are a number of ways to do that (Socket.io rooms,
> > Faye, Pushpin, etc).
> >
> > Chaining socket.io's rooms stuff to a zeromq XSUB socket might be a nice
> > afternoon project for you. :)
>
> the way I deal with a js web client + publish/subscribe is:
>
> - provide a websocket server using the libev-based variant of
> libwebsockets https://github.com/andrew-canaday/libwebsockets
> - published messages are auto-translated from protobuf to JSON with
> https://github.com/shramov/json2pb and pushed down the websocket stream
> - incoming ws messages can be used to subscribe/unsubscribe as needed
> (XPUB+verbose set on publish socket, client messages are translated to
> subscribe/unsubscribe messages)
>
> this is not as general as zerogw, but it is small, understandable and fits
> my bill
>
> - Michael
>
>
> >
> > On 11/20/2013 09:28 PM, Cosmo Harrigan wrote:
> >> Hello,
> >>
> >> Has there been much use of ZeroMQ with client-side web applications?
> >>
> >> For example, do you have any recommendations on a good implementation of
> >> a simple server that acts as a forwarder between ZeroMQ sockets and
> >> socket.io <http://socket.io>? (Kind of like
> >> https://github.com/sockjs/sockjs-client, but using socket.io
> >> <http://socket.io>)
> >>
> >> I see some such implementations on the web, but they seem old and not
> >> very active.
> >>
> >> Do you think this type of architecture is a good idea?
> >>
> >> Best regards,
> >> Cosmo Harrigan
> >>
> >>
> >> _______________________________________________
> >> zeromq-dev mailing list
> >> zeromq-dev at lists.zeromq.org
> >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >>
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131121/366f31e8/attachment.html>


More information about the zeromq-dev mailing list