-
Notifications
You must be signed in to change notification settings - Fork 0
Message Handling
Ben edited this page Jan 29, 2024
·
1 revision
While you can simply handle incoming messages within the processReceivedData()
function, doing so can impact the performance of your Server or Client. This is caused by the reading being single threaded (which is done to support more simultaneous connections.
We recommend to limit processing within processReceivedData()
to be as little as possible. Instead we recommend to append incoming Messages to a BlockingQueue. An other Thread should then pull the messages from the queue and handle them.