We have this messaging application that clients subscribe to. Right now it's just a asp page that the browser refreshes ever 5 seconds or so and it pulls the updates from a SQL Server 7 database. We tried moving the client part of that to a Java applet but that was a no go.
We are going to move it to a client/server application architecture where the client applications (Java Applications) logon to the server and the server pushes the data to the clients.
The first thought was to just use a Multicast Socket. But not all networks support that. The second thought was that we could just open a socket connection to every client out there(a suggestion by the boss that I quickly shot down. Correct me if I'm wrong here but I'm looking to make one server support at least 9000 clients. That number can come down but a server has to at least support 1500). So reading Professional Linux programming Chapter 20 and 21 they started an application that uses corba. I have corba books I think I can pick it up easily the idl looks like Microsoft IDL which I know (but have never had to use).
So here's the architecture:
The server is going to be running Red Hat Linux v7.3
There is a PostgreSQL server running on that same machine.
The client application will be written in Java(application).
The clients are all over the world on different types of connections(if behind a firewall and CORBA goes through a certain port it will be the clients responsibility to get that port opened for now)
Since I've never made a client/server app like this before here are my questions:
The client apps are going to be in Java: How does the Java application know where the server is. I'm assuming if I compile the IDL on the server it generate proxy/stubs and headers that I include in the application. Which is how the client will know where the server is. If I'm wrong please tell.
I've seen between 800 - 900 clients on at any given time. And this number is expect to increase. I want to support at least 1500 preferablly 9000 (that could be asking alot but we have another service that we charge for that has over 7000 users and we are thinking about giving them trial memberships to this). So can something like this support that number of clients and how do I throw in another server and have the clients reconize it. Kind of like Win Amp or the old Morepheus where it tries to connect to different servers.
I picked java because of the different number of platforms that we want the client application to run on. Is that the best language to use. And can I write the server in C++ (SPEED) and have the client written in Java.