Nats still recommended? #204
-
I saw that anycable offers configuration options for NATS - but when I look at the adapter support, it shows NATS support is only legacy? Is it still working to use nats or recommended? Why is it legacy? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
At the current moment it is supported and recommended (and actually the simplest way to deploy AnyCable on fly.io for example), but in future versions of AnyCable there will be changes in pubsub architecture that will deprecate current adapters (and maybe there will be newer version of NATS adapter then). See this page for details: https://docs.anycable.io/edge/anycable-go/pubsub As for now please use it without any hesitation! |
Beta Was this translation helpful? Give feedback.
NATS is not gonna be deprecated. In the new architecture, there are two independent components which can use NATS: broadcaster (responsible for receiving broadcast messages) and pubsub (responsible for distributing broadcast messages within a cluster). We support NATS for in-cluster pub/sub in the upcoming versions, it's already there. For broadcasting, we will add NATS support, too. Right now, it's possible to use NATS pub/sub with the HTTP broadcasting in v1.4.
If you don't rely on consistency features, you can continue using the legacy NATS broadcaster. It's not deprecated, and we don't have plans on deprecating the current architecture. In our case, legacy != will be removed soon. It'…