Skip to content

Releases: gocollection/kafka-go

v1.1.1

01 Aug 09:29
23ecaec
Compare
Choose a tag to compare
Merge pull request #3 from gocollection/dev

Dev

Middleware and Interceptor

02 Jun 19:50
90c6941
Compare
Choose a tag to compare

Middleware and Interceptor construct added similar to before and after advice of AOP

  • Middleware - multiple middleware can be passed in consumer param to pre process messages before passing them to the topic handler
  • Interceptor - interceptor lifecycle is available around the message handler i.e. before the message handling and after it. Multiple interceptor can be used which will intercept the message in layered fashion. Refer to godoc for more details and example.

Patch to limit the consumer session retry

19 May 11:22
140f6ab
Compare
Choose a tag to compare
  • while starting a consumer session, it can cause a repeated error,
    patch restrict retries in such cases to 5 attempt with linear backoff
  • A successful setup and clean up will reset the retry counter
  • version support comments

Kafka abstraction for Consumer and Producer APIs

18 May 20:15
Compare
Choose a tag to compare

An easy abstraction to create Consumer and Producer workflow to a kafka cluster.

New Feature-

  • Generic PubSub API, implementable by multiple PubSub frameworks. Kafka implementation added
  • Create a Kafka Consumer, APIs to start and gracefully stop the consumer process
  • Create a Kafka Producer, APIs to publish single/bulk messages in Sync and Async
  • Fail safety and Leaks taken care of