Ask HN: Library recommendations for a Client / Server project (all Java)
We are building a Java GUI to talk to a Java server. The GUI mostly displays information streaming from the server and occasionally gives the server commands. We control the code on both sides. Full deployment is about 10 clients, each talking to 1-3 servers that are in a different state.
I’m having trouble finding information about modern Java client-server best practices.
I’d like to hear architectural or library recommendations that address:
- Pushing just the data that changed seems nicer than polling the servers every second
- Several of the clients are requesting the same information from the same server; minimizing the load on that server would be nice.
- Serialization of objects. Protocol Buffers vs native Java serialization?
I’m having trouble finding information about modern Java client-server best practices.
I’d like to hear architectural or library recommendations that address:
- Pushing just the data that changed seems nicer than polling the servers every second
- Several of the clients are requesting the same information from the same server; minimizing the load on that server would be nice.
- Serialization of objects. Protocol Buffers vs native Java serialization?
- Recovery when the network hiccups