r/devops • u/Actual_Way5611 • Oct 12 '26
Observability Building a taxi app with a microservices architecture. How would you deploy it on a small budget?
Hey everyone! I'm building a taxi booking platform, and I'm trying to figure out the smartest way to deploy it without spending too much money before launch.
I'm building the backend first, using Python, FastAPI, PostgreSQL, Redis/Valkey, Kafka, and Docker. The architecture is split into services for identity and authentication, passengers, drivers, rides, location tracking, driver-to-ride matching, passenger-to-passenger matching for shared rides, payments, notifications, and admin operations. I'm also using Nginx as an API gateway.
One of the more interesting parts of the project is the shared-ride system. I want passengers travelling in similar directions to be able to share a taxi, with route compatibility, pickup and drop-off ordering, seat capacity, pricing benefits, and time limits all taken into account. I'm planning to use H3 spatial indexing together with Redis to make nearby passenger discovery faster, while PostgreSQL remains the source of truth. Redis is used for fast lookups and caching, not as the authority for important business decisions.
I'm also building an operations dashboard for managing drivers, document approvals, roles and permissions, and monitoring the platform. Payments will initially support cash, with card payments planned through a proper provider. The passenger and driver mobile apps will come later, after I have a better understanding of the backend's production readiness.
My main challenge now is infrastructure. I don't want to pay for an expensive Kubernetes cluster or a huge cloud setup when I'm still preparing for launch. At the same time, I don't want to take shortcuts that will cause serious problems when real drivers and passengers start using the app.
For those of you who have deployed similar systems, especially on a tight budget:
- Would you deploy the services on one VPS using Docker Compose at first, or split them across multiple VPS instances?
- How would you handle PostgreSQL, Kafka, Redis/Valkey, backups, monitoring, and logs without making the monthly bill explode?
- Would you keep Kafka from day one, or simplify the deployment until traffic justifies the extra infrastructure?
- What would you use for production deployment, CI/CD, secrets management, HTTPS, database migrations, and recovery if the server goes down?
- Which affordable hosting providers would you recommend, and what should I consider when choosing one?
I'm not looking for the most sophisticated infrastructure possible. I want a realistic deployment strategy that keeps costs low, protects customer data, and gives me a clear path to scale when the business starts growing.
I'd really appreciate advice from people who have actually deployed and operated production systems on a tight budget. If you were starting this project today, what would you do differently?
13
u/HardestDrive Oct 12 '26
Eghhhh. Its a tough one, especially in the current day and age of security. The main thing is attack surface, if your one virtual IP or VM backs the database, the API endpoints and the backend, you're not in a good position. I won't go in to detail about an architecture, but please keep security number one on your list.
12
u/RedanfullKappa Oct 12 '26 edited Oct 12 '26
Its not what you asked for, but if this is an actual real project.
Don’t do microservices if you don’t really need them bundle as much as possible into one monolith.
Scrap Kafka if you don’t really need it.
And just deploy it as container or fargate or smth.
Edit: I do consult on performance tuning for these kinds of architectures. 99.9% of my customers would have been better off doing monoliths and they are doing gigantic rewrites of their architecture because their getting fed by the negatives no one thought about. Because they built a distributed monolith
11
u/chat-lu Oct 12 '26
Every microservice architecture that works was broken out of a monolith that worked.
3
u/Fercii_RP Oct 12 '26
Maybe start with a modulith first, when necessary you can always make a microservices out of a module for scaling purpose
2
u/singh_abinashi Oct 12 '26
Don't run microservices on one VPS with Compose and call it done without a plan for the stateful parts. Postgres and Kafka are what will hurt you, not the app containers. Use managed Postgres (backups included), and either managed Kafka or something lighter until you have real throughput. One deploy rule: the same image everywhere, config via env vars, migrations as a separate step before the rollout. Compose is fine for a side project. Budget the stateful stuff first.
1
u/iamichi Oct 12 '26 edited Oct 12 '26
I used Azure Startup Credits. Got $5000 off the bat and 6 months to use, then they bumped it $25,000 and gave a year to use because I had deplored I think 5 workloads in that time. Which consists of azure redis cache, pgsql flexi server, app service to start then privately networked AKS, signalR service, storage accounts (backups, blob storage for app, Terragrunt/terraform state files), VMs with cloudflared (for Cloudflare Tunnel ingress and CF One / Zero Trust for private vnet access) and application insights.
AWS has similar, pretty easy to get also.
If I hadn’t got that, I think I’d have used a hosted pgsql database (like Neon, Aiven or Supabase) and got 2-3 servers from hetzner for the application/CI compute and run k8s, probably Talos. And probably Sentry for monitoring.
Oh, and I highly recommend workos.com for auth. Very generous free tier, best auth experience I’ve used, and even provides MCP auth now, so you can set it up so people can book their taxis and get stays with their agent of choice
2
u/SeaworthinessHour233 DevOps Engineer & Educator Oct 13 '26 edited Oct 13 '26
This is what I would do:
- 2 x EC2 instances with Graviton CPUs (t4G small or Medium depending on memory requirement). 1 year savings plan
- First EC2 for front-end (Nginx proxy + Python app) on Docker Compose
- Second EC2 for backend/databases on Docker compose
- No public IPv4
- AWS CloudFront directly routing HTTP to first EC2
- S3 for any static files
Start with IaC (OpenTofu) from day-1. You can easily add managed databases and redundancy later.
1
u/6razyboy Oct 31 '26
I would probably just go with Docker Compose for now. With that many services Kubernetes seems like overkill tbh.
But before that I would try to get a clear picture of how all those services connects to each other, which ones actually need to be separate and so on.
Btw I am building an open source tool called Compoviz (https://compoviz.pro), basically it visualizes docker compose files and you can also build stuff with drag and drop. Might be useful for your case, idk, just sharing 😉
1
u/ResolveResident118 Jack Of All Trades Oct 13 '26
"when real drivers and passengers start using the app"
Start worrying when this actually happens, not before.
1
u/ThunderTherapist Oct 13 '26
AWS Lambda
1
u/Cubepath Oct 13 '26
I'd start with a single VPS and Docker Compose to keep costs low before launch. Just make sure you have backups and monitoring in place.
If you're comparing hosting providers, you could also check out CubePath. We offer affordable VPS options that might fit your project.
1
u/kevinhuse Oct 13 '26 edited Oct 13 '26
Start with Docker Compose on one VPS and keep the setup simple. Unless Kafka is essential from day one, a lighter queue can reduce costs and maintenance. Prioritize automated backups, monitoring and tested recovery before scaling.
1
u/Right_Cartoonist2691 Oct 16 '26
For a small-budget taxi app, introducing a long list of micro services before validating demand could create more work than value. Every extra component adds deployment, monitoring, and debugging overhead, which is a real burden when time and money are limited. A simpler foundation is easier to maintain, and as the product grows, infrastructure planning of the kind discussed across the industry, including by trusted tech, becomes more relevant when there is a clear need to scale.e
1
u/LumenStack_DevOps Oct 17 '26
If you want to keep initial costs essentially at zero, look into AWS Activate Founders. You can usually get $1k–$5k in free cloud credits just by having a working website and a business domain. That'll easily cover your early staging, Postgres, and Redis bills while you scale up the MVP.
1
u/josejulianariza Oct 21 '26
Si estuviera arrancando ese proyecto hoy, iría por bastante menos. Con ese presupuesto, un solo VPS con Docker Compose y Nginx adelante alcanza para lanzar. Kafka lo dejaría para después: con colas sobre Redis o las de PostgreSQL ya alcanza al principio. CI/CD y secretos sí conviene resolverlos desde el día uno, aunque sea básico, porque eso es lo que más duele cambiar después.
Lo que más te pudiera salvar es que PostgreSQL sea la única fuente de verdad y que los backups vivan fuera del VPS. Con eso, si el servidor se cae, lo reconstruís. Lo que evitaría es sumar componentes que después no vas a poder mantener solo, porque cada cosa que agregas hoy la vas a tener que operar cuando ya tengas usuarios encima.
1
u/[deleted] Oct 12 '26
[removed] — view removed comment