J
JannaB
I have a sockets server, listening on a single port for connections of
from 1 to 400 different terminals on the internet.
These terminals are grouped into what I call "channels." That is,
terminal 1,5 and 119 may be all from channel "A."
I only want to process 1 channel at a time. In other words, if I get a
signal from terminal 5, and one from 119, the latter must wait until
the former is processed. (Incidentally, I don;t write out from the
sockets server, rather, it writes some JSON data that is ultimately
transmitted back to the appropriate channel terminals).
Each connection to my sockets server will be making some JDBC inserts
and undates.
I am wondering, structurally, how best to handle this, realising that
archtiectural questions such as this are best handled properly from
the outset. Thank you, Janna B.
from 1 to 400 different terminals on the internet.
These terminals are grouped into what I call "channels." That is,
terminal 1,5 and 119 may be all from channel "A."
I only want to process 1 channel at a time. In other words, if I get a
signal from terminal 5, and one from 119, the latter must wait until
the former is processed. (Incidentally, I don;t write out from the
sockets server, rather, it writes some JSON data that is ultimately
transmitted back to the appropriate channel terminals).
Each connection to my sockets server will be making some JDBC inserts
and undates.
I am wondering, structurally, how best to handle this, realising that
archtiectural questions such as this are best handled properly from
the outset. Thank you, Janna B.