Questions tagged [netmq]

A native .NET library for ZeroMQ messaging.

NetMQ is a 100% C# implementation of ZeroMQ for the .NET platform.

It provides a low overhead messaging solution for high performance applications over a variety of transports.

163 questions
2
votes
1 answer

How to use PollTimeout in NetMQ?

I can't find any documentation telling me how to use PollTimeout in NetMQ. Can it be used to detect a send or receive timeout? In case it can, how?
Erik Z
  • 4,660
  • 6
  • 47
  • 74
2
votes
1 answer

Messages are not delivered after reconnect over ROUTER-ROUTER in NetMQ

I have a problem with ROUTER-ROUTER communication with NetMQ. Two applications, Client and Server. Both using ROUTER sockets. Client ROUTER socket is not setting it's identity explicitly, only Server. After the connection established first time,…
iiwaasnet
  • 51
  • 1
  • 8
2
votes
1 answer

How to only send last message to server using NetMQ/ZeroMQ?

I want to send data to a server from a client. Only the last message is important to the server. If the server comes up after a failure I only want the server to get the last message from the client. While the server is down I want the client to…
Erik Z
  • 4,660
  • 6
  • 47
  • 74
2
votes
1 answer

0mq/NetMQ PUB/SUB not delivering all messages

GOAL: send a lot of messages to all subscribers in one iteration. I have 40k-100k messages. I have started to use PUB/SUB socket type. PROBLEM: number of received messages on subscribers is lower than number of sent messages on publisher. If I add…
Jabolcnik
  • 41
  • 5
1
vote
0 answers

NetMQ PGM dropping packets client-side

I've implemented a PGM publisher/subscriber setup. The server receives data from a TCP connection to another server, and distributes it to clients using the PGM protocol. However, after logging the data on both server and client it would seem the…
Mike
  • 21
  • 1
1
vote
2 answers

How to publish one socket with multiple threads in ZeroMQ

I am using NetMQ, ZeroMQ's c# library, and I implemented it as follows. The problem here is that in the case of PublishAsync, multiple threads generate and invoke data from the outside. However, since Publish is performed on one thread called…
taebong
  • 35
  • 4
1
vote
2 answers

ZeroMQ pub sub filtering behavior

I'm new to ZeroMQ. Today I am trying the pub/sub pattern with NetMQ (the ZMQ library for .NET). I noticed some strange behavior (at least, to me!). I create a subscriber socket and subscribes to topic "12345". The publisher then publishes messages…
Kenna
  • 15
  • 3
1
vote
1 answer

Using NetMQMonitor to detect server disconnects?

I am looking for a better way to detect disconnects when a Router/server goes down or is unavailable due to a poor connection. (I'm Listening from a Dealer/client running on wifi) I found zmq_socket_monitor() and discovered that NetMQ has the same…
millejos
  • 301
  • 3
  • 14
1
vote
3 answers

NetMQ gets stuck when I try to dispose the Poller (Request-Reply pattern)

This is my first project using the NetMQ (ZMQ) framework, so, maybe I didn't understand how to use it exactly. I create a Windows Forms project with two applications, one send a "ping" to the other and receives a "pong" as an answer. The protocol is…
1
vote
3 answers

How to set up a ZeroMQ request-reply between a c# and python application

I'm trying to communicate between a c#(5.0) and a python (3.9) application via ZeroMQ. For .Net I'm using NetMQ and for python PyZMQ. I have no trouble letting two applications communicate, as long as they are in the same language c# app to c#…
Geertie
  • 237
  • 4
  • 15
1
vote
0 answers

ZeroMQ architecture for cache-like service

I made a service which accepts requests on a 0MQ router socket in NetMQ, and acts mostly like a cache for other apps, i.e. it can receive a "GET" request and send a response, or it can receive a "PUT" request which doesn't need a response. I have…
Lou
  • 4,244
  • 3
  • 33
  • 72
1
vote
0 answers

NetMQ: Can NetMQPoller take care of async message sending?

Does anyone have an example of using a NetMQPoller in conjunction with sending messages from an asynchronous task? i.e. // 1. Receive a message from one of many clients // 2. Handle client requests on multiple async Task's (may be file bound) // 3.…
millejos
  • 301
  • 3
  • 14
1
vote
0 answers

NetMQ Publish Subscribe with Microsoft Message Queue (MSMQ) Example

I have been trying to use NetMQ using IP Multicasting ("PGM"). I can successfully send and receive messages to/from the publisher and subscriber. However, I can't see that it is actually using MSMQ, which is installed along with its Multicasting…
Joel
  • 103
  • 4
1
vote
0 answers

NetMQ:I am new to .Net and NetMQ. I am working on a Pub:Sub pattern application in .Net

Here is my code for publisher private void CreateMessages() { using (var QuotePublishSocket = new PublisherSocket("tcp://192.168.0.9:9011")) { QuotePublishSocket.Options.SendHighWatermark = 10009; …
Deepak
  • 127
  • 4
  • 11
1
vote
1 answer

how to close the Client Connection and return the Call in NETMQ?

I am just Started Using NETMQ REQ/RES pattern to send and receive the request response from both ends. Client is from IIS and server is from windows service. My question is when i had stopped the service and tried a client request. The client went…
vela
  • 147
  • 10