I'm in the midst of attempting to create a publisher-subscriber design. What i understand is that a publisher-subscriber pattern will mainly include distributing messages to certain subscribers at certain times. I was thinking there would be a "publisher" class & a "subscriber" class and later on publisher will have a
list of subscribers inside a
for loop. With each subscriber in the
for loop, a fucntion to update each subscriber will be implemented.
If anyone could help me with perhaps possibly giving any guidelines (through simple description based on thoughts, particular functions i should consider or even certain links to tutorials) i'd be very thankful. Links to tutorials will be VERY welcomed.