Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michaelwp/go-smq-service

this is a simple message broker server with pub sub features through http
https://github.com/michaelwp/go-smq-service

go message queue streaming

Last synced: 18 days ago
JSON representation

this is a simple message broker server with pub sub features through http

Awesome Lists containing this project

README

        

# go-smq-service
this is a simple message broker server with pub sub features through http.
Read the article [here](https://goblog.dev/articles/40)

## How to use
Start the server
```bash
go run main.go server.go broker.go
```

## Example Usage

- To publish a message to a topic:
```bash
curl "http://localhost:8080/publish?topic=example&message=hello"
```

- To subscribe to a topic:
```bash
curl "http://localhost:8080/subscribe?topic=example"
```