The New Frontier: E-Commerce at the Edge

Rate this content
Bookmark

In this talk I'll explore the evolution of e-commerce infrastructure from traditional co-located servers to the new frontier of serverless and edge computing, and how modern developer tools like Remix and Vendure fit in.

This talk has been presented at Remix Conf Europe 2022, check out the latest edition of this React Conference.

FAQ

Headless commerce refers to an architecture where the front-end (or the 'head') is separated from the back-end e-commerce functionality. Instead of serving HTML, the back-end provides data via a JSON API, which can be consumed by various front-end clients using JavaScript frameworks. This allows for more flexibility in designing the user experience and can support multiple client types such as mobile apps and in-store kiosks.

The main benefits of headless commerce include the ability to use any front-end technology, improved flexibility for creating user experiences, easier updates and maintenance of the front-end without impacting back-end systems, and the capability to serve multiple clients from a single back-end service.

Edge computing in e-commerce involves processing data closer to the end user by utilizing servers at the edge of the network. This reduces latency, as data doesn't have to travel long distances to central servers. It allows for faster web page rendering and quicker interactions, enhancing the overall user experience, especially in global e-commerce operations.

Edge computing improves e-commerce performance by decreasing latency and reducing the load on central servers. By rendering pages and caching content closer to the user, websites load faster, providing a better shopping experience. This is crucial for retaining customers and improving conversion rates in e-commerce.

Venger is an open-source e-commerce framework designed for building custom e-commerce applications using a headless architecture. It offers a flexible development environment with its GraphQL API, supports multiple languages and currencies, and is ideal for developers looking to leverage modern tooling and technologies in e-commerce solutions.

Remix is a modern JavaScript framework that can be used for building web applications, including e-commerce sites. It supports server-side rendering and can operate seamlessly on various JavaScript runtimes. In a headless commerce setup, Remix can be used to develop the front-end that interacts with headless APIs, enhancing both developer experience and application performance.

Examples of platforms that support headless commerce include WordPress, Shopify, Commerce Tools, and Venger. These platforms provide APIs (REST or GraphQL) that allow developers to use custom front-ends instead of the platform's default templating systems, thus enabling a headless architecture.

Michael Bromley
Michael Bromley
19 min
18 Nov, 2022

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Today's Talk discusses the new frontier of e-commerce at the edge, focusing on headless commerce and the benefits it offers. The edge, an intermediate server, can improve website loading by rendering HTML on the server and reducing latency. Venger, an open-source headless e-commerce framework, is introduced as a solution to cache API responses at the edge and improve performance. The Venger online shop demonstrates excellent performance, highlighting the benefits of headless and edge computing in e-commerce.

1. Introduction to E-commerce at the Edge

Short description:

Today, I want to talk about the new frontier, e-commerce at the edge. There are two major trends: headless and the edge. Headless commerce is a buzzword that refers to serving JSON through a JSON API instead of serving HTML. It involves removing the head from a monolithic architecture. Let me explain further.

Hi there! My name is Michael and today I want to talk to you about the new frontier, e-commerce at the edge. I've been building e-commerce applications for well over 15 years, from old school PHP 5.4 to now Node.js TypeScript and more modern tooling and that's what I want to talk about today.

I want to tell you about the future of e-commerce and that consists of two major trends that I want to cover today, one being headless, the second being the edge. Let's cover what I mean by these.

First of all headless. Here's a Google trend chart for headless commerce. As you can see, more and more people are searching it, there's a lot of interest there. But what does it mean? Let's Google it and find out. When we Google it, we'll see the first page is just ads. If we scroll down and try and find out what it actually means, we will get, one after the other, content marketing blog posts. What can we tell from this? What can we tell from this? It's a buzz word, that's what we can tell. And if we try and read these and find out what it means, we're going to get lost in jargon and keywords. Let's skip that and I'm going to show you a diagram to make it simple.

We want to build a web-based e-commerce application, an online store. What do we need? We need a server. Okay, we need a database to store our product, customer, and order data. We need some business logic. This is what's going to take that data, put it into some templates, apply some business logic, and produce the website and all of its functionality. We probably have some cloud services, some caching layer, maybe, some third-party APIs to call out to, but at the end of all that, we're going to serve to our customer some HTML. That product data from the database has been put in a template and the server is returning HTML. This is what's known as a monolithic architecture, a traditional architecture for a web app. It's been around for a very long time and will be around for a very long time. This is good, but we're not talking about that now. We're talking about headless. Headless is different. How do we get from monolithic to headless? Well, it's simple. We've just got to remove the head like that. Now, what's happening? So we're no longer serving HTML from the server. Instead, we're serving JSON through a JSON API. That could be a REST API or a GraphQL API.

2. Headless Commerce and its Impact

Short description:

The client takes data and turns it into HTML using a JavaScript-based framework. This approach, known as headless commerce, has gained popularity in the content management and e-commerce spaces. Examples include using WordPress as a headless CMS, as well as pure headless offerings like Commerce Tools and Venger. Even traditional monolithic systems like Shopify are embracing headless commerce, indicating that it is a trend that will shape the future of e-commerce.

The client is responsible for taking that data and turning it into HTML. Typically, that would be a JavaScript-based framework. We'd take the JSON and put it into a template. This is nothing new. We've been doing it for a long time. We used to call it things like AJAX. Now it's being referred to as Headless. But that's all you need to know. I'm sure you've done it. If you've been building single page apps, you've been using this already probably. Nothing new. But that's what we mean when we're talking about headless.

Headless commerce is this applied to an e-commerce application. Let's look at some examples. So Headless really caught on big in the content management space, first of all. You've probably heard of some of these services and projects. WordPress is an interesting one. This is like the original old school monolithic CMS system, the granddaddy. But it's in here because you can use it as a headless CMS. It has a rest API, and it has a GraphQL API. So you can use it just like this. In the commerce space, there's lots of software as a service and open source products as well that you can use to build in this way. Again, you have pure headless offerings like Commerce Tools and Venger. And then you've got companies like Shopify, which traditional monolithic system, but have recently bet really big on Headless. And this is fantastic. You've probably heard of the Hydrogen Project and you've probably also heard that they acquired Remix as well. So this shows that a real big player and Shopify is one of the real big players in the e-commerce space. They're betting big on Headless. And this is a very good sign. And this is a sign that this is a trend that is really here to stay and it's going to drive the future of e-commerce.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Building Better Websites with Remix
React Summit Remote Edition 2021React Summit Remote Edition 2021
33 min
Building Better Websites with Remix
Top Content
Remix is a web framework built on React Router that focuses on web fundamentals, accessibility, performance, and flexibility. It delivers real HTML and SEO benefits, and allows for automatic updating of meta tags and styles. It provides features like login functionality, session management, and error handling. Remix is a server-rendered framework that can enhance sites with JavaScript but doesn't require it for basic functionality. It aims to create quality HTML-driven documents and is flexible for use with different web technologies and stacks.
Don't Solve Problems, Eliminate Them
React Advanced 2021React Advanced 2021
39 min
Don't Solve Problems, Eliminate Them
Top Content
Kent C. Dodds discusses the concept of problem elimination rather than just problem-solving. He introduces the idea of a problem tree and the importance of avoiding creating solutions prematurely. Kent uses examples like Tesla's electric engine and Remix framework to illustrate the benefits of problem elimination. He emphasizes the value of trade-offs and taking the easier path, as well as the need to constantly re-evaluate and change approaches to eliminate problems.
Scaling Up with Remix and Micro Frontends
Remix Conf Europe 2022Remix Conf Europe 2022
23 min
Scaling Up with Remix and Micro Frontends
Top Content
This talk discusses the usage of Microfrontends in Remix and introduces the Tiny Frontend library. Kazoo, a used car buying platform, follows a domain-driven design approach and encountered issues with granular slicing. Tiny Frontend aims to solve the slicing problem and promotes type safety and compatibility of shared dependencies. The speaker demonstrates how Tiny Frontend works with server-side rendering and how Remix can consume and update components without redeploying the app. The talk also explores the usage of micro frontends and the future support for Webpack Module Federation in Remix.
Full Stack Components
Remix Conf Europe 2022Remix Conf Europe 2022
37 min
Full Stack Components
Top Content
RemixConf EU discussed full stack components and their benefits, such as marrying the backend and UI in the same file. The talk demonstrated the implementation of a combo box with search functionality using Remix and the Downshift library. It also highlighted the ease of creating resource routes in Remix and the importance of code organization and maintainability in full stack components. The speaker expressed gratitude towards the audience and discussed the future of Remix, including its acquisition by Shopify and the potential for collaboration with Hydrogen.
Debugging JS
React Summit 2023React Summit 2023
24 min
Debugging JS
Top Content
Watch video: Debugging JS
Debugging JavaScript is a crucial skill that is often overlooked in the industry. It is important to understand the problem, reproduce the issue, and identify the root cause. Having a variety of debugging tools and techniques, such as console methods and graphical debuggers, is beneficial. Replay is a time-traveling debugger for JavaScript that allows users to record and inspect bugs. It works with Redux, plain React, and even minified code with the help of source maps.
Making JavaScript on WebAssembly Fast
JSNation Live 2021JSNation Live 2021
29 min
Making JavaScript on WebAssembly Fast
Top Content
WebAssembly enables optimizing JavaScript performance for different environments by deploying the JavaScript engine as a portable WebAssembly module. By making JavaScript on WebAssembly fast, instances can be created for each request, reducing latency and security risks. Initialization and runtime phases can be improved with tools like Wiser and snapshotting, resulting in faster startup times. Optimizing JavaScript performance in WebAssembly can be achieved through techniques like ahead-of-time compilation and inline caching. WebAssembly usage is growing outside the web, offering benefits like isolation and portability. Build sizes and snapshotting in WebAssembly depend on the application, and more information can be found on the Mozilla Hacks website and Bike Reliance site.

Workshops on related topic

Master JavaScript Patterns
JSNation 2024JSNation 2024
145 min
Master JavaScript Patterns
Top Content
Featured Workshop
Adrian Hajdin
Adrian Hajdin
During this workshop, participants will review the essential JavaScript patterns that every developer should know. Through hands-on exercises, real-world examples, and interactive discussions, attendees will deepen their understanding of best practices for organizing code, solving common challenges, and designing scalable architectures. By the end of the workshop, participants will gain newfound confidence in their ability to write high-quality JavaScript code that stands the test of time.
Points Covered:
1. Introduction to JavaScript Patterns2. Foundational Patterns3. Object Creation Patterns4. Behavioral Patterns5. Architectural Patterns6. Hands-On Exercises and Case Studies
How It Will Help Developers:
- Gain a deep understanding of JavaScript patterns and their applications in real-world scenarios- Learn best practices for organizing code, solving common challenges, and designing scalable architectures- Enhance problem-solving skills and code readability- Improve collaboration and communication within development teams- Accelerate career growth and opportunities for advancement in the software industry
Using CodeMirror to Build a JavaScript Editor with Linting and AutoComplete
React Day Berlin 2022React Day Berlin 2022
86 min
Using CodeMirror to Build a JavaScript Editor with Linting and AutoComplete
Top Content
WorkshopFree
Hussien Khayoon
Kahvi Patel
2 authors
Using a library might seem easy at first glance, but how do you choose the right library? How do you upgrade an existing one? And how do you wade through the documentation to find what you want?
In this workshop, we’ll discuss all these finer points while going through a general example of building a code editor using CodeMirror in React. All while sharing some of the nuances our team learned about using this library and some problems we encountered.
Remix Fundamentals
React Summit 2022React Summit 2022
136 min
Remix Fundamentals
Top Content
WorkshopFree
Kent C. Dodds
Kent C. Dodds
Building modern web applications is riddled with complexity And that's only if you bother to deal with the problems
Tired of wiring up onSubmit to backend APIs and making sure your client-side cache stays up-to-date? Wouldn't it be cool to be able to use the global nature of CSS to your benefit, rather than find tools or conventions to avoid or work around it? And how would you like nested layouts with intelligent and performance optimized data management that just works™?
Remix solves some of these problems, and completely eliminates the rest. You don't even have to think about server cache management or global CSS namespace clashes. It's not that Remix has APIs to avoid these problems, they simply don't exist when you're using Remix. Oh, and you don't need that huge complex graphql client when you're using Remix. They've got you covered. Ready to build faster apps faster?
At the end of this workshop, you'll know how to:- Create Remix Routes- Style Remix applications- Load data in Remix loaders- Mutate data with forms and actions
Building a Shopify App with React & Node
React Summit Remote Edition 2021React Summit Remote Edition 2021
87 min
Building a Shopify App with React & Node
Top Content
WorkshopFree
Jennifer Gray
Hanna Chen
2 authors
Shopify merchants have a diverse set of needs, and developers have a unique opportunity to meet those needs building apps. Building an app can be tough work but Shopify has created a set of tools and resources to help you build out a seamless app experience as quickly as possible. Get hands on experience building an embedded Shopify app using the Shopify App CLI, Polaris and Shopify App Bridge.We’ll show you how to create an app that accesses information from a development store and can run in your local environment.
Create a Visually Editable Next.js Website Using React Bricks, With Blog and E-commerce
React Summit 2023React Summit 2023
139 min
Create a Visually Editable Next.js Website Using React Bricks, With Blog and E-commerce
Top Content
WorkshopFree
Matteo Frana
Matteo Frana
- React Bricks: why we built it, what it is and how it works- Create a free account- Create a new project with Next.js and Tailwind- Explore the directory structure- Anatomy of a Brick- Create a new Brick (Text-Image)- Add a title and description with RichText visual editing- Add an Image with visual editing- Add Sidebar controls to edit props (padding and image side)- Nesting Bricks using the Repeater component- Create an Image gallery brick- Publish on Netlify or Vercel- Page Types and Custom fields- Access Page meta values- Internationalization- How to reuse content across pages: Stories and Embeds- How to create an E-commerce with Products’ data from an external database and landing pages created visually in React Bricks- Advanced enterprise features: flexible permissions, locked structure, custom visual components
Testing Web Applications Using Cypress
TestJS Summit - January, 2021TestJS Summit - January, 2021
173 min
Testing Web Applications Using Cypress
Top Content
WorkshopFree
Gleb Bahmutov
Gleb Bahmutov
This workshop will teach you the basics of writing useful end-to-end tests using Cypress Test Runner.
We will cover writing tests, covering every application feature, structuring tests, intercepting network requests, and setting up the backend data.
Anyone who knows JavaScript programming language and has NPM installed would be able to follow along.