Summary: Remoting allows you to use remote invocations of POJO services, with the space as the transport layer.
OverviewSpring provides support for various remoting technologies. GigaSpaces uses the same concepts to provide remoting, using the space as the underlying protocol. Some benefits of using the space as the transport layer include:
The OpenSpaces API supports two types of remoting, distinguished by the underlying implementation used to send the remote call. The first is called Executor Based Remoting, and the second is called Event Driven Remoting. Choosing the Correct Remoting MechanismThis section explains when you should choose to use each of the remoting implementations. Note that as far as the calling code is concerned, the choice between the implementations is transparent and requires only configuration changes. In most cases, you should choose Executor Based Remoting. It is based on the GigaSpaces Task Executors feature, which means that it executes the method invocation by submitting a special kind of task which executes on the space side by calling the invoked service. It allows for synchronous and asynchronous invocation, map/reduce style invocations and transparent invocation failover. Event Driven Remoting supports most of the above capabilities, but does not support map/reduce style invocations. In terms of implementation, it's based on the Polling Container feature, which means that it writes an invocation entry to the space which is later consumed by a polling container. Once taking the invocation entry from the space, the polling container's event handler delegates the call to the space-side service. The Event Driven Remoting implementation is slower than the Executor Based Remoting since it requires 4 space operations to complete a single remote call: write invocation entry by client --> take invocation entry by polling container --> write invocation result by polling container --> take invocation result by client. In contrast, Executor Based Remoting only requires a single execute() call. However, there are two main scenarios where you should prefer Event Driven Remoting on top of Executor Based Remoting:
Section Contents
|
![]() |
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence |