The service gateway allows apps that run in a different location than the Services Foundation where the GemFire for VMs service instance runs to communicate with the service instance. At its core, the service gateway is a TCP router.
There are three locations where an app may run. The locations are defined in The App's Location.
Apps that run within an App Foundation and apps that run completely outside of any foundation must have a service gateway enabled and running to communicate with the GemFire for VMs service instance. To enable and run the service instance: