04-11-2018 11:48 AM
Hello,
Can any one of point out the Difference between Master/Slave vs Producer/Consumer?
Is producer consumer also a master slave?
Hemant
Solved! Go to Solution.
04-11-2018 12:00 PM - edited 04-11-2018 12:02 PM
Perhaps overly simplified, but:
Master/Slave: 1 master loop, N slave loops
Producer/Consumer: N producer sources, 1 consumer loop
Master/Slave is usually used for parallel operations to be executed in arbitrary order where Producer/Consumer is used when operations might be requested simultaneously but need to execute in a serial order.
You can see that they are equivalent if and only if N = 1.
04-11-2018 12:06 PM
Producer consumer, means only one consumer? I am little confuse.
04-11-2018 12:08 PM
04-11-2018 02:14 PM
Producer/Consumer - all elements are processed, therefore Queue
Master/Slave - only the latest command is processed, therefore Notifier
A Master/Slave is actually closer to a Queued Message Handler, but that is another thread...