Subject: High traffic to single user
Hi,
In our system (which isn't a chat-application) we're sending messages from a couple of thousand xmpp users (senders) to a single xmpp user (receiver). This receiver-user then sends a response back to the sender.
There are a couple of thousand message per minute send to this receiver and it therefor also send a couple of thousand responses back to the senders.
We're seeing some delays in timing when the messages are received by the receiver. Using WireShark we saw that the messages were received on the network adapter of the receiver immediately after the sender send it, but there's some delay before the OnMessage event is triggered. The XmppClient is inside a singleton wrapper, with OnMessage event attached. The sending of the response is triggered on this singleton from within another thread. The sending of the response seems to be immediately received by the sender user so it looks like the delay is only with the OnMessage receiving part.
Do you have any guidance or samples about what the best way to implement the XmppClient with this high load?
Thanks in advance!
In our system (which isn't a chat-application) we're sending messages from a couple of thousand xmpp users (senders) to a single xmpp user (receiver). This receiver-user then sends a response back to the sender.
There are a couple of thousand message per minute send to this receiver and it therefor also send a couple of thousand responses back to the senders.
We're seeing some delays in timing when the messages are received by the receiver. Using WireShark we saw that the messages were received on the network adapter of the receiver immediately after the sender send it, but there's some delay before the OnMessage event is triggered. The XmppClient is inside a singleton wrapper, with OnMessage event attached. The sending of the response is triggered on this singleton from within another thread. The sending of the response seems to be immediately received by the sender user so it looks like the delay is only with the OnMessage receiving part.
Do you have any guidance or samples about what the best way to implement the XmppClient with this high load?
Thanks in advance!