Use thousands of leaf nodes at the edge #5974
-
Hi, I work for a retail company, and I'm currently studying NATS for edge use cases. We're planning to install a NATS leaf node in each of our 1,700 stores, all connected to a central cluster hosted at our cloud provider. The data exchanges will be between the stores and the central cluster, with no communication occurring between stores directly. However, managing 1,700 leaf nodes is a significant concern, particularly due to the potential increase in NATS gossip between all nodes.
Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Leafnodes do not gossip between other leaf nodes unless there is legitimate interest, is that the Gossip you are concerned about? |
Beta Was this translation helpful? Give feedback.
-
The trick to avoid lots of interest graph propagation between leafnodes when you do not need or desire east/west communications is to have them use the same cluster name. This prevents the hub/cloud side from having to deal with interest graph propagation between each leafnode. We will formalize this in 2.11, but for now use that trick in setups like these. |
Beta Was this translation helpful? Give feedback.
The trick to avoid lots of interest graph propagation between leafnodes when you do not need or desire east/west communications is to have them use the same cluster name. This prevents the hub/cloud side from having to deal with interest graph propagation between each leafnode.
We will formalize this in 2.11, but for now use that trick in setups like these.