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

https://github.com/ntdls/ntdls.memoryqueue

An in-memory, non-persistent message queue designed for efficient inter-process communication, task queuing, load balancing, and data buffering over TCP/IP
https://github.com/ntdls/ntdls.memoryqueue

inter-process-communication ipc message-broker message-queue netmq socket-programming tcp-ip zeromq

Last synced: 23 days ago
JSON representation

An in-memory, non-persistent message queue designed for efficient inter-process communication, task queuing, load balancing, and data buffering over TCP/IP

Awesome Lists containing this project

README

        

# NTDLS.MemoryQueueServer

📦 Be sure to check out the NuGet package: https://www.nuget.org/packages/NTDLS.MemoryQueue

In memory non-persistent message queue intended for inter-process-communication,
queuing, load-balancing and buffering over TCP/IP.

## Running the server:

Running the server can literally be done with two lines of code and can be run in the same process as the client.
The server does not have to be dedicated either, it can be one of the process that is involved in inner-process-communication.

```csharp
internal class Program
{
static void Main()
{
var server = new MqQueuingService();

//Listen for queue clients on port 45784, listen for web UI requests on port 8080.
server.StartAsync(45784, 8080);

Console.WriteLine("Press [enter] to shutdown.");
Console.ReadLine();

server.StopAsync();
}
}
```
See documentation of [NTDLS.MemoryQueue](https://www.nuget.org/packages/NTDLS.MemoryQueue) for client and server interaction examples.

## License
[MIT](https://choosealicense.com/licenses/mit/)