Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/michaelwp/go-smq-service
- Owner: michaelwp
- Created: 2024-07-26T05:19:34.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-26T06:03:13.000Z (7 months ago)
- Last Synced: 2024-09-20T06:26:31.189Z (5 months ago)
- Topics: go, message, queue, streaming
- Language: Go
- Homepage: https://goblog.dev/articles/40
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
```