One inbound thread has to distribute short HL7 ORU messages from 30 (or 60 or 90) patient monitors to different receiving ports of the same host (1:1 mapping between patient monitor and receiving port). Each monitor sends his messages with a period of 1 minute. (The ward and bed information is part of the HL7 message.)
Question:
What option should be prefered
(1) creating 30 (or 60 or 90) outbound threads each thread with the configured port number for that specific patient monitor, or
(2) creating a single outbound thread and performing the port mapping in a TPS using drivercontrol?
PRO for (1)
There is no need to re-establish the connection and close the connection after message was sent.
Contra for (1)
The number of (outbound) threads in the process is very high!
Is GUI able to handle/view that hughe number?
Pro for (2)
Simple to configure, part/bed mapping can be done in a lookout table; table is simple to extend
Contra for (2)
There could be a time issue, if re-establishing of connections to each port has to be performed (connect to port, send message, disconnect port – 30, or 60, or 90 times per minute).
Is there another option available?
Thanks in advance for any comment.