4 PCs on a local LAN network
1st PC - Master PC - used for scheduling - and connected to Forex broker using propriety API
Its tasks on an hourly basis are to:-
(a) receive currency price updates
(b) send a message containing these details to each of the other 3 PCs and get them to commence running their particular java program
(c) receive a message from each of the other 3 PCs containing the results of the program they have just run
(d) possibly place an order on the forex market using the API mentioned above
2nd, 3rd and 4th PC - each has a java program to run on an hourly basis (once they have received price updates from computer 1
Question: should I be looking at a messaging broker such as Apache Active MQ of is there a simpler way of achieving the simple messaging required ?
You're looking at 4 separate JVM instances so what goes off in my mind instantly is Socket communication.
I am a develop it myself kind of guy, and that is what my employers look for too, so I'd program the client and server, and also the logic for the needed tasks. I generalize it so I have an easier time reusing the product.
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
posted 1 week ago
As I know nothing about socket communication , a question please
Is computer No. 1 the server and are computers 2, 3 & 4 clients ?
Bob Matthews wrote:Is computer No. 1 the server and are computers 2, 3 & 4 clients ?
You could say that, yes. It looks like once an hour computers 2, 3, and 4 will connect to computer 1 and ask for the price updates. That's a pretty standard client-server setup, and you'll probably notice that you could add in computers 5, 6, 7, and so on to do the same task.
Now, when you're talking about socket communication it isn't necessary to designate computers as "server" and "client" -- you might have what's called peer-to-peer communication. But in your case it looks like client-server and considering as such will probably help you to get up to speed learning about it.
posted 1 week ago
Thank you to Les and Paul for your helpful comments
Sending variable values between machines using socket communication seems reasonable to understand
but how does the server get each client to commence running its own java program ?