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
1
vote
0 answers

ZeroMQ (NetMQ) Dealer / Router Socket scalability issue

Environment NetMQ Version: 4.0.0.239-pre Operating System: Linux / Windows .NET Version: NET Core 2.1 Expected behaviour Hi I have a multi-client / single server scenario which I am modelling around Dealer / Router sockets. I am trying to…
mariovalens
  • 365
  • 1
  • 13
1
vote
1 answer

Zmq/NetMQ Push failing occasionally and returns false at TrySendFrame

I am using ZMQ for our project and wrote a factory that creates ZMQ Clients based on type of the message required. However, an issue I find is that, sometimes TrySendFrame returns false and most of the times it returns true. Any way this can be…
undefined
  • 142
  • 10
1
vote
1 answer

NetMQ.FiniteStateMachineException: Rep.XRecv - cannot receive another request

I constantly get NetMQ.FiniteStateMachineException sure, my code works... the exception does not occur right away... but over the course of a few hours, probably it will happen. Does anyone know what is going on here to cause this exception? I'm not…
ycomp
  • 8,316
  • 19
  • 57
  • 95
1
vote
0 answers

Choosing the right pattern to expose different kinds of services (RR, PP, PS) from a proxy to N clients

I am working with a robot from the manufacturer Kuka and my goal is : to expose some of the functionalities of the robot system to remote clients through a clients-proxy architecture. Hereafter I give a description of the system I want to build. And…
1
vote
1 answer

ZeroMQ thread/task advice

I have a a task that is running this method for my Sub/Pub pattern. The problem i see is that this loop will hang until data is received. If i want to change the Topic or the IP, i can't get this task to end. If i use a thread i can kill it - but…
Bjorn
  • 181
  • 2
  • 11
1
vote
0 answers

Performance limits for NetMQ

I am sending messages from various places on my 10G network. I am using a Pub/Sub pattern. The messages I send are serialized using zeroFormatter and have length of approx 270 bytes. Once I start to send over 150K message per sec, I notice the…
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
1
vote
1 answer

How to setup PUB/SUB NetMQ in Xamarin Forms

I have a Windows Services running as a Publisher and I am trying to setup Xamarin Forms as the Subscriber. The code below works just fine in a Console App or LinqPad, but when copied and pasted into Xamarin Forms, the SubscriberSocket just does not…
Fabio S.
  • 460
  • 7
  • 22
1
vote
2 answers

Can ZeroMQ (NetMQ) TCP transport be used between publisher and subscriber in the same process?

I think that the question says it all really. For a bit of background, I have a subscriber that I am trying to write some tests for. In order to do that, I spin up a publisher from within the test specifying tcp://localhost:[port] as the address. …
jamesmus
  • 319
  • 1
  • 9
1
vote
1 answer

How to identify the physical address of incoming connections in NetMQ?

In the router-dealer example for NetMQ, we see that clients can set their own identity. This can be useful for logging purposes. However, what if I only control code for the server (router) and not the code for the clients (dealers)? What if some…
Chechy Levas
  • 2,206
  • 1
  • 13
  • 28
1
vote
2 answers

Need a ZeroMQ implementation of an ICommunicationListener on Azure Service Fabric

I am looking for a ZeroMQ implementation of an ICommunicationListener that I can use with a service fabric to run a ZeroMQ endpoint on Azure. I looked for hours and I can't find any. Does anyone know a solution for this? I currently use the "Service…
Kees
  • 1,408
  • 1
  • 15
  • 27
1
vote
1 answer

Splitting work between multiple pollers?

My current setup for work on server side is like this -- I have a manager (with poller) which waits for incoming requests for work to do. Once something is received it creates worker (with separate poller, and separate ports/sockets) for the job,…
astrowalker
  • 3,123
  • 3
  • 21
  • 40
1
vote
0 answers

Is SendReady event cached?

According to doc SendReady is triggered when at least one frame can be sent without blocking. Ok, when I send a frame within the callback of this event it works as documented, but when I add some delay using timer I have such effect that looks like…
astrowalker
  • 3,123
  • 3
  • 21
  • 40
1
vote
1 answer

How to dispose a Poller with a blocked socket?

I have single socket, which is blocked on sending the frame and I would like to dispose poller ( and everything related to it ). However, I cannot do it -- calling dispose on socket throws an exception, and calling dispose on poller completely…
astrowalker
  • 3,123
  • 3
  • 21
  • 40
1
vote
1 answer

How to send ACK message to client from server using NetMQ

I am using NetMQ to send messages from many clients to a server which receives the messages and processes them. If I use the pub/sub pattern, I can (ab)use the subscriber socket and use it for the server and clients will be the publishers (the…
Mohsen Kamrani
  • 7,177
  • 5
  • 42
  • 66
1
vote
1 answer

Exceptions when using NetMQ from powershell

I'm using the NetMQ library from Powershell but keep getting the following exception. Environment NetMQ Version: NetMQ.4.0.0.1 Operating System: Windows Server 2012 .NET Version: 4 I'm using this from PowerShell: $pubSocket = New-Object…
user1513388
  • 7,165
  • 14
  • 69
  • 111