Skip to content

NATS as a transport/protocol #363

Answered by akshayjshah
sourcec0de asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sourcec0de! This works today - you don't need to do anything :)

protocol_connect.go and protocol_grpc.go define two different RPC protocols, but both depend on HTTP as the transport. To use NATS, you just need a library that wraps NATS with a net/http-compatible abstraction. Luckily, https://github.com/ripienaar/nats-roundtripper already exists. Waldemar Quevedo (@wallyqs) from the NATS team has a commit demonstrating how to get this working end-to-end with connect-go: wallyqs@2e744ec

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bufdev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #362 on September 19, 2022 21:41.