I’ve been asked to look into adding multicast support to a Java trading system but, to be honest, I don’t have the slightest clue what this could be for. Would this mainly be to allow the trading system to broadcast trade messages to different types of clients, say, a mobile phone as well as a server? Why might a trading system need multicast support?
Share
Multicast is a protocol to send (UDP-)datagrams to a defined set of recepients. A router maintains this list, so you need at least a router with this capability. And changing the set set of multicast addresses requires configuring the router. (-> clients can’t register themselves to receive multicast messages..)
As mulitcast is for sending datagrams only we don’t have a ‘reliable’ communication. No guarantee that a package reaches it’s destination, no guarantee that datagrams arrive in the correct order.
Multicast is a solution if you need to notify a fixed set of systems with short messages, the server doesn’t have to know the receivers (the list is on the router only) and the server doesn’t care if the messages are received.