Hi guys
I use Network and RandomAccessFile libraries for communication between clients by tcp protocol , I runned a vps server and connected my clients to this server .Now my question is :
I know I can keep those array of connections in a map but if amount of connections was for example 20K or more what happen ?
Can I save connections ( not just id of users ) in db ? ( I want to save AsyncStreams of users in db )
I use Network and RandomAccessFile libraries for communication between clients by tcp protocol , I runned a vps server and connected my clients to this server .Now my question is :
I know I can keep those array of connections in a map but if amount of connections was for example 20K or more what happen ?
Can I save connections ( not just id of users ) in db ? ( I want to save AsyncStreams of users in db )
Last edited: