Im Cache gespeicherte Bibliothek
bookmark_borderbookmark
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Cloud Functions-HTTP-Funktion, die eine im Cache gespeicherte Instanz einer Clientbibliothek verwendet, um die Anzahl der Verbindungen zu reduzieren, die pro Funktionsaufruf benötigt werden.
Weitere Informationen
Eine ausführliche Dokumentation, die dieses Codebeispiel enthält, finden Sie hier:
Codebeispiel
Nächste Schritte
Informationen zum Suchen und Filtern von Codebeispielen für andere Google Cloud -Produkte finden Sie im Google Cloud Beispielbrowser.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
[[["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"]],[],[[["This content demonstrates an HTTP Cloud Function that utilizes a cached client library instance to minimize connection requirements per function call."],["The provided Node.js and Python code samples show how to set up and use a cached client to publish messages to a Cloud Pub/Sub topic."],["Proper authentication for Cloud Run functions requires setting up Application Default Credentials, as detailed in the linked documentation."],["The Python code provided also makes use of the environment variable `GCP_PROJECT`, which is set automatically in older runtimes, but must be specified in newer runtimes."]]],[]]