In attempting to build an application within the OpenResty environment, I am still a bit fuzzy on the relationship between ports, connections and application processes. A websocket connection remains open for (possibly) extended period. Does this mean that a port is occupied or a process thread remains open for the entire time, or is there an event mechanism that will fire up when a new message is received? I have seen benchmark data indicating over 10,000 concurrent websocket connections. I have the application code to receive/send messages through the connection and to maintain my own session data in the database, but I’m not sure how to properly structure the overall process. I’ve read most of what I can find about OpenResty and nginx, but I can’t seem to find a clear explanation. Can someone help provide some clarity or point me to where I need to study.
Thanks,
Mike Lowry
Email Mi...@TechCitySouth.com
Phone 678-462-2338