Si vous créez une fonction, consultez le guide de démarrage rapide de la console sur Cloud Run. Le contenu de cette page ne s'applique qu'aux anciennes fonctions existantes créées avec l'API Cloud Functions v1.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/03 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/03 (UTC)."],[[["\u003cp\u003eThe Functions Framework allows the creation of lightweight functions that can operate across various environments, such as Cloud Run, local machines, and Knative.\u003c/p\u003e\n"],["\u003cp\u003eIt offers a local development server for rapid testing and enables function invocation in response to requests.\u003c/p\u003e\n"],["\u003cp\u003eThe framework automatically handles the unmarshalling of events that adhere to the CloudEvents specification.\u003c/p\u003e\n"],["\u003cp\u003eFunctions created with this framework are designed to be portable across different serverless platforms.\u003c/p\u003e\n"],["\u003cp\u003eDocumentation for using the Functions Framework with different runtimes like Node.js, Go, Java, PHP, Python, Ruby, and .NET is available on GitHub.\u003c/p\u003e\n"]]],[],null,["# Functions Framework\n===================\n\nThe Functions Framework lets you write lightweight functions that run in many\ndifferent environments, including:\n\n- [Cloud Run functions](https://cloud.google.com/functions/)\n- Your local development machine\n- [Cloud Run](https://cloud.google.com/run/)\n- [Knative](https://github.com/knative/)-based environments\n\nSee [Learn More](#learn_more) for details about the runtimes supported by the\nFunctions Framework.\n\nFunctions Framework Introduction Video\n--------------------------------------\n\nIn this video, Grant and Vinny introduce the Functions Framework:\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nFeatures\n--------\n\n- Spin up a local development server for quick testing\n- Invoke a function in response to a request\n- Automatically unmarshal events conforming to the [CloudEvents](https://cloudevents.io/) spec\n- Portable between serverless platforms\n\nLearn More\n----------\n\nYou can find documentation on how to use the Functions Framework for a given\nruntime on GitHub:\n\n- [Node.js](https://github.com/GoogleCloudPlatform/functions-framework-nodejs)\n- [Go](https://github.com/GoogleCloudPlatform/functions-framework-go)\n- [Java](https://github.com/GoogleCloudPlatform/functions-framework-java)\n- [PHP](https://github.com/GoogleCloudPlatform/functions-framework-php)\n- [Python](https://github.com/GoogleCloudPlatform/functions-framework-python)\n- [Ruby](https://github.com/GoogleCloudPlatform/functions-framework-ruby)\n- [.NET](https://github.com/GoogleCloudPlatform/functions-framework-dotnet)\n\n*** ** * ** ***\n\n- [Functions Framework Contract](https://github.com/GoogleCloudPlatform/functions-framework)"]]