When doing tcp-ip for a java server. Is it better to send messages between
the client and server:

1. 10 messages at once as one big message(collect a bunch every X ms)
2. send a message whenever it's ready for sending