Support for NATS #3621
Replies: 5 comments
-
The next item that we have on the list for protocols is Websockets, which I believe is very similar to NATS? I'm wondering whether the gRPC UI would be viable for NATS? If so, it would be providing another network layer and the data model like exists for gRPC. Would be a good first network issue for someone looking to contribute! |
Beta Was this translation helpful? Give feedback.
-
From my understanding NATS is not about HTTP protocol or derivated; so i don't guess it share nothing with WebSockets. Its main purpose is to coordinate and route messages from PUBLISHER to SUBSCRIBER like standard message queue systems providing also REQ/RES pattern (uncommon on MQ systems). NATS implement raw own TCP protocol to send\receive data and it is extremely useful for implementing an microservice architecture. Insomnia, even if a bit out of topic, could implement a client to PUBLISH or SUBSCRIBE (or just send request and wait for response like usual REST API) to a specfied topic\subject (like usual we do with URL for REST API). After i read about support for gRPC, i asked my self why not for NATS (or even Kafka, Rabbit, MQTT, etc.). Around the world we didn't found any client born with test in mind for MQ system and for who implement microservices architecture. That's why i guess you added support to gRPC and that's why i guess it can be a killer feature for your competitor (starting from Postman). Try to image what Insomnia can become for developers around the world if you add support to different protocol than HTTP (or WS) 😄. Can we say a leader in the market ?! In other words ... |
Beta Was this translation helpful? Give feedback.
-
Absolutely, while there are some similarities to gRPC and it's a different application-layer protocol (both run over TCP), there is some similarities with WebSockets as well! Primarily PUB/SUB a two-way communication channel which has similarities to gRPC bi-directional as well.
Well said and that's definitely the direction we are headed! With gRPC we looked at how Insomnia could service these different application-layer protocols ways of making requests with an intuitive interface within Insomnia. I think we've hit a good middle-ground with the recent gRPC release and can leverage the same interface (client/bi-directional) for NATS, Kafka and WS (Pub/Sub). Like you said, it's similar, just different way of sending under the hood ;) |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
NATS server has added support for websocket clients: https://docs.nats.io/running-a-nats-service/configuration/websocket/websocket_conf Native NATS support would be nice, but this may be a helpful stopgap for anyone interested in something available today. |
Beta Was this translation helpful? Give feedback.
-
Do you like to add support for NATS also, like you did for gRPC?
It will be a killer feature for postman 😄
Actually we are migrating from Postman to Insomnia Designer because full of feature (to test API of course), and because GIT SYNC support (also because cheaper 😄).
We are working on an open source project based on NestJS framework with microservices driven by NATS, and it will be great if we can centralize also microservices tests into one amazing solution like Insomnia.
Beta Was this translation helpful? Give feedback.
All reactions