NATS uses cookies to ensure you get the best experience on our website. Continuing to use this site assumes compliance with our Privacy Policy.

Guest Post: Synchronize web apps in real time with NATS+Resgate

By: Samuel Jirénius - Date: September 7, 2018

REST APIs are nice. Simple. Stateless. Scalable. But to keep client data updated in real time, things get more complicated. Streaming events is easy, but you start having to deal with questions like: Which resources do I need events for? How do I manage sending each client only the events they need? Can I prevent subscription to some events for unauthorized clients? Who keeps state of these event subscriptions? Read More…

Guest Post: REST to NATS Proxy

By: Radomír Sohlich - Date: April 23, 2016

The REST to NATS proxy project sohlich/nats-proxy is the micro framework that provides a bridge between HTTP and NATS. To introduce the problem, we first compare the HTTP and NATS communication models. The table below represents the matching of HTTP and NATS concepts and what do they provide. HTTP NATS Request/Response Request/Reply synchronous communication Websocket Publish/Subscribe real-time asynchronous communication As you can see, the NATS provides both synchronous and asynchronous communication between clients. Read More…