There's also zproto to automate encoding/decoding:

https://github.com/zeromq/zproto

On Tue, 2017-08-01 at 19:33 +0200, BJovke . wrote:
> Hello.
> 
> ZeroMQ transfers your message in a binary form. It doesn't change it
> in any
> way nor it does anything with the content.
> Since REST and JSON transfer structured data, you need to create the
> structure by yourself and send it via ZeroMQ message.
> What you can do is just send your JSON text data as a ZeroMQ message.
> Since HTTP GET/POST are request/response mechanisms, you probably
> need
> REQ/REP ZeroMQ sockets.
> 
> If you want to pack your structure into binary form, avoiding
> overhead of
> JSON encoding/decoding, take a look at Google protocol buffers.
> 
> Greetings,
> Jovan
> 
> 2017-08-01 17:50 GMT+02:00 yogesh fulsunge <[email protected]
> >:
> 
> > Dear Team,
> > 
> > REST works on top of HTTP but Zero MQ works on top of TCP/IP.
> > 
> > Since TCP communication is faster than HTTP, Zero MQ would be
> > faster than
> > REST.
> > 
> > I am working on  a project which can replace REST and JSON with
> > better
> > technology.
> > 
> > Can you please let me know how I  can use ZeroMQ to solve this
> > problem?
> > 
> > Regards,
> > Yogesh
> > 
> > _______________________________________________
> > zeromq-dev mailing list
> > [email protected]
> > https://lists.zeromq.org/mailman/listinfo/zeromq-dev
> > 
> 
> 
> 
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev

-- 
Kind regards,
Luca Boccassi

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
zeromq-dev mailing list
[email protected]
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to