Kafka - Event-Driven Architecture
Identify the error in this Kafka CQRS command handler code:
producer.send('orders-commands', {'orderId': 10, 'action': 'update'})
consumer.subscribe(['orders-commands'])
for msg in consumer:
process_command(msg.value)
producer.send('orders-events', {'orderId': 10, 'status': 'updated'})