Queue HandlingPublish Eventsnotify-keyspace-eventsis publish successful?yesnoSubscribe to EventsListen to Eventsyeshas a notification arrived?noCheck NotificationyesIs the notification linked to a sock?noGet name name from the sockget socksCheck name list1Are there elements in the list1?yesnoRemove 1st item from list1 and create a sockLog ReportnoIs sock creation successful?yesCheck name list2Remove 1st item from list2 and create a sockLog ReportnoIs sock creation successful?yesyesAre there elements in the list2?noErrorProgram Terminates