go-kafka

command module
v0.0.0-...-3fce37a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

Kafka Go Application

This project exemplifies a straightforward application showcasing the process of producing and consuming messages through Kafka in Go.

Prerequisites

Prior to initiation, it is imperative to verify that your system meets the prescribed prerequisites by ensuring the installation of the following requirements:

  • Latest version of Go (1.17 or higher).
  • Recent version of Apache Kafka (2.8.0 or higher).
  • Recent version of kafka-go (0.4.40 or higher)

Installation

  1. Clone the repository:
git clone https://github.com/mostwelcome/go-kafka.git
  1. Navigate to the cloned repository:
cd your_repository
  1. Install dependencies:
go mod tidy

Usage

  1. Start your Kafka and Zookeeper servers.

  2. Run the producer to send messages to Kafka: go run kafka_producer.go

  3. In a separate terminal, run the consumer to read messages from Kafka: go run kafka_consumer.go

Contribution

  1. Fork this repository.
  2. Create a branch:
git checkout -b <branch_name>.
  1. Make your changes and commit them:
git commit -m '<commit_message>'
  1. Push to the original branch:
git push origin <project>/<location>
  1. Create the pull request using relevant title, description and on-point commit messages.

Contact:

To initiate contact with me regarding this application, feel free to reach out via email.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL