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
>



-- 

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

Reply via email to