Skip to content

Instantly share code, notes, and snippets.

@victorarias
Created March 21, 2018 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorarias/ce1a17b01c52161c26ec4a414cacd644 to your computer and use it in GitHub Desktop.
Save victorarias/ce1a17b01c52161c26ec4a414cacd644 to your computer and use it in GitHub Desktop.
19:54:19 kafka_rb$ be ruby producer.rb
producer_2: Starting to publish messages...
producer_2: Publishing message with key=9 message={"bid_amount":9,"producer_id":"producer_2"}
producer_1: Starting to publish messages...
producer_1: Publishing message with key=4 message={"bid_amount":4,"producer_id":"producer_1"}
producer_1: Publishing message with key=6 message={"bid_amount":12,"producer_id":"producer_1"}
producer_2: Publishing message with key=9 message={"bid_amount":18,"producer_id":"producer_2"}
producer_2: Publishing message with key=5 message={"bid_amount":15,"producer_id":"producer_2"}
producer_1: Publishing message with key=8 message={"bid_amount":24,"producer_id":"producer_1"}
producer_1: Publishing message with key=2 message={"bid_amount":8,"producer_id":"producer_1"}
producer_2: Publishing message with key=6 message={"bid_amount":24,"producer_id":"producer_2"}
producer_1: Publishing message with key=2 message={"bid_amount":10,"producer_id":"producer_1"}
producer_2: Publishing message with key=7 message={"bid_amount":35,"producer_id":"producer_2"}
producer_1: Publishing message with key=9 message={"bid_amount":54,"producer_id":"producer_1"}
producer_2: Publishing message with key=3 message={"bid_amount":18,"producer_id":"producer_2"}
producer_2: Publishing message with key=2 message={"bid_amount":14,"producer_id":"producer_2"}
producer_1: Publishing message with key=4 message={"bid_amount":28,"producer_id":"producer_1"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment