Adonis Kafka consumer rest api?

Kafka consumer rest api examples if have work please send reference link

https://www.gkmit.co/blog/using-kafka-with-adonis-js-application

2 Likes

Thanks a lot for creating wonderful blogs.
Is it used consumer in rest API? And how?

Thanks for really wonderful blog !

1 Like

Sorry for late response but,
Can you please elaborate how do you expect to use consumer in a rest api ?

In my rest api, I want to respond my rest client latest last 10 record in my Kafka topic for each request. So how can I achieve?

You can use the setOffset method to set the consumer to last nth record and then process it accordingly.

1 Like

First thank to reply,
After testing I ll ping you @Sonal