I'm developing a system that consists of a Php web server and a C# program. They both run on the same host. The web server receives data from clients (mobiles) then updates to a database and sometimes it should notify the C# program. To do this, I open a socket client on Php side then connect to a socket server on C# program side, like this:
(Php web server side)
1) process HTTP Request from clients
2) update data to database
3) if need to notify C# program (depending on received data)
3.1) open a socket client (localhost, 8888)
3.2) send data
3.3) close socket
Until now, our system works quite well with small number of clients (for testing) but I'm not sure in case of large amount of clients.
Anyone can give me some comments to increase the performance!