Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
App Engine menawarkan pilihan antara dua lingkungan untuk aplikasi Java: lingkungan standar dan lingkungan fleksibel. Kedua lingkungan memiliki alur kerja developer yang berfokus pada kode yang sama, dapat diskalakan dengan cepat dan efisien untuk menangani permintaan yang meningkat, serta memungkinkan Anda menggunakan teknologi penayangan Google yang telah terbukti untuk membangun aplikasi web, seluler, dan IoT dengan cepat dan dengan overhead operasional yang minimal. Meskipun lingkungan yang tersedia memiliki banyak kesamaan,
keduanya berbeda dalam beberapa hal penting.
Pilih lingkungan yang Anda inginkan
Lingkungan standar
Dioptimalkan untuk melakukan penskalaan hampir secara instan untuk menangani lonjakan traffic yang besar.
Paling hemat biaya untuk aplikasi yang memiliki periode signifikan saat aplikasi tidak melayani traffic.
Runtime Java berbasis OpenJDK mendukung library Java publik standar.
Tidak memaksakan pengelola keamanan--kode Anda tidak akan dibatasi oleh masalah izin
Java.
Gunakan framework, library, atau biner pilihan Anda.
Kode bisa ditransfer ke mana saja yang mendukung container Docker.
Paling hemat biaya untuk aplikasi yang melayani traffic secara terus-menerus.
Tidak ada paket gratis. Aplikasi selalu memiliki jumlah minimum instance yang berjalan.
Paling hemat biaya untuk aplikasi yang melayani traffic secara terus-menerus.
Anda dapat menjalankan aplikasi App Engine di dua lingkungan, yaitu lingkungan standar dan lingkungan fleksibel. Lihat ringkasan perbedaan antara kedua lingkungan tersebut.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","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)"]]