We realized that at every iteration we created new goroutines without releasing previous ones, we can re-use the same goroutines or close and create new ones.
On the consumer side of Kafka topics, we want to ignore some messages or process only some messages depending on the message type. Mostly, message producers send their events with some details on the message header. So, could the cronsumer project gives us a feature about ignoring/accepting messages for a given header key/values.
Right now if we have more than one consumer and apiEnabled is true, for every consumer we are creating new api. Instead we can create the api once and use this API for all consumers.
Sometimes we have faced big lag of exception/retry topics, In that kind of situation we need close the cron and finish the lag asap so we can provide this feature