~/talk

A Kafka Producer’s Request: Or, There and Back Again

Talkat Devoxx Belgium 2024 · 2024-10-07..10-11· [distributed-systems]
slides:none on file

Follows a producer.send() from client to disk and back: keys serialize to bytes, default partitioning uses sticky partitioning (not round-robin) across six partitions, topic replication factor is three, batching defaults to ~batch size 16KB and linger.ms 0 with buffer.memory 32MB on the client, max.request.size ≈1MB, acks defaults to all, max.in.flight.requests is 5, num.network.threads 3 and io threads 8, replication fetchers poll (~500ms nominal, often 5–8ms), and metrics like request latency, localTimeMs and remoteTimeMs pinpoint where delays occur.

AI-written summary · about

  1. 0:00Introduction
  2. 2:18Getting data into Kafka
  3. 3:14Creating a producer client
  4. 3:33Data is in Costco
  5. 4:13What happens when you issue a producer request
  6. 5:15How to write data into Kafka
  7. 6:22Partitioner class
  8. 10:35Batching
  9. 11:26Batch Size
  10. 12:46Linger Ms
  11. 13:47Buffer Memory
  12. 15:10Metrics
  13. 17:17Compression
  14. 19:05Additional Configurations
  15. 23:27Request Metrics
  16. 24:37Nested Objects
  17. 25:59Leaving Application Developer Domain
  18. 26:41Socket Receive Buffer
  19. 27:27Processing the Request
  20. 28:37Request Queue
  21. 29:36Request Handler
  22. 30:34Write to Disk
  23. 31:54Kafka Configurations
  24. 32:41Kafka Monitoring
  25. 33:21Tiered Storage
  26. 34:36Purgatory
  27. 37:20Response Queue
  28. 37:52Back to Network Threads
  29. 38:33Summary Metrics
  30. 39:38Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.