Publishing to multiple topics with multiple node or single node?

asked 2020-12-18 02:46:25 -0500

langad gravatar image

Dear all,

I was wondering what is better if I want to publish to different topics in the same executable. Should I use the same node for all topics or is it better to use one node for each topic?

edit retag flag offensive close merge delete



There is no right or wrong. If you provide more information maybe one solution is better. Just remember that it is good practise to let each node do one job, if that job is publishing to multiple topics then that's perfectly fine. But if each publish needs a complex calculation first, then it might be better to split it up into multiple nodes.

crnewton gravatar image crnewton  ( 2020-12-18 09:28:52 -0500 )edit