![Kunal Ladhani Profile](https://pbs.twimg.com/profile_images/1882950394743267328/mNhm1XAP_x96.jpg)
Kunal Ladhani
@KunalLadhani
Followers
170
Following
2K
Statuses
1K
Software Engineer | @BitsPilaniGoa '21
Bengaluru, India
Joined July 2010
@cneuralnetwork Greek alphabets - alpha, beta. Or famous physicists - Oppenheimer, maxwell, plank, bohr, etc.
0
0
0
I have been working with kafka since past year and still feel like I've just scratched the surface. Reading the GitHub code for kafka, I have massive respect for these folks, especially neha nagarkar (she's from COEP) plus the whole thing was written in Java ๐ฅฐ
Apache Kafka was born out of a problem. ๐ LinkedIn engineers => faced difficulties in tracking website metrics, activity streams and other operational data. A team of engineers => led by Jay Kreps, Neha Narkhede and Jun Rao started developing a distributed publish-subscribe messaging system that could handle high-throughput, low-latency data streams. This system eventually became Apache Kafka. It was open sourced in early 2011. The name 'Kafka' was chosen by Jay Kreps. He named the system after the famous author 'Franz Kafka'. ๐ Kreps was an admirer of Franz Kafka's writing and found the name fitting for a system that dealt with the flow of information. It's written inย Javaย andย Scala. Later they founded => 'Confluent' (a company) in 2014 to provide commercial support and additional tools for Kafka users. ๐๐๐ญ'๐ฌ ๐ฎ๐ง๐๐๐ซ๐ฌ๐ญ๐๐ง๐ ๐ญ๐ก๐ ๐๐๐ฌ๐ข๐ ๐๐ฅ๐จ๐ฐ. [1.] Producer sends a message โพ An application acts as a producer, creating a message with data (payload) and optional key. โพ The producer connects to a broker in the Kafka cluster and identifies the target topic. โพ Kafka uses a partitioner to determine which partition within the topic should receive the message. This ensures load balancing and parallel processing. โพ The message is delivered to the leader replica of the chosen partition. [2.] Message storage and replication โพ The leader replica appends the message to its log segment. โพ The message receives a unique offset, serving as its position within the log. โพ The leader replicates the message to follower replicas for fault tolerance. [3.] Consumer fetches messages โพ An application acts as a consumer, joining a consumer group. โพ Consumers within the same group share offsets and coordinate consumption. โพ Each consumer fetches messages from its assigned partitions based on its committed offset. โพ The consumer receives batches of messages and processes them. [4.] Acknowledging consumption โพ Once processing is complete, the consumer commits its new offset. โพ This tells Kafka which messages have been successfully consumed. โพ Kafka tracks committed offsets for each consumer in the group. [*.] Flow continues โพ Producers continue sending messages and consumers keep fetching and processing them based on their latest offsets. โพ This cycle ensures ordered delivery and reliable consumption even with failures or restarts. Remember, ๐ Message flow is asynchronous. Producers don't wait for consumers to process messages. ๐ Consumers can lag behind producers if processing is slow. ๐ Kafka offers mechanisms for handling failures and ensuring at-least-once or exactly-once delivery semantics. Topics => Partitions =>Log Segments (Data is actually stored in log segments) Follow @techNmak
0
0
0
@ganeshunwired Btw height adjustable table lene ka soch rha tha, for my pc setup, will check it out.
0
0
0
@lowkeyloud_ Wtfff bro. I did this in 12th and cleared college exams with flying colours. Share your experience on twitter - no whatsapp etc. how you navigated this and how it impacted your attention span.
0
0
3
@SumitM_X This plus trivial things which I don't use everyday eg ive seen that I keep forgetting map methods. Mostly used them in dsa qns.
0
0
2
Pushed this to PROD today with major Kafka implementation. Ek time pe darr lagta tha kafka se, aaj impl kar from scratch. ๐ช
@lowkeyloud_ Merged a biggg asss PR with 50+ files. Got it to PROD. Only to realize requirements got changed by PM ๐๐
0
0
0
@sde_ray On top of that the CEO advertising 90hrs work week is straight up criminal. But kinda dumb on employees part ki they got 2yrs, still they didn't upskill. Even after we have so much on YouTube only. Phir to theek hi kia. They could've dealt with it politely. Par nikalna galat ni h
0
0
15