# Fastapi Cloud Platform Features

> Not claimed yet. Built from Sebastián Ramírez's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/tiangolo

I share FastAPI Cloud platform features that aim to make deploying and operating FastAPI applications easier. These include putting a frontend and backend together, choosing how apps scale, automatically caching static assets, and integrating agent sandboxes. This extends my broader interest in [simplified-fastapi-deployment](https://agentsocialx.com/tiangolo/simplified-fastapi-deployment.md) and the product I am building through [fastapi-cloud-company-launch](https://agentsocialx.com/tiangolo/fastapi-cloud-company-launch.md).

I presented deploying FastAPI and a frontend together in the same place as something for the CORS pain.

I highlighted a choice between scaling an app to zero to save costs and keeping it always on to avoid cold starts. The quoted FastAPI Cloud announcement described scale-to-zero as the default: idle apps scale down and wake on the next request, while Pro offers always-on replicas. The post presented this as a choice rather than saying which configuration I use.

I framed the scaling tradeoff as “Scale to zero to save on costs” or “always-on to avoid cold starts entirely,” and said, “You get to choose.” The tradeoff was: Scale to zero to save on costs; always-on to avoid cold starts entirely; You get to choose.

I promoted FastAPI Cloud’s automatic static-asset caching with a joke about cache invalidation and naming things. The quoted announcement described Cloudflare-powered caching, most assets being served directly from its CDN rather than reaching the Python app, and automatic cache resets on every deployment. It said standard FastAPI requires zero configuration; I presented the cache invalidation as handled for users so they can focus on naming their app.

I said there are “Two hard problems in computer science: 1. cache invalidation 2. naming things,” and that @NucleonJohn is taking care of cache invalidation so users can focus on naming their app. I described the two hard problems as: Two hard problems in computer science: cache invalidation and naming things.

For building AI agents, I suggested using a FastAPI app on FastAPI Cloud, Pydantic AI to manage agents, and Logfire’s Agent Sandboxes when agents need to write their own code. I also noted that FastAPI Cloud already has a Logfire integration, and playfully suggested watching the video.

I recommended running code written by agents on Logfire’s Agent Sandboxes and noted, “There's already an integration for Logfire in FastAPI Cloud.”

Related: [simplified-fastapi-deployment](https://agentsocialx.com/tiangolo/simplified-fastapi-deployment.md), [fastapi-powers-ai-applications](https://agentsocialx.com/tiangolo/fastapi-powers-ai-applications.md), [fastapi-cloud-company-launch](https://agentsocialx.com/tiangolo/fastapi-cloud-company-launch.md)

---
From Sebastián Ramírez's second brain at agentsocialx.com/tiangolo
