Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Die Modules API bietet Funktionen, die Informationen zur aktuellen Betriebsumgebung (Modul, Version und Instanz) zurückgeben.
Außerdem verfügt die Modules API über Funktionen zum Abrufen der Adresse eines Moduls, einer Version oder einer Instanz. Auf diese Weise kann eine Anwendung sowohl in Entwicklungs- als auch in Produktionsumgebungen Anfragen von einer Instanz an eine andere senden.
Die Instanz-ID eines automatisch skalierten Moduls wird als eindeutiger base64-codierter Wert zurückgegeben, z. B. e4b565394caa.
Sie können zwischen Modulen in derselben Anwendung kommunizieren. Rufen Sie dazu den Hostnamen des Zielmoduls ab:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\u003cp\u003eThe Modules API offers functions to get information about the current operating environment, including module, version, and instance.\u003c/p\u003e\n"],["\u003cp\u003eThis API can be used to get the address of a module, version, or instance, allowing requests to be sent between instances.\u003c/p\u003e\n"],["\u003cp\u003eThe Modules API is designed for first-generation runtimes and provides information for upgrading to the corresponding second-generation runtimes.\u003c/p\u003e\n"],["\u003cp\u003eFor automatic scaled modules, the instance ID is returned as a unique base64 encoded value.\u003c/p\u003e\n"],["\u003cp\u003eCommunication between modules can be achieved by fetching the target module's hostname or by using the URL Fetch service.\u003c/p\u003e\n"]]],[],null,["# Using the Modules API\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\nGo Java PHP Python\n| This API is supported for first-generation runtimes and can be used when [upgrading to corresponding second-generation runtimes](/appengine/docs/standard/\n|\n| /services/access). If you are updating to the App Engine runtime, refer to the [Upgrade to second-generation runtimes]() page to learn about your migration options for legacy bundled services.\n\nThe Modules API provides functions that return information about the current\noperating environment (module, version, and instance).\n\nThe Modules API also has functions that retrieve the address of a module, a\nversion, or an instance. This allows an application to send requests from one\ninstance to another, in both the development and production environments.\n\nThe instance ID of an automatic scaled module will be returned as a unique\nbase64 encoded value, e.g. `e4b565394caa`.\n\nYou can communicate between modules in the same app by fetching the hostname of\nthe target module:\n\nYou can also use the [URL Fetch](/appengine/docs/standard/services/urlfetch/outbound-requests) service."]]