Microbroker.Client
0.2.1
dotnet add package Microbroker.Client --version 0.2.1
NuGet\Install-Package Microbroker.Client -Version 0.2.1
<PackageReference Include="Microbroker.Client" Version="0.2.1" />
<PackageVersion Include="Microbroker.Client" Version="0.2.1" />
<PackageReference Include="Microbroker.Client" />
paket add Microbroker.Client --version 0.2.1
#r "nuget: Microbroker.Client, 0.2.1"
#:package Microbroker.Client@0.2.1
#addin nuget:?package=Microbroker.Client&version=0.2.1
#tool nuget:?package=Microbroker.Client&version=0.2.1
microbroker
A very simple message brokerage service.
Messages are handled in FIFO order, with at-most-once delivery semantics. Transactional messaging is not supported at this time - it's a very simple broker after all!
How to install
A docker image is available from the Github Container Registry.
docker pull ghcr.io/tonycknight/microbroker:<latest tag>
You'll also need a MongoDB database installed, available and protected. Please note that the database is not created nor maintained. See the MongoDB documentation on how to install and create databases
How to run
Start the container:
docker run -it --rm --publish 8080:8080 ghcr.io/tonycknight/microbroker:<tag> --mongoDbName "<database name>" --mongoConnection "<connection string>"
The parameters you'll need to pass are:
mongoDbName |
The name of the database within the Mongo installation. |
mongoConnection |
The connection string to the Mongo DB. |
The endpoints
API endpoints
GET /api/heartbeat/ |
Check the API is alive. |
GET /api/queues/ |
List active queues. |
GET /api/queues/<queue name>/ |
Get details on the queue at queue name. |
DELETE /api/queues/<queue name>/ |
Delete the queue at queue name. |
GET /api/queues/<queue name>/message/ |
Get the next message from the queue at queue name. If a message does not await, a 404 will be returned. |
POST /api/queues/<queue name>/message/ |
Post a message to the queue at queue name. |
Posting a message onto a queue
To push a message onto a queue, simply send a POST request to /api/queues/<queue name>/message/.
The message is in the request's body:
{
"messageType": "any arbitrary message type of your choice",
"content": "arbitrary message content"
}
Pulling a message from a queue
Simply send a GET request to /api/queues/<queue name>/message/.
A 200 response will contain the message at the head of the queue.
A 404 response will indicate the queue is empty at that time.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FSharp.Core (>= 10.0.102)
- Microsoft.Extensions.DependencyInjection (>= 10.0.2)
- Newtonsoft.Json (>= 13.0.4)
-
net8.0
- FSharp.Core (>= 10.0.102)
- Microsoft.Extensions.DependencyInjection (>= 10.0.2)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.1 | 122 | 2/1/2026 |
| 0.2.0 | 98 | 1/25/2026 |
| 0.1.65 | 98 | 1/21/2026 |
| 0.1.62 | 177 | 12/26/2025 |
| 0.1.61 | 171 | 12/26/2025 |
| 0.1.57 | 121 | 11/29/2025 |
| 0.1.55 | 114 | 11/29/2025 |
| 0.1.48 | 129 | 9/27/2025 |
| 0.1.47-preview | 123 | 9/27/2025 |
| 0.1.46-preview | 114 | 9/27/2025 |
| 0.1.45 | 104 | 9/27/2025 |
| 0.1.42 | 111 | 9/27/2025 |
| 0.1.41-preview | 128 | 9/27/2025 |
| 0.1.40 | 1,266 | 10/7/2024 |
| 0.1.39-preview | 106 | 10/7/2024 |
| 0.1.38 | 142 | 10/6/2024 |
| 0.1.37-preview | 123 | 10/6/2024 |
| 0.1.36-preview | 119 | 10/6/2024 |
| 0.1.35 | 418 | 7/28/2024 |
| 0.0.136-preview | 90 | 1/24/2026 |