How to write Kafka consumers - single threaded vs multi threaded How to write Kafka consumers - single threaded vs multi threaded multithreading multithreading