this is a simple message broker server with pub sub features through http. Read the article here
Start the server
go run main.go server.go broker.go
- To publish a message to a topic:
curl "http://localhost:8080/publish?topic=example&message=hello"
- To subscribe to a topic:
curl "http://localhost:8080/subscribe?topic=example"