Skip to content

osalama7/kafka-go-getting-started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Go Getting Started

This project demonstrates how to use Go with Apache Kafka using the confluent-kafka-go client library. It includes simple producer and consumer examples, and a Docker Compose setup for running Kafka locally.

following Confluent documentation

Prerequisites

Project Structure

Getting Started

1. Start Kafka and Dependencies

Start the Kafka environment using Docker Compose:

docker-compose up -d

install go dependencies

go mod tidy
  1. Run the Producer Send random purchase events to the purchases topic:
./out/producer
  1. Run the Consumer Consume and print events from the purchases topic:
./out/consumer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages