https://github.com/muthukumar89uk/go-simple-kafka-example
It is a simple data streaming application implemented by Golang and Kafka. The producer can produce the data using the topics and the consumer can consume the data using the same topic.
https://github.com/muthukumar89uk/go-simple-kafka-example
go golang kafka kafka-consumer kafka-producer
Last synced: about 2 months ago
JSON representation
It is a simple data streaming application implemented by Golang and Kafka. The producer can produce the data using the topics and the consumer can consume the data using the same topic.
- Host: GitHub
- URL: https://github.com/muthukumar89uk/go-simple-kafka-example
- Owner: muthukumar89uk
- Created: 2024-07-31T09:37:18.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-08-01T07:17:05.000Z (10 months ago)
- Last Synced: 2025-02-08T01:33:22.500Z (3 months ago)
- Topics: go, golang, kafka, kafka-consumer, kafka-producer
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Kafka Example
This repository demonstrates how to set up a simple Go project to produce and consume messages using Confluent Kafka.
## Features
- Kafka producer and consumer implemented in Go
- Basic example of sending and receiving messages## Requirements
- Go 1.15 or higher
- Confluent Kafka
- Docker (optional but recommended for setting up Kafka)## Getting Started
### Installation
1. **Clone the repository:**
```
git clone https://github.com/muthukumar89uk/go-simple-kafka-example.git
```
Click here to directly [download it](https://github.com/muthukumar89uk/go-simple-kafka-example/zipball/master).2. **Install Go dependencies:**
```
go mod tidy
```
3. **Install Kafka locally:**Follow the instructions for your operating system on the [Official Confluent Kafka Website](https://docs.confluent.io/platform/current/platform-quickstart.html).
### Run the Application
1. **Run the Kafka producer:**
```
go run producer.go
```2. **Run the Kafka consumer:**
```
go run consumer.go
```