NATS subjects vs STAN channels

329 views
Skip to first unread message

Nick

unread,
Nov 25, 2021, 11:23:42 AM11/25/21
to nats
Dear All,

I'm pretty new to NATS. I followed the documentation but I wasn't able to get the difference between subjects (NATS) and channels  (STAN). 

Thank you for your help

P.S. 
I'm aware that STAN will be discontinued but for now I'll try to work with it. 

iv...@synadia.com

unread,
Nov 29, 2021, 11:07:59 AM11/29/21
to nats
A channel is somehow similar to a subject in NATS, that is, it is the "subject" the publishers are publishing to and subscribers consume from.

Here is a brief description of a channel: https://docs.nats.io/legacy/stan/intro/channels

Also, a message published by a core NATS publisher on "foo" would not be stored in a STAN channel called "foo", and therefore not received by a STAN subscriber on "foo".

As you know, since NATS Streaming is deprecated, I am not sure if it is the right thing for you to invest in this technology. If you start a new project and are new to NATS in general, you should focus your efforts in JetStream.

Reply all
Reply to author
Forward
0 new messages