Skip to content

Instantly share code, notes, and snippets.

View 0x1b-xyz's full-sized avatar

Jason Stiefel 0x1b-xyz

View GitHub Profile
@jhoblitt
jhoblitt / memory.groovy
Created January 11, 2017 16:13
Jenkins console groovy script to report jvm memory usage
int mb = 1024*1024
Runtime runtime = Runtime.getRuntime()
out.println runtime.freeMemory() / mb
out.println runtime.totalMemory() / mb
out.println runtime.maxMemory() / mb
@ashrithr
ashrithr / kafka.md
Last active March 14, 2024 21:16
kafka introduction

Introduction to Kafka

Kafka acts as a kind of write-ahead log (WAL) that records messages to a persistent store (disk) and allows subscribers to read and apply these changes to their own stores in a system appropriate time-frame.

Terminology:

  • Producers send messages to brokers
  • Consumers read messages from brokers
  • Messages are sent to a topic