Marius is a software developer and designer focused on intuitive UIs, scalable architecture, real-world problem-solving and effective code-shipping. He works primarily with Next.js, TailwindCSS, and Figma to design and build secure and maintainable web apps in cross-functional teams.
[ENG] Publish-Driven Static Frontends: Cache-First Delivery with On-Demand Revalidation
Modern frontend architectures promise the best of both worlds: static performance and dynamic data. But in practice, many teams still rely on time-based revalidation or request-triggered regeneration, leading to stale content and unpredictable cache behavior. This talk introduces a publish-driven approach to static frontends, where data changes—not time—become the primary trigger for cache invalidation and regeneration. Using patterns built on top of Next.js (ISR, API routes, and on-demand revalidation), we’ll explore how to turn your frontend into an event-driven system. By leveraging webhooks from your CMS or backend, you can precisely control when content updates propagate, while still benefiting from CDN-level performance and cache-first delivery. We’ll walk through the architectural shift from time-based to event-based rendering, discuss trade-offs, and demonstrate how this approach generalizes beyond Next.js to any framework that supports static generation and server-side hooks.
