Description
Discovery of the nodes and communication between them are one of the most important tasks that happen underneath the GridGain infrastructure. Discovery allows to have a consistent and guaranteed topology, i.e. set of known nodes in the grid with a consistent view on each other, and communication provides the means to exchange data between discovered grid nodes.
As almost all kernel level functionality in GridGain both discovery and communication functionality designed as SPI (Service Provide Interface) modules. Each SPI has one or more interfaces that are used by the GridGain internally - and one or more implementations that can be provided by the end user or already pre-built and shipped with GridGain.
Most of the time discovery and communication happens inside of the GridGain and developer doesn't have to directly interact with this functionality. However, both discovery and communication functionality is available via Grid interface in case direct API access is required.
Discovery SPI
Grid discovery SPI allows to discover remote nodes in grid:
Communication SPI
Communication SPI is responsible for data exchange between nodes. Communication SPI is one of the most important SPI in GridGain. It is used heavily throughout the system and provides means for all data exchanges between nodes, such as internal implementation details and user driven messages.
