Kafka can run in standalone mode with a single broker or in distributed mode with multiple brokers. Standalone mode is simple and good for local testing but has no fault tolerance. Distributed mode uses multiple brokers to partition and replicate data, providing scalability and fault tolerance. If a broker fails in distributed mode, the cluster continues working without data loss. In standalone mode, failure stops Kafka. This visual trace shows starting Kafka in both modes, sending and consuming messages, and how fault tolerance works in distributed mode.