Queue Handling Publish Events notify-keyspace-events yes is publish successful? no Subscribe to Events Error Program Terminates Listen to Events no has a notification arrived? yes Check Notification no Is the notification linked to a sock? yes Get name name from the sock get socks Check name list1 yes no Are there elements in the list1? Remove 1st item from list1 and create a sock Check name list2 Is sock creation successful? yes Are there elements in the list2? no no yes Log Report Remove 1st item from list2 and create a sock Is sock creation successful? yes no Log Report