Strangler Pattern Architecture
Next.js wraps the legacy PHP API without replacing it. A single REST boundary makes future backend migration an isolated project, not a rewrite.

Wats. in is a location-aware social discovery platform where people post discoveries, photos, places, products, and trivia tied to cities, and businesses run their own presence alongside regular users. We built a modern Next.js 14 consumer surface on top of a mature PHP/CodeIgniter backend that held years of business logic, data, and integrations. The real constraint wasn't building a social app it was modernizing the entire user-facing surface without touching the system of record.
The backend was battle-tested and data-rich, with years of integrations, business logic, and millions of records. Rewriting it would mean months of migration risk and downtime. But the frontend needed to be consumer-grade: server-rendered feeds for SEO visibility, mobile-first, shareable entity pages, fast image delivery, push notifications. The old frontend couldn't deliver that. We needed to modernize without a big-bang rewrite.


We applied the Strangler pattern, wrapping the legacy API in a modern Next.js 14 frontend that renders server-side through React Server Components. Next.js owns the routing, auth, SEO, and session layer while CodeIgniter remains the source of truth. A single axiosInstance + thin apihelper layer creates a replaceable API boundary. Image resizing and push notifications moved to AWS Lambda microservices so spiky work doesn't tax the application servers. Auth flows through cookies that server components can read on the first render no loading flashes, no double fetches. Environment switc
Next.js wraps the legacy PHP API without replacing it. A single REST boundary makes future backend migration an isolated project, not a rewrite.
React Server Components render feeds server-side for full SEO visibility and shareability. Discovery feed is indexable, not a black-box SPA.
Token stored in cookies readable by server components on first render. No loading flashes. No double fetches. Middleware guards routes automatically.
npm scripts control env selection (dev/qa/prod). Zero risk of mixing credentials. GitHub Actions → SSH deploy keeps pipeline trivially small.
Image resizing and push notifications moved off application servers. Spiky workloads run independently. S3 → Lambda → thumbnails pipeline keeps originals off render path.
In-app foreground handling. Lambda-driven delivery at scale. FCM integration handles millions of messages.

A modern, SEO-visible product shipped on top of an untouched legacy backend zero data migration, zero big-bang cutover, zero downtime. Media and notification load moved off application servers entirely. When the time comes to replace CodeIgniter, that work becomes an isolated project, not a rewrite of everything. The two-branch, push-to-deploy release flow lets teams ship to QA and production safely.
85%
Faster Publishing
100%
SEO Visibility Achieved
65%
Reduced Server Load
95%
Zero-Downtime Deployment


Heard from the people who actually worked with us
Team up with us to enhance and achieve your business objectives
GETHER