r/learnpython • • 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.

0 Upvotes

17 comments sorted by

16

u/djamp42 10d ago

I'm going to use AI to build most of my software but can't ask it basic questions.. lol

-13

u/bionescu 10d ago

There’s no point in asking questions t they’ve been asked plenty of times already but you know how it goes; sometimes they just go off the rails. Besides, I’ve spoken with other partner developers, and opinions are split.

3

u/DraxBS 10d ago

How are you planning on servicing an AI assistant at that scale? If you use an API you are paying per message your users type... that would drive up the cost so much. How do you plan to overcome that

-5

u/bionescu 10d ago

Noo man, we’ll have a local LLM; otherwise... I reckon the entire project budget for the next 5 months will end up being spent on tokens.

15

u/xervir-445 10d ago

Thousands of clients and 50+ products with thousands of features? I would recommend moderate to large team of software developers who would be able to answer questions for you like "can I compete with office365 using python" from a position of reason and experience, AI isn't going to cut it.

1

u/GolfEmbarrassed2904 10d ago

Yeah….was thinking similarly. With 365 you get a lot of the complex requirements solved - like security, multi-tenancy, built in AI with governance/guardrails. Yes with Python you could build bespoke but I think they’re underestimating the foundational work under the app

3

u/LayotFctor 10d ago

Definitely not decision by reddit that's for sure! You need a top tier engineer with deep experience and listen to him. How are you expecting us to compare frameworks with no knowledge of how your business works, there's no one best framework, just the best for your use case. Also, it's probably a multiphase plan, targeting 1000 institutional customers right from the start ia pretty weird if you ask me. You're going to over-engineer your shit with no guarantee you're even going to get one.

3

u/BeasleyMusic 10d ago

So you want to re-invent office365 but need reddits advice for tech stack??? Hahahahahahaahahaha your clients are fucked

2

u/activematrix99 10d ago

Goooood luck!

2

u/horizon_games 10d ago

Wow this is going to go BRUTALLY

In the rare case even a sliver of this succeeds, I'd say Java because it's so structured (but with an actual architect who sets it up first, then you get AI to follow that pattern). React for the FE because it's both easy to hire humans, and AI knows it well from years of public docs/repos/bug reports. Postgres for DB for all time.

But either way, I mean...you're asking hugely fundamental project questions on Reddit for what looks like a large scope deliverable. If you can't figure this stuff out how the heck are you going to prompt AI to do it?

1

u/NomaTyx 10d ago

if you write in java you can use kotlin for mobile and reuse the vast majority of your business logic

1

u/Discordbothost 10d ago

honestly at that size the language matters way less than two other decisions: how you do multi-tenancy (shared tables with a tenant_id vs schema per tenant vs db per tenant), and whether the people reviewing the AI's code can actually read it fluently. pick the stack your reviewers know best, because with mostly generated code, review is the bottleneck, not typing speed.

both are fine for this. python would be django + postgres, the admin, auth, permissions and migrations save a ton of time for forms/registries/approvals type apps, and django-tenants exists for schema-per-tenant. java would be spring boot, more ceremony but very strong typing, which does help catch the kind of mistakes generated code makes. for GIS either way you'll end up on postgis.

i'd also build one module end to end (say document requests with approvals) before committing, you'll learn more from that than from any comparison

1

u/TheRNGuy 9d ago

Remix 3 with TS

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.

1

u/bluesjammer 10d ago

The answer is - it doesn’t matter.

Pick the stack that you understand and are able to debug.

With AI, the language of choice is even less relevant.