I started building a NATS Message Broker from scratch using Go. I got the idea from John Cricket's NATS Message Broker Challenge and thought it would be a great project to learn from. At first, I didn’t even know what a message broker was.
After some research, I learned that a message broker works like a subscription system. If you subscribe to a subject, you get messages whenever someone publishes something on that subject.
In this video, I show a short preview of my journey—reading web pages and learning step by step to make this project work. It’s not as advanced as the original NATS Message Broker, but the code can help you understand how a message broker works.
Technologies Used:
Golang
Here is the final output:
https://github.com/melsonic/gnats-server
Run it, test it, break it, do whatever you want : ) jk
#programminglife