Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
App Engine vous permet de choisir entre deux environnements pour les applications Java : l'environnement standard et l'environnement flexible. Les deux environnements comportent le même workflow de développeur centré sur le code. Capables de s'adapter rapidement et efficacement à l'augmentation de la demande, ils vous permettent d'exploiter la technologie de service éprouvée de Google pour créer rapidement vos applications Web, mobiles et IoT avec des coûts d'exploitation minimaux. Malgré leurs nombreuses caractéristiques communes, les environnements disponibles présentent toutefois quelques différences importantes.
Choisir l'environnement approprié
Environnement standard
Il est optimisé pour faire évoluer l'infrastructure presque instantanément afin de gérer les pics de trafic importants.
Il s'agit de la solution la plus rentable pour les applications qui ne diffusent pas le trafic pendant de longues périodes.
L'environnement d'exécution Java basé sur OpenJDK est compatible avec la bibliothèque Java publique standard.
Il n'impose pas de gestionnaire de sécurité. Votre code ne sera pas limité par des problèmes d'autorisations Java.
Environnements d'exécution complets de langage Open Source.
Il utilise le framework, la bibliothèque ou le binaire de votre choix.
Le code est transférable vers un environnement compatible avec les conteneurs Docker.
Il s'agit de la solution la plus rentable pour les applications qui diffusent le trafic en continu.
Pas de version gratuite. L'application garde toujours un nombre minimal d'instances en cours d'exécution.
Il s'agit de la solution la plus rentable pour les applications qui diffusent le trafic en continu.
Vous pouvez exécuter une application App Engine dans deux environnements : l'environnement standard et l'environnement flexible. Consultez un récapitulatif des différences entre les deux environnements.
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.
[[["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"]],[],[[["\u003cp\u003eApp Engine provides two environments for Java applications: standard and flexible, both offering rapid scaling and efficient handling of traffic.\u003c/p\u003e\n"],["\u003cp\u003eThe standard environment is optimized for handling traffic spikes and is most cost-effective for applications with periods of inactivity, featuring a free tier and an OpenJDK-based Java runtime.\u003c/p\u003e\n"],["\u003cp\u003eThe flexible environment allows for the use of any framework, library, or binary, with code portability through Docker containers, and is best for applications with continuous traffic, though it lacks a free tier.\u003c/p\u003e\n"],["\u003cp\u003eWhile both environments are Ubuntu OS-based, they differ in their cost structures, runtime restrictions, and suitability for different traffic patterns.\u003c/p\u003e\n"],["\u003cp\u003eThe Java 8 runtime in the standard environment is no longer supported, and more details are available in the official documentation.\u003c/p\u003e\n"]]],[],null,["# Java on Google App Engine\n\nApp Engine offers you a choice between two environments for Java applications: standard environment and flexible environment. Both environments have the same code-centric developer workflow, scale quickly and efficiently to handle increasing demand, and enable you to use Google's proven serving technology to build your web, mobile, and IoT applications quickly and with minimal operational overhead. While the available environments have a lot in common, they differ in a few important ways. \n\nChoose your preferred environment\n---------------------------------\n\n### Standard environment\n\n- Optimized to scale nearly instantaneously to handle huge traffic spikes.\n\n- Most cost-effective for applications that have significant periods where they\n are not serving traffic.\n\n- OpenJDK based Java runtime supports the standard public Java library.\n\n- Doesn't impose a security manager--your code won't be restricted by Java\n permissions issues.\n\n- [Free tier](/appengine/pricing).\n\n- Ubuntu OS\n\n- The Java 8 runtime is [no longer supported](/appengine/docs/standard/lifecycle/support-schedule#java).\n\n[View Docs](/appengine/docs/standard/java-gen2/runtime) \n\n### Flexible environment\n\n- Full [open source](http://github.com/GoogleCloudPlatform/) language runtimes.\n\n- Use any framework, library, or binary of your choice.\n\n- Code is portable to anywhere that supports Docker containers.\n\n- Most cost-effective for applications that serve traffic continuously.\n\n- No free tier. Application always has a minimum number of running instances.\n Most cost-effective for applications that serve traffic continuously.\n\n- Ubuntu OS\n\n[View docs](/appengine/docs/flexible/java/dev-jetty9) \n\nChoosing an environment\n-----------------------\n\nYou can run an App Engine application in two environments, the standard environment and the flexible environment. See a summary of differences between the two environments.\n[Learn more](/appengine/docs/the-appengine-environments)"]]