r/learnpython • • Aug 29 '26

Looking for a genuinely free way to deploy a 3-service microservice architecture

Hey everyone,

I'm building a small portfolio project with this architecture:

Frontend
   ↓
Gateway
   ├── Interview Service
   └── RAG Service

All 3 backend services are Python/FastAPI and deployed separately.

I'm currently using Render's free tier, but I'm running into a few issues:

  • Free services spin down after inactivity → pretty bad cold starts.
  • I've also been seeing stuck on the issue 429 Too Many Requests responses at the Gateway endpoint. I'm not completely sure whether this is coming from Render's edge/platform or something in my own application.
  • The free instances also feel quite resource-constrained for the RAG service.

I'm mainly looking for something that won't make me spend more time debugging the hosting platform than actually building the project 😅

Thanks!

0 Upvotes

6 comments sorted by

1

u/shiftybyte Aug 31 '26

Get a free VPS from Google cloud or oracle cloud.

-4

u/Ok_Pianist1679 Aug 29 '26

Before you switch platforms, figure out who's actually sending the 429. Hit the endpoint and look at the raw response - a limit from your own FastAPI middleware (slowapi and friends) comes back as JSON with a Retry-After header, a platform-level one is usually plain HTML carrying the host's server header. One curl -i and you know whether the fix is code or hosting.

The cold starts are structural though. Three separate free services means three separate things spinning down, and a request that touches all of them can eat that penalty more than once. For a portfolio project I'd collapse them into one FastAPI app with gateway/interview/RAG as routers - same code, same separation in the repo, one deploy that stays warm. You lose independent scaling, which you weren't using on a free tier anyway.

5

u/Langdon_St_Ives Aug 29 '26

Thanks Claude

-2

u/[deleted] Aug 29 '26

[removed] — view removed comment

1

u/QuasiEvil Aug 29 '26

fly.io does not have a free tier anymore.