A simple streamlined notification application using Kafka to efficiently handle the communication between producers and consumers for seamless notification delivery.
- Docker Desktop must be installed and running.
- Go version 1.22.5 or later.
Follow these steps to run the project:
git clone https://github.com/mahdi-eth/GokafkaNotifer.git
cd GokafkaNotifer
- Make sure Docker Desktop is up and running, then start the services:
make kafka
make producer
make consumer
- 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