As and when you will start migrating your products/applications to event driven architectures, the first immediate thought would be “Use Kafka!”. Kafka has really matured over time and provides ton of functionalities out of the box to realise a lot of use-cases. However, the most common one being pub-sub model.

Whats Pub-Sub model?

Its mostly that you will be pushing messages/updates on a topic and there will be consumers subscribing to it to get those updates. However, as we know, it’s not going to be conventional push from broker but a pull from consumer.

Image for post
Image for post
Pub-Sub Model

Usual challenges in such implementations

  • Payload serialisation strategy to use. (Avro/proto-buf/Thrift/gRPC/etc)
  • If you are using a serialisation technique, decide on how to share schemas (i.e…

About

Garg Vatsal

Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store