Ali Sami Farooq says NextJS is Incremental Static Regeneration

Ali Sami Farooq says that how developers approach new web applications has changed by Next.Js. For many years, dynamic sites would use variations of server-side rendering (SSR) and client-side rendering (CSR) for dynamic data in their applications. SSR performed well as developers were able to generate HTML before actually passing it onto the browser which was easily crawl-able by search engines. CSR was also amazing as it helped in reducing the initial payload time and bandwidth usage by lazy loading elements.

Static pages are faster than pages that are rendered when a request actually comes in. However, if your data changes continuously, static pages could be a hassle to update. Updating your site every-time a blogger writes a new blog for your website could be a painful process. However, Next.js solved this issue with incremental static regeneration.

With incremental static regeneration, all your pages are pre-rendered at build time and a static package is generated. That’s not all though. Incremental static regeneration keeps track of any changes in data that might be occurring in your backend (CMS / API / any data source). As the data changes, incremental static regeneration triggers a re-build for that specific page and continues to serve the existing static page. Once the rebuild is complete, the freshly generated page is served to the users!ali sami farooq

This technique helps lower your server costs as you could use static storage like AWS S3 or Google Cloud Storage to serve your application.

When to use incremental static regeneration?

This technique works exceptionally well when you need to serve the same data to all users of the application e.g. a blog, a landing page, pricing pages, etc. where the data might change but changes consistently for all users. It beats the load times of plain React applications and server-side rendering applications (IF implemented correctly)!

However, in most real-world applications, you would probably be using static regeneration, client-side rendering, and server-side rendering in combination. Despite the countless benefits of incremental static regeneration, it is not a replacement for CSR and SSR and there are countless use-cases where you want to use those or use the three techniques in a combination.

~Ali Sami Farooq

Ali Sami Farooq

Ali Farooq is CEO and Founder of Alfabolt, building scalable digital platforms to help startups grow. Ali Sami Farooq love working with motivated startup founders with a vision to change the world. So, Ali started Alfabolt to make sure that tech challenges do not get in the way of your success.

Ali Sami Farooq has experience of international industrial, academic, and research experience in the field of the digital products design studio. He loves tech and collaboration. Ali Sami Farooq company domains are:ali sami farooq
1. App Development
2. Web Development
3. Computer Vision
4. Artificial Intelligence

Ali Sami Farooq specializes in analyzing, researching, and teaching real time business issues in the broad domain of Operations & Supply Chain Management using the “Systems Approach”. The focus of his research is on the management of international manufacturing networks, offshoring, and outsourcing, risk, and sustainability with respect to global supply chain management, advanced manufacturing technologies including industry 4.0, and servitization.

Ali Farooq’s academic qualification is that he had done Bachelor of Computer Science Degree from the National University of Sciences and Technology (NUST). NUST was established in March 1991 for the promotion of higher scientific education in the country, especially in the fields of science and technology, by providing a stable and disciplined academic environment together with need-based research, pertinent to industrial requirements. The University was granted its Charter in 1993. Over the years, the university has expanded in scope, services, and stature and has emerged as a leading comprehensive University in the public sector.

Ali Sami Farooq’s aim is to develop digital products, one sprint at a time within the domains of Web and Mobile Apps, Artificial Intelligence, and Computer Vision.