r/SaaS • u/torsaaan • 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:
- Stick with my existing Java stack and use AI coding tools to accelerate development.
- 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?
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)
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.
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
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?
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
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/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.
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.