4.5. Writing Request/Response Applications in Python
This section describes two sample programs that implement a Request/Response application using a Direct exchange.
server.py receives messages, converts them to upper case, and sends them back to the original client.
client.py sends requests to the server as messages, receives responses and prints them to the screen.