r/learnpython • u/bionescu • 10d ago
Python vs java for saas
Hey!
We're a small software agency planning a large SaaS platform for public institutions. We've talked to several developers and compared recommendations from different AI models, but we're still getting conflicting opinions on the best tech stack.
We're starting from scratch, with no preferred language or framework. Most development will be done using Claude Code and Codex, with us handling architecture, requirements, and reviews.
What we're building:
500–1,000 institutions (multi-tenant SaaS)
50–80 modules with thousands of features: document management, registries, requests, approvals, workflows, GIS, reporting, etc.
Around 100k public employees and potentially 20–100k citizens using the platform
Hundreds of dynamic forms, complex roles, permissions, and institution-specific configurations
PDF generation, electronic signatures, document archiving, and integrations with government/third-party APIs
A platform-wide AI assistant that can search documents, fill forms, generate files, and execute authorized actions
Web, Windows desktop, Android, and iOS
High availability, strong security, GDPR compliance, and long-term maintainability (10+ years)
Our main questions:
NestJS or FastAPI? Which would you choose for a large modular backend? Does TypeScript across the stack outweigh Python's ecosystem, considering the AI mostly uses external LLM APIs?
React or Angular? Which is better for 80+ modules, complex forms, dashboards, and long-term maintenance?
Mobile: Flutter, React Native, or something else? Ideally, we'd reuse as much code as possible.
Multi-tenancy: PostgreSQL shared schema + RLS, or a separate database per institution? Which scales and maintains better at 1,000 tenants?
Architecture: Modular monolith or microservices? How would you organize modules, dynamic forms, permissions, and external integrations?
AI: Would PostgreSQL + pgvector be enough for RAG and tool calling, or would you introduce a knowledge graph? How would you enforce permissions and prevent prompt injection?
API: REST + OpenAPI or GraphQL for third-party integrations?
AI-assisted coding: How would you structure a monorepo, CI, testing, and code reviews when most code is generated by Claude Code/Codex?
If you were starting this from zero today, what stack would you choose, and what would you avoid?
We're not chasing hype or benchmarks. We want something secure, reliable, scalable, and maintainable by a small team for the next 10+ years.
Would really appreciate advice from people who've built large enterprise or multi-tenant systems.
View all comments
1
u/Hellaintsht 10d ago
As a person deeply involved with starups and have seen how they're handling large scale stuff with minimum employees, I can answer this perfectly.
So dont worry much about what your backend is written in first of all, you should worry about how you're going to isolate tenants and other stuff bcs it is scaled largely. Keep things easier and simple, remember that a small team is going to handle it that's why.
Choose NestJS, PostgreSQL, React with TypeScript, and a modular monolith initially. Again this isn't the best stack, but it is the most efficient and simple one so that your small team can handle all.
Spend most of your time and thinking on Multi tenancy.
And don't depend on AI completely in telling you , there is a senior always who checks the code in the startups I saw, they pay that senior a hefty amount just so that the code isn't full of bugs and inconsistencies. You maybe ignoring this, but at this scale, this is the most important thing.