Consume only first message from Kafka Queue? -


is there way consume first message kafka queue out of 1000 messages? trying implement same in java. , not have backend db.

right can't it, there kip-41 solved this.

although if know size of element want, there property in consumer called fetch.message.max.bytes can set size of elements want poll, , each poll return 1 record.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -