Transforming Lar's E-commerce with Next.js and Vercel for Speed

Convert to note

Introduction to Lar and the Challenge

Lar is the largest electronics retailer in the Nordic region, holding about 27% market share across Sweden, Norway, Denmark, and Finland. With over 400 physical stores and a high volume of e-commerce traffic, 7 billion edge requests and 330,000 orders monthly, performance is critical to maintaining their market leadership.

The Starting Point: A Slow, Bloated E-commerce Site

  • The original site was slow, with product carousels taking up to 20 seconds to load.
  • Customers frequently complained about the poor performance, including on public forums like Reddit.
  • Internal feedback from store employees echoed these frustrations.

Transformation Overview: From Angular SPA to Next.js on Vercel

  • Migrated from an Angular single-page application running on Kubernetes with Apollo to a Next.js application deployed on Vercel.
  • Initially used an external CDN for routing and AB testing, later removed it to simplify architecture.
  • Resulted in a leaner, faster, and easier-to-maintain platform.

Performance Improvements

  • Core Web Vitals scores improved dramatically, reaching near-perfect scores (99 mobile, 100 desktop).
  • Layout Shift improved by 100%, achieving near-zero layout shifts through server-side rendering.
  • Interaction to Next Paint (INP) improved by 64%, enhancing responsiveness.
  • Largest Contentful Paint (LCP) improved by 51%, speeding up content loading.
  • Product discovery to checkout time reduced by 75%, improving customer experience significantly.
  • Removing the external CDN reduced Time to First Byte by 40%, increasing consistency and speed.

Commercial Impact

  • Month-over-month commercial metrics improved consistently over 12 months.
  • Faster site performance led to better customer engagement and higher conversion rates.
  • Internal stakeholders reported drastically reduced feature delivery times, from seven weeks to one day, with a smaller development team.

Process and Workflow Changes

  • Shifted from heavy specification and review cycles to rapid iteration with minimal friction.
  • Emphasized fast feedback loops by deploying early and often, including shipping unfinished code to production for real-world testing.
  • Prioritized iteration velocity over exhaustive test coverage to quickly respond to actual customer behavior.
  • Enabled confident, safe deployments with instant rollback capabilities.

Key Technology Enablers

Future Plans

  • Implement micro frontends using Vercel’s native support to enable parallel development and faster onboarding of teams. For insights on micro frontends, see Implementing Your Own Design System in Next.js.
  • Adopt partial rendering and caching strategies to support personalization while maintaining fast response times.
  • Continue simplifying architecture to maintain speed, scalability, and developer confidence.

Key Takeaways

  • Simplicity scales: Reducing complexity and leveraging the right tools accelerates development and improves performance.
  • Prioritize iteration speed and customer feedback over rigid processes and exhaustive testing.
  • Server-side rendering and modern deployment platforms like Vercel can dramatically improve e-commerce performance. For a deeper understanding of server-side rendering, check out Why OpenAI Migrated from Next.js to Remix: An In-Depth Analysis.
  • Continuous improvement and confidence in deployment processes enable rapid innovation even in large enterprises.

For organizations considering similar transformations, lean into sensible defaults, minimize complexity, and focus on delivering value quickly to customers.

Heads up!

This summary and transcript were automatically generated using AI with the Free YouTube Transcript Summary Tool by LunaNotes.

Generate a summary for free
Buy us a coffee

If you found this summary useful, consider buying us a coffee. It would help us a lot!


Ready to Transform Your Learning?

Start Taking Better Notes Today

Join 12,000+ learners who have revolutionized their YouTube learning experience with LunaNotes. Get started for free, no credit card required.

Already using LunaNotes? Sign in