Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mahdi-eth/gokafkanotifer
A simple streamlined notification application that uses Kafka to efficiently handle the communication between producers and consumers for seamless notification delivery.
https://github.com/mahdi-eth/gokafkanotifer
backend go golang kafka kafka-consumer kafka-producer kafka-streams message-broker message-queue
Last synced: 2 days ago
JSON representation
A simple streamlined notification application that uses Kafka to efficiently handle the communication between producers and consumers for seamless notification delivery.
- Host: GitHub
- URL: https://github.com/mahdi-eth/gokafkanotifer
- Owner: mahdi-eth
- License: mit
- Created: 2024-08-01T00:52:48.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-01T05:04:07.000Z (5 months ago)
- Last Synced: 2024-11-11T00:13:30.444Z (2 months ago)
- Topics: backend, go, golang, kafka, kafka-consumer, kafka-producer, kafka-streams, message-broker, message-queue
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KafkaNotifier
A simple streamlined notification application using Kafka to efficiently handle the communication between producers and consumers for seamless notification delivery.
## Prerequisites
- Docker Desktop must be installed and running.
- Go version 1.22.5 or later.## Getting Started
Follow these steps to run the project:
### Clone the Repository
```sh
git clone https://github.com/mahdi-eth/GokafkaNotifer.git
cd GokafkaNotifer
```## Start Docker Services
- Make sure Docker Desktop is up and running, then start the services:
```sh
make kafka
```## Run the Producer
```sh
make producer
```## Run the Consumer
```sh
make consumer
```## Test the Application
- Send a test notification:
```sh
curl -X POST http://localhost:8080/send -d "fromID=4&toID=1&message=Lena liked your post: 'My weekend getaway!'"
```
- Retrieve notifications for a user:
```sh
curl http://localhost:8081/notifications/1
```