🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

github.web.gylab.com/vsouza/go-kafka-example

Package Overview
Dependencies
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.web.gylab.com/vsouza/go-kafka-example

Go Modules
Version
v0.0.0-20231219200218-80c1a385487a
Version published
Created
Source

Golang Kafka Example

Sample Golang Kafka Consumer and Producer

Setup

Apache Kafka Quickstart

Producer

go run cmd/producer/main.go

Consumer

flags:

  • brokerList
  • topic
  • partition (default: 0)
  • offsetType
  • messageCountStart (default: 0)

go run cmd/consumer/main.go

Received messages  Something Cool #1
Received messages  Something Cool #2
Received messages  Something Cool #3
Received messages  Something Cool #4
Received messages  Something Cool #5

Contribute

We would love you for the contribution to go-kafka-example, check the LICENSE file for more info.

Meta

Vinicius Souza – @iamvsouzahi@vsouza.com https://github.com/vsouza/go-kafka-example

FOSSA Status

FAQs

Package last updated on 19 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts