Introduction
When two programs need to talk and get answers, they can use queues to send messages. RPC helps by making one program ask a question and wait for the answer, even though messages travel through queues.
When a service needs to ask another service for data and wait for the answer.
When you want to split a big task into smaller parts and get results back from each part.
When you want to keep programs separate but still let them communicate clearly.
When you want to avoid programs waiting too long by using queues but still get replies.
When you want to build a simple chat between two programs using message queues.