Design a coffee machine which makes different beverages based on set ingredients. The quantity of ingredients used for each beverage can vary
These types of questions are asked in interviews to Judge the Object-Oriented Design skill of a candidate. So, first of all, we should think about the classes.
Create your queue that will hold messages in form of JSON. Standard library queues were not allowed.There was one publisher that can generate messages and multiple subscribers that will listen to messages satisfying a particular regex