Managed application platforms
What a managed application platform does
A managed application platform runs your application without requiring you to administer every underlying server. You provide code or a packaged application, select a supported runtime, configure access and resource limits, and let the platform handle an agreed portion of hosting. Unlike renting a VM, you usually do not configure the entire operating system yourself. You still own application correctness, dependency updates, authorization, configuration, data protection and the service's cost. The exact boundary depends on the product and plan.
Imagine Byte Books, a bookstore with a small read-only catalog API. Its team needs HTTPS, logs, occasional capacity increases and a private database connection in the future. It has no need for a custom kernel. A managed application platform is a reasonable starting candidate; a VM may be more appropriate if the app requires unsupported native software or OS-level control.
One application contract, three hosting plans
The following Python 3 standard-language example models the application handler. A real HTTP server would translate an incoming request into the path and configuration, then serialize the returned dictionary as JSON. This deliberately does not listen on a socket, use a framework or authenticate to the cloud. Run it locally without an account. The same application contract will be used in every deployment plan.
def respond(path, config): if path == "/health": return 200, {"status": "ok"} if path == "/books": return 200, {"store": config["STORE_NAME"], "release": config["RELEASE"], "books": ["Cloud Basics"]} return 404, {"error": "not found"}
settings = {"STORE_NAME": "Byte Books", "RELEASE": "v1"}print(respond("/books", settings))print(respond("/health", settings))print(respond("/missing", settings))Expected output:
(200, {'store': 'Byte Books', 'release': 'v1', 'books': ['Cloud Basics']})(200, {'status': 'ok'})(404, {'error': 'not found'})The first response returns catalog data and an observable release identifier. The second reports that this toy handler responds; it does not establish database readiness. The last proves unknown paths are not silently accepted. The catalog is fictional and public in the model; a real service must explicitly decide whether access is public or authenticated.
From source code to a running service
A deployable artifact is the packaged input to a release: for example, a source bundle or a container image. A buildpack detects supported application technologies and produces a runnable image using builder rules. It is not magic: the runtime, dependency lock, builder and start command still matter. A prebuilt image gives you a different level of control and responsibility for its base image, patches and provenance.
A typical path is: reviewed source → build and test → identifiable artifact → platform configuration → deploy → health and functional checks → traffic. Record the source commit, artifact digest or version, runtime and configuration identifiers. Do not embed credentials in source, image layers or build logs. A runtime may be retired separately from the hosting service. Test updates before promoting them and keep a supported rollback artifact.
This handler is not itself a deployable HTTP server. The following plans are conceptual: each needs an approved HTTP adapter, pinned dependencies and current platform-specific runtime configuration before deployment.
Compare AWS, Azure and Google Cloud
| Platform | Deployment model | Boundary to investigate |
|---|---|---|
| AWS Elastic Beanstalk (EC2-based environment) | Application version and environment; platform manages parts of infrastructure setup and operation | EC2, load balancer and environment resources remain in your account; choose supported platform and deployment policy |
| Azure App Service | Managed web app using supported runtime or custom container | App Service plan, OS, tier, shared compute and slot availability |
| Google Cloud Run service | Container image; source-based build can create that image | Container contract, port, resource limits, concurrency, scaling and billing mode |
| Google App Engine | Standard sandboxed runtime or flexible VM-based container environment | Runtime support, environment-specific scaling and constraints |
AWS App Runner is closed to new customers according to the official availability notice reviewed for this batch. Existing customers can continue to use it; AWS identifies ECS Express Mode as a migration candidate. Express Mode provisions ECS/Fargate and supporting resources from an image; it is not a universal equivalent of a source-based PaaS. Evaluate the generated resources, permissions, networking and cost. Do not use App Runner as the required new-account lab.
For Byte Books, all three main candidates can be evaluated against the same HTTP response contract. Choose based on operational control, supported runtime, security policy, service dependencies and total cost, not the label PaaS. Exact region, plan, API and runtime support must be verified before an actual launch.
Scale and estimate without provisioning
A cold start is the time to initialize a new runtime instance before it can serve work. Startup imports, initialization and dependency setup can contribute. Some hosting products can scale to zero; others keep capacity allocated. Minimum warm capacity may reduce startup delay but can cost money and does not guarantee every request avoids a cold start. Cloud Run services support minimum instances; the relevant billing mode and configuration matter. App Service capacity is tied to its plan. Do not infer scale-to-zero behavior for all platforms.
Suppose a tested instance serves 40 requests per second at the desired latency. The expected peak is 110 requests per second. The teaching model needs ceil(110 / 40) = 3 ready instances, assuming even distribution and independent capacity. With a configured planning maximum of two, the assumed sustainable capacity is 80 requests/s, leaving 30 requests/s above it. Real platforms may queue, throttle, reject or temporarily exceed configured targets; use measured behavior and check database limits.
For a fictional flat capacity model, two instances for 100 hours at $0.08 per instance-hour cost $16. Add a $4 log estimate and $5 traffic estimate for $25. This is not a quote or a provider billing formula; builds, registry storage, networking, DNS, databases and idle capacity may be separate. Verify actual units and tiers before choosing.
Networking, limits and a safe deployment checklist
A custom domain points users to the platform endpoint and needs appropriate DNS validation and TLS configuration. A private database requires an allowed outbound network path, name resolution and database authorization. Azure App Service virtual network integration is principally an outbound connectivity feature; it is not itself a private inbound endpoint. Check inbound controls independently. In all plans use a workload identity with narrowly scoped permissions, and restrict public access to only intended routes.
Review port binding, startup and request timeouts, memory, writable filesystem behavior, concurrency, quotas and runtime support. Keep durable data outside disposable app instances. Collect request logs, release IDs, error counts and latency without logging tokens or personal data. Treat an app returning 200 on /health as one signal, not proof every dependency is working.
Practice: choose a platform for the bookstore and explain which tasks remain yours. Identify required artifact, runtime, network controls, log metrics, limits and cleanup inventory. Continue with Application release and configuration to stage changes safely.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Managed application platforms — knowledge check
Choose the best answer for each offline scenario.
A team needs a normal HTTP API and no custom kernel. Why consider managed hosting?
What does a buildpack normally produce in a container build workflow?
Peak demand is 110 requests/s; each ready instance handles 40. How many ready instances are needed in the stated model?
Which AWS offering is not an appropriate required lab for a new customer based on the reviewed availability notice?
An application uses outbound VNet integration to reach a private database. What remains to check?