NATS as a transport/protocol #363
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @sourcec0de! This works today - you don't need to do anything :)
|
Beta Was this translation helpful? Give feedback.
-
@wallyqs you're awesome!!! @akshayjshah thank you for pointing this out!!! With the example being so simple it might not be worth adding this to the package. 🙇 thanks again! |
Beta Was this translation helpful? Give feedback.
Hi @sourcec0de! This works today - you don't need to do anything :)
protocol_connect.go
andprotocol_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 anet/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