score:2

Accepted answer

i would start with the simplest high level messaging library and since you have chosen scala i would start with akka which was designed with scala in mind.

how many machines can communicate using message

you can communicate with every machine you can connect to e.g. the entire internet.

if needed, can i use protobuf for doing that?

i suspect you don't need to, but yes.

how can i send data via network?

i would use a messaging library

should i use java.io or java.nio?

the messaging library is likely to use these, but i wouldn't assume you need to use them directly.

i am going to implement sorting using many machines (distributed sorting).

there are libraries designed for scala which do this already. i would use one of those e.g. spark or hadoop.


More Query from same tag