r/SaaS • • 1d ago

Solo SaaS developer: Stick with my old Java stack or rebuild with a modern AI-assisted stack?

I started developing my SaaS in 2022 using Java EE + JSF + PrimeFaces + MySQL, hosted on AWS EC2.

At the time, AI coding assistants weren't really an option, and I already had several years of experience with Java EE, so choosing this stack made sense.

After four years of solo development, I finally launched the app in September 2026. It's fully functional, but I still have plenty of features on my backlog.

Recently, I've started experimenting with AI-assisted coding, and I'm amazed by how much it can speed up development.

Now I'm wondering whether I should:

  1. Stick with my existing Java stack and use AI coding tools to accelerate development.
  2. Rebuild the application using a modern stack like Next.js + Supabase (PostgreSQL) + Vercel, with Claude Code doing much of the coding.

The second option is tempting, especially because I could modernize the UI/UX at the same time. But rebuilding four years of work also sounds a bit crazy. 😁

What would you do in my situation? Has anyone here successfully migrated an existing SaaS to a modern stack using AI coding tools?

3 Upvotes

20 comments sorted by

4

u/Chris_Lojniewski 1d ago

I'd keep the app on java

You launched two months ago, so what you're short on is users and feedback, not a nicer stack. a rebuild is months where nothing new ships, and every bug you already fixed gets a second chance. and claude code works on java too, the speedup isn't tied to next.js

If you want the modern stack somewhere, put it on the public side: landing page, pricing, docs, blog. that's the part next.js is good at (server rendered pages, so search engines get real html), and with a headless cms like sanity behind it you can change copy without a deploy. it's small, nothing breaks for paying users if you get it wrong, and you learn the stack before deciding anything about the app

(bias: i run pagepro, we build next.js + sanity sites. our open source starter for that is nexity.build)

1

u/torsaaan 21h ago

Thanks, great advice! You're absolutely right that getting users and feedback should be my priority right now.

I've decided to keep the existing Java stack and focus on improving the product. I'm also planning to modernize the public pages, especially the landing page, so your suggestion makes a lot of sense. Thanks again!

2

u/Beichler-Queku 18h ago

agree, users really dont care what stack its running on as long as the product works

2

u/Which-Examination-74 1d ago

We ported a client's ordering platform from a Laravel backend to a TypeScript one. What hurt was a route the new backend deliberately didn't serve. The old app had an XML product feed, and in the new route list it was marked as left to the owner, so it just answered 404. Its only reader turned out to be a search engine's listing crawler, which had been hitting it several times a day up to cutover. On a 404 that crawler kept its last good copy. Nothing looked down. What got reported was that the feed showed old data. The nginx access log gave it away: 200 up to the day before cutover, 404 from the cutover day on. The fix came at least a week after cutover. If you do rebuild, go through the old app's reverse-proxy logs before cutover and compare every URL still being requested with what you ported.

1

u/torsaaan 21h ago

Thanks for sharing your experience! That's a great example of how easy it is to overlook something during a migration, even when everything seems to be working. Another good reason not to rush into a rewrite.

2

u/kingkong_siu82 1d ago

i wouldn't rewrite four years of working behavior just to change the stack. put characterization tests around the revenue-critical flows, expose one narrow api from the java app, then rebuild a single ugly or slow-moving screen against it. after a few weeks you'll have real numbers on dev speed, bugs, and deployment overhead. if that slice is clearly better, keep migrating incrementally. if it isn't, you still improved the existing app instead of spending a year rebuilding hidden edge cases

1

u/torsaaan 21h ago

That's a great suggestion, thanks! I like the idea of testing a modern frontend on just one screen before committing to a larger migration. Much less risky than rewriting the entire app, and I'd get some real experience with the new stack along the way.

2

u/AlexeyAnshakov 1d ago

Never rewrite a running production system because codegen feels faster in a new stack. The edge cases and business rules you hardened over four years are the moat, not the syntax. Which specific feature on your backlog does the current Java backend actually block?

1

u/torsaaan 21h ago

Actually, there isn't any specific feature that's being blocked by the Java backend. I think you're right. With AI coding assistants, I can probably speed up development significantly while keeping my existing stack. Thanks for the advice!

2

u/AryanThakor 22h ago

middle path if the UI is the itch: keep java as the backend and build only new screens in a separate frontend, then move old pages over one at a time when you touch them anyway. you never have a month where nothing ships

1

u/torsaaan 21h ago

For now, I'll focus on modernizing the public pages, especially the landing page, while keeping the existing Java stack. If I decide to modernize the app's frontend later, your incremental approach sounds like a good option. Thanks for the advice!

1

u/torsaaan 21h ago

Thanks everyone for the great advice! I didn't expect such a strong consensus.

You've convinced me to stick with my existing Java backend and focus on improving the product and acquiring customers rather than spending months on a rewrite.

I might consider modernizing the frontend later, but for now I'll continue with the current stack and use AI coding tools to speed up development.

Really appreciate all the feedback!

1

u/Any-Appointment-814 1d ago

Honestly I'd keep the Java stack. You just launched, and a rewrite now means months rebuilding stuff that already works instead of getting users. AI tools work fine on Java too, I use them every day on Java and TypeScript backends. If JSF is the part that hurts, you can expose the backend as an API piece by piece and move the frontend over later, way less risky than a big bang rewrite.

1

u/torsaaan 21h ago

I know JSF is considered outdated by many web developers, but I actually enjoy working with the JSF + PrimeFaces combo. And you're right, rebuilding everything would take time away from getting customers. I'll stick with the current stack for now. Thanks for the advice!

1

u/iammohamedatef 1d ago

I’d separate the UI decision from the database decision. Is MySQL causing a problem or is it just part of the new stack you’re considering?
If you do decide to move it, I’d try a migration on a copy first and check the records and relationships your main workflows depend on. AI can help write the migratio but you’d still need to check that the data means the same thing afterward.

1

u/torsaaan 21h ago

I have no issues with MySQL. I was mainly considering Supabase because I like how easy it is to work with. But I've decided to stick with my current stack and focus on improving the product. I might just modernize the landing page for now. Thanks for the advice!

2

u/prompt_scout 1d ago

don't rewrite a working app right after launch, keep Java on the backend and only rebuild the frontend later if UI holds sales back.

2

u/VisualPartying 20h ago

Don't bother.