2026 · Software Engineer
Contentful, Next.js and a shared cache
Localized customer websites with Redis-backed caching across self-hosted Next.js processes.
- Next.js
- Contentful
- Redis
- PM2
How it fits together
Shared content. Shared cache.
Explore the architecture, then open a decision below.
-
Content
Contentful to components
Map localized content to reusable React interfaces.
Design reasoningContentful manages the content; Next.js controls rendering and the customer interface.
-
The constraint
Multiple PM2 processes
A process-local cache is not shared by the other processes.
Design reasoningISR and revalidation needed to work across processes. Independent caches made the default setup insufficient for this deployment.
-
The change
A shared Redis cache
Move cached data outside individual Next.js processes.
Design reasoningRedis provides a common cache rather than leaving each process with a separate view.
-
The product
Three local experiences
Shared frontend foundations, with content for each market.
Design reasoningReuse the common interface while preserving the country-specific content and customer journeys.
Simplified architecture and design considerations. Internal endpoints, access policies and deployment details are omitted.
My contribution
Built shared frontend components and localized content delivery, and implemented Redis-backed caching for the PM2 deployment.
Result
Next.js processes share cached data so ISR and revalidation can work across the deployment.
The important boundary
Content management and rendering are separate responsibilities. The self-hosted deployment adds another: keeping cached content consistent across processes.
Technical context: Next.js self-hosting and shared caching.