The Perplexity of Throughput and processing Speed in message queue

using the list of kafka and redis to do message queues, it is found that the throughput of kafka is higher than that of redis. Does that mean that kafka is faster than redis in queuing and dequeuing messages? That is, the time it takes to process a message kafka is shorter than that of redis?

"throughput" is the number of messages processed per unit time. "processing speed" is the time it takes to process a message
throughput and processing speed. Can you draw an equal sign?


No. Generally speaking, kafka mostly uses throughput. The total number of messages processed over a period of time is throughput, but kafka can be processed in batches. The next processing speed in batch mode may not be fast, but the overall throughput will be very high.
of course, don't make a fuss here. If the processing speed is calculated according to the throughput, the two are indeed equivalent. A batch of messages (1000) are processed for 1 second. If you think that a message takes 1 millisecond to process, then the throughput is essentially the same as the processing speed.
in fact, kafka usually does not discuss the metric of processing speed, but generally talks about its throughput (pragmatic).

Menu