the consumer-producer-broker pattern with broker implemented as a server