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

https://github.com/thomasboom89/simple-http-message-queue

This is a simple message queue / message broker based on http and grpc
https://github.com/thomasboom89/simple-http-message-queue

go grpc htt message-queue

Last synced: 7 months ago
JSON representation

This is a simple message queue / message broker based on http and grpc

Awesome Lists containing this project

README

          

# Simple Http Message Queue

This is a simple message queue / message broker based on http

![Go](https://img.shields.io/github/go-mod/go-version/thomasboom89/simple-http-message-queue/main?style=for-the-badge)
![License](https://img.shields.io/badge/license-GNU%20GPLv3-green?style=for-the-badge)

## Setup

### Docker

Modify compose.yml depending on your needs (reverse proxy config, port mapping etc.)
Then start the docker container via

```zsh
make live
```

## Usage

You can publish messages with http POST on /{topic}/publish message must be sent in plaintext

To receive messages you can http GET on /{topic}/subscribe or connect via websocket to /{topic}/ws
On the websocket you need to send "next" in plaintext to get a new message

You can use the gRPC endpoints to publish and subscribe to messages, see internal/grpc/messagebroker.proto

## License

Simple Http Message Queue \
Copyright (C) 2024 ThomasBoom89. GNU GPLv3 license.