Posts

Mastering SpringKafka: Uncovering Partition Creation and Replication Counts

Introduction: "Apache Kafka is a distributed streaming platform that allows you to build real-time data pipelines and streaming apps. It is widely used for its high throughput, fault tolerance, and replication capabilities." In this post, we'll look at a common scenario that many Kafka users encounter, determining the count of partitions and replications for a Kafka topic. Problem Statement: "Imagine you've just joined a new project where Kafka is being used. You need to understand the current configuration of your Kafka topics, specifically, how many partitions and replications have been created. But what if there's no documentation available? Don't worry, there's a way to find out using KafkaAdmin" Technical Terms: KafkaAdmin - Spring Kafka API for communicating with kafka server AdminClient - Apache Kafka API for communicating with kafka server using native client Solution: public List<TopicInfo> getTopicsWithPartitions ( boolean showI...

ABC’s Of Life

                I had seen this post in some blog but still I like it so presenting here with my own view A – Available/Single?     Always Likes To Be Single B – Best friend?     Many Depends on the situation I am in, some one fills the void C – Cake or Pie?     Cake     D – Drink of choice?     Takes very less but goes with Apple Juice E – Essential item you use every day?     Clothes [: P] F – Favorite color?     Pale Blue, White, Black G – Gummy Bears or Worms?     None H – Hometown?     Potharlanka I –Indulgence?     Computers, Friends J – January or February?     January likes the early morning climate and festivals that occurs in that month K – Kids & their names?    ...