Microbroker.Client 0.2.1

dotnet add package Microbroker.Client --version 0.2.1
                    
NuGet\Install-Package Microbroker.Client -Version 0.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microbroker.Client" Version="0.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microbroker.Client" Version="0.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Microbroker.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microbroker.Client --version 0.2.1
                    
#r "nuget: Microbroker.Client, 0.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microbroker.Client@0.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microbroker.Client&version=0.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Microbroker.Client&version=0.2.1
                    
Install as a Cake Tool

microbroker

Build & Release

Nuget

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed