How do remote Spark Cores communicate with each other?

What’s the easiest way for my different Spark cores to communicate with each other remotely?

It looks for me that I need to build up my own server for Spark Cores to communicate, is there any easier way?


This should pretty much answer your question:
And this is a nice starting project for using the above:


As @Moors7 said above you have each core send out messages using Spark.publish() and listen for said messages using Spark.subscribe()