Fan-out broadcasts a message to multiple processors. Fan-in aggregates results from parallel executions.
An Order is placed (Fan-out). Inventory, Email, and Fraud services process it in parallel. Once all 3 reply (Fan-in), the order is confirmed.
class Fan-out/Fan-in:\n def __init__(self):\n pass\n\n def execute(self):\n print('Executing Fan-out / Fan-in')