Ethan (@EthanWH) header
Ethan (@EthanWH) profile picture

Chaos is order yet undeciphered

Joined April 2012
Photo by Ethan (@EthanWH)Photo by Ethan (@EthanWH)Photo by Ethan (@EthanWH)Photo by Ethan (@EthanWH)Photo by Ethan (@EthanWH)Photo by Ethan (@EthanWH)Photo by Ethan (@EthanWH)Photo by Ethan (@EthanWH)Photo by Ethan (@EthanWH)Photo by Ethan (@EthanWH)
I've been using 𝐀𝐩𝐚𝐜𝐡𝐞 𝐊𝐚𝐟𝐤𝐚 for years now and I absolutely love it. Let me explain the message/event flow in simple terms. Give it a read. 👇 𝐃𝐨 𝐲𝐨𝐮 𝐤𝐧𝐨𝐰 𝐰𝐡𝐚𝐭? 𝐀𝐩𝐚𝐜𝐡𝐞 𝐊𝐚𝐟𝐤𝐚 𝐰𝐚𝐬 𝐛𝐨𝐫𝐧 𝐨𝐮𝐭 𝐨𝐟 𝐚 𝐩𝐫𝐨𝐛𝐥𝐞𝐦. 😉 LinkedIn engineers => faced difficulties in tracking website metrics, activity streams and other operational data. A team of engineers => led by @jaykreps , @nehanarkhede and @junrao 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 (@confluentinc)' (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
4
105
556
49,761
If you want to become good at system design (not kidding), learn these case studies:
13
205
3
1,580
160,746
Useful Free APIs for Developers
12
335
8
2,337
182,105
🎉Celebramos esa generación con un #SORTEO de #NintendoSwitch2🎉 Para participar: ➡️Sigue a @xtralife_es 🔁Haz RT a esta publicación 💬Comenta con #NS2xtralife en esta publicación 📅Hasta 14/04/2025
5,985
5,243
54
2,778
389,741
How does DNS work? (Simplified)
5
99
1
636
58,499
Ethan retweeted
🟦 Si tienes un pantallazo azul debido al fallo de CrowdStrike que está afectando a medio mundo, hay solución: ▪️ Arranca Windows en Modo Seguro ▪️ Busca la carpeta de CrowdStrike ▪️ Busca y borra el archivo C-00000291*.sys. ▪️ Reinicia el ordenador ¡Comparte! 📢
196
9,439
310
18,636
1,786,181
Sorteo del patrocinador @RazerES Este mes tocan los cascos Razer BlackShark V2 Pro para PC Lo de siempre RT, follow a @RazerES, residir en España, ya saben como va el tema ❤️
99
3,400
2
1,969
185,807
Hay que ser un absoluto anormal para que en el puto día de tu hijo, uno de los que lleva esperando todo el año, se tenga que juntar con el niño que le hace la vida imposible. El que invita al bully es un padre de mierda y un enfermo mental.
¿Invitaríais al cunpleaños de vuestro hijo o hija a un niño que sabéis que le ha insultado en el colegio y con cuya madre habéis tenido trifulca solamente porque está en el grupi?
1
2
84
Sorteo del patrocinador @RazerES de este mes, justo antes de que se acabe (para nada me había olvidado 👀) - Razer Kraken V3 Hypersense - RT al tweet, sigan a @RazerES ya saben como funciona esto - Residir en España es necesario también y teneis haaaasta el día 1
159
4,507
4
2,332
341,976
He empezado un Medium para compartir mis sueños bizarros, entretener 5 minutos a la semana a la gente y poder revisarlo a modo de diario. I just published (ES) El Niño Gordo, la pelea en la mansión y la influencer. link.medium.com/Wn2EKBZq1Db
1
1
2
54
cosas k pasan
175
2,333
363
12,835
1,208,734
Sorteito del patrocinador @RazerES de este mes - Ratón Viper V2 Pro - Seguir a @RazerES - RT al tweet - Tenéis hasta el domingo día 4 Podéis elegir color :)
212
5,105
3
2,796
404,651
Como ha quedado un libro de Los Secretitos de Elden Ring sin reclamar en este sorteo. Vamos a hacer uno express Solo hay que seguirme y hacer RT a este mensaje. Doy el ganador hoy a las 20:00 Al que gane se lo mando firmado y dedicado.
44
608
7
307
85,987
For the 3 people that follow me here. My band released a new song. If you could help me reach out to as much people as possible, I'd appreciate it 🥺 Do people still use tags here? #metal #hardcore #blackmetal #deathmetal #breakdown youtube.com/watch?v=ykJGywAt…
2
3
63
Sorpresa 💥 ¡Sorteo "Slimbook PRO X 14" para celebrar el #HolaMundoDay! Participa: 1️⃣ Sigue a @slimbook 2️⃣ Sigue a @MoureDev 3️⃣ Like + RT 🌐 Válido todo el mundo 🗓️ Resultados el 8 de mayo durante el evento principal
129
1,689
15
1,897
155,820
¡Sorteo "Stream Deck +" para celebrar el #HolaMundoDay! Participa: 1️⃣ Sigue a @elgatoES 2️⃣ Sigue a @MoureDev 3️⃣ Like + RT 🌐 Válido todo el mundo 🗓️ Resultados el 8 de mayo durante el evento principal
68
845
11
946
95,361
¡Hoy presento mi primer libro en directo! "Git & GitHub desde cero: guía teórico-práctica" 🎁 Voy a SORTEAR 5 en el live y 5 en Twitter. Participa: 1️⃣ Sígueme 2️⃣ Like + RT 🌐 Todo el mundo 🗓️ Hasta el Lunes 24 Te cuento más sobre la presentación y venta en este hilo ↓
55
1,186
24
1,661
198,883