I am using Rest proxy in my application developed in Go and the steps for consuming topics are:
- Create a Consumer instance
- Subscribe to a topic
- get the records
- and delete the consumer instance
Now the question I have is I want to have a consumer running always in a goroutine polling for topics, do I need to follow each of the steps always or can I do step1 and 2 first and keep cycling on step 3 and not delete the consumer instance?