Skip to content

A simple streamlined notification application that uses Kafka to efficiently handle the communication between producers and consumers for seamless notification delivery.

License

Notifications You must be signed in to change notification settings

mahdi-eth/GokafkaNotifer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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:
make kafka

Run the Producer

make producer

Run the Consumer

make consumer

Test the Application

  • Send a test notification:
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:
curl http://localhost:8081/notifications/1

About

A simple streamlined notification application that uses Kafka to efficiently handle the communication between producers and consumers for seamless notification delivery.

Topics

Resources

License

Stars

Watchers

Forks