Using the Modules API

The Modules API provides functions that return information about the currentoperating environment (module, version, and instance).

The Modules API also has functions that retrieve the address of a module, aversion, or an instance. This allows an application to send requests from oneinstance to another, in both the development and production environments.

The instance ID of an automatic scaled module will be returned as a uniquebase64 encoded value, e.g.e4b565394caa.

You can communicate between modules in the same app by fetching the hostname ofthe target module:

You can also use theURL Fetch service.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.