Assume Kafka consumer has to consume 5 messages and these will be processed in A class & B class.
5 Messages --> KAFKA CONSUMER --> PROCESS A CLASS ---> PROCESS B Class
My question is: Whether all 5 messages will be consumed immediately (one by one) or is there any time period to consume one data after next message. Reason for this question is if Message 1 is consumed in the above flow and PROCESS B class takes longer time. Whether Message 2 will be consumed before PROCESS B class completes for Message 1.