Architecture Overview
Traditional Sitecore Architecture
In a traditional Sitecore architecture, we have two main server roles:
- Content Management (CM) - this is where content editors log onto to manage the content of the site. This server is typically behind a firewall.
- Content Delivery (CD) - this environment is public facing and is where visitors view the website. In a Traditional Sitecore Architecture, the integration logic, business logic, and rendering logic uses ASP.NET, MVC as the technology to serve and render the website.
Headless Sitecore Architecture
Sitecore with Next.js uses a headless architecture approach. In a headless architecture, the front-end layer is decoupled from the back-end, meaning that the website's content is served via APIs or web services, rather than being directly rendered on the server.
The key components of a Sitecore Headless Architecture include:
- CM - remains the same as in a traditional architecture.
- CD - this role switches to solely serve content in a JSON format.
- Rendering Host - The public facing server is now moved to what is called the rendering host. You are free to use any number of frameworks and technologies, such as React.js, Vue.js, or .NET Core (in our case, Next.js) to render the website.
Integration and business logic also moves here, meaning that the rendering host also communicates directly to not only the CD, but also any external APIs that are not related to content. Content from the CD is just one integration point.