App Engine 가변형 환경이나 App Engine 표준 환경을 사용하여 App Engine에서 애플리케이션을 실행할 수 있습니다. 또한 애플리케이션이 두 환경을 동시에 사용하도록 선택할 수도 있으며 이를 통해 서비스는 각 환경의 개별 이점을 활용할 수 있게 됩니다.
App Engine 환경
App Engine은 마이크로서비스 아키텍처를 사용하여 설계된 애플리케이션에 매우 적합하며, 두 환경 모두 사용하는 경우 특히 그렇습니다. 다음 섹션을 사용하여 어느 환경이 애플리케이션의 요구사항을 가장 잘 충족시키는지 파악하고 이해해 보세요.
표준 환경을 선택해야 하는 경우
아래에 나열된 지원되는 언어의 런타임 환경을 사용하여 샌드박스에서 실행되는 애플리케이션 인스턴스
빠른 확장을 처리해야 하는 애플리케이션
표준 환경은 다음 특징을 가진 애플리케이션에 최적화되어 있습니다.
무료 또는 저렴한 비용으로 실행되며 필요할 때 필요한 만큼만 지불할 수 있는 경우 예를 들어 트래픽이 없는 경우, 애플리케이션을 0개 인스턴스까지 조정할 수 있습니다.
트래픽이 갑자기 극단적으로 상승함에 따라 즉각적인 확장이 필요한 경우
가변형 환경을 선택해야 하는 경우
Compute Engine 가상 머신(VM)의 Docker 컨테이너 내에서 실행되는 애플리케이션 인스턴스
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003eApp Engine offers both a standard and a flexible environment for running applications, allowing you to choose or combine environments to suit your needs.\u003c/p\u003e\n"],["\u003cp\u003eThe standard environment is ideal for applications requiring rapid scaling and cost-effectiveness, especially when dealing with sudden traffic spikes and the ability to scale down to zero instances.\u003c/p\u003e\n"],["\u003cp\u003eThe flexible environment, which uses Docker containers on Compute Engine VMs, is best for applications needing custom runtimes, native code, or access to the Compute Engine network, and is optimal for consistent or fluctuating traffic.\u003c/p\u003e\n"],["\u003cp\u003eThe standard environment features faster deployment and instance startup times, while the flexible environment allows for more customization and supports features like SSH debugging and background processes.\u003c/p\u003e\n"],["\u003cp\u003eYou can migrate services from the standard to the flexible environment, and there are key differences to consider between using the flexible environment versus using Compute Engine directly.\u003c/p\u003e\n"]]],[],null,["# Choose an App Engine environment\n\nYou can run your applications in App Engine by using the\n[App Engine flexible environment](/appengine/docs/flexible) or the\n[App Engine standard environment](/appengine/docs/standard). You can also choose to\nsimultaneously use both environments for your application and allow your\nservices to take advantage of each environment's individual benefits.\n\nApp Engine environments\n-----------------------\n\nApp Engine is well suited to applications that are designed using a\n[microservice](https://wikipedia.org/wiki/Microservices)\narchitecture, especially if you decide to utilize both environments. Use the\nfollowing sections to learn and understand which environment best meets your\napplication's needs. \n\n### When to choose the standard environment\n\n\nApplication instances run in a\n[sandbox](https://en.wikipedia.org/wiki/Sandbox_(computer_security)),\nusing the runtime environment of a supported language listed below.\n\n\nApplications that need to deal with rapid scaling.\n\n\nThe standard environment is optimal for applications with the following\ncharacteristics:\n\n- Intended to **run for free or at very low cost**, where you pay only for what you need and when you need it. For example, your application can scale to 0 instances when there is no traffic.\n- Experiences **sudden and extreme spikes of traffic** which require immediate scaling. \n\n### When to choose the flexible environment\n\n\nApplication instances run within Docker containers on Compute Engine\nvirtual machines (VM).\n\n\nApplications that receive consistent traffic, experience regular traffic\nfluctuations, or meet the parameters for scaling up and down gradually.\n\n\nThe flexible environment is optimal for applications with the following\ncharacteristics:\n\n- Runs in a Docker container that includes a custom runtime or source code written in **other programming languages**.\n- Uses or depends on frameworks that include **native code**.\n- Accesses the resources or services of your Google Cloud project that reside in the **Compute Engine network**.\n\nCompare high-level features\n---------------------------\n\nThe following table summarizes the differences between the two environments:\n\nAlso see the in-depth\n[comparison of the environments](/appengine/docs/flexible/flexible-for-standard-users).\n\nCompare App Engine and Cloud Run\n--------------------------------\n\nTo compare features and learn how to migrate to Cloud Run,\nsee [Compare App Engine and Cloud Run](/appengine/migration-center/run/compare-gae-with-run).\n\nCompare the flexible environment to Compute Engine\n--------------------------------------------------\n\nThe App Engine flexible environment has the following differences to\nCompute Engine:\n\n- The flexible environment VM instances are restarted on a weekly basis. During\n restarts, Google's management services apply any necessary operating system\n and security updates.\n\n- You always have root access to Compute Engine VM instances. By default, SSH\n access to the VM instances in the flexible environment is disabled. If you\n choose, you can enable root access to your app's VM instances.\n\n- Code deployments can take longer as container images are built by using the\n Cloud Build service.\n\n- The geographical region of a flexible environment VM instance\n is determined by the location that you specify for the\n [App Engine application](/appengine/docs/flexible/locations) of your\n Google Cloud project. Google's management services\n ensures that the VM instances are co-located for optimal performance.\n\nMigrate from the standard environment to the flexible environment\n-----------------------------------------------------------------\n\nIf you have an application in the standard environment, you might want to move\nsome services to the flexible environment. For guidance, see the recommendations\nfor in the\n[comparison of the environments](/appengine/docs/flexible/flexible-for-standard-users).\n\nTo migrate specific services for Python, Java, Go, and PHP, see [Migrate services from the standard environment to the flexible environment](/appengine/docs/flexible/migrating).\n\nTry it for yourself\n-------------------\n\n\nIf you're new to Google Cloud, create an account to evaluate how\nRuby standard environment performs in real-world\nscenarios. New customers also get $300 in free credits to run, test, and\ndeploy workloads.\n[Try Ruby standard environment free](https://console.cloud.google.com/freetrial)"]]