The COVID-19 pandemic changed the retail landscape for sellers and consumers alike. Lockdown accelerated the pace of digital transformation and customer experience-focused initiatives. Many non-retail businesses and predominantly brick-and-mortar retailers recognized the need for online presence to engage with consumers directly and enable them to easily purchase products and services on digital channels. As a result, retailers see ecommerce as a growth engine to increase their omnichannel revenue. According to Morgan Stanley, global ecommerce is expected to increase from $3.3 trillion today to $5.4 trillion in 2026.
Today’s consumers and shoppers expect ‘always-on experiences’ from ecommerce and mobile retail applications. Achieving a highly available, performant, resilient and stable ecommerce platform is critical to attract and retain consumers in today’s hyper competitive business world as only 1 in 40 visitors completes a purchase.
The checkout stage is the final stage in the sales funnel. However, only 1 in 3 customers at the checkout stage completes their purchase. Therefore, the checkout experience is the most critical, and retailers need to optimize accordingly.
Shopping carts represent one of the most important components of an ecommerce platform. Maximizing resiliency and latency of the ecommerce sessions are the two topics we’ll cover in this blog.
But first, what is a session?
A session is a period of time wherein a user interacts with an application. While the user is interacting with an app, this interaction data is stored both on the client side and on the server side to provide a connected user experience. On the client side, we store this data as cookies; on the server side, we call them sessions. For a seamless user experience, it’s important that these two separate data types are in sync.
Sessions are critical to provide personalized, consistent and seamless experience that helps move a customer through the sales funnel. If the server loses the data for a given session, it cannot provide a stable experience to the client. Therefore, it’s important to save and resurrect a session’s data for unhandled exceptions and server/zone/regional failures efficiently.
In a service-driven economy, session stability, scores, along with latency metrics, are the top two KPIs to monitor.
1- Stability/Resiliency
High Availability, Business Continuity and Disaster Recovery are and should be the critical terms for every ecommerce platform.
99% of uptime sounds pretty good. What about 99.9%?
Let’s detach ourselves from the illusion of the numbers and delve into the reality.
Per one year, 99% uptime equates to 87 hours, 40 minutes of downtime, and 99.9% uptime means 8 hours, 46 minutes downtime1. For Amazon, revenue loss for an hour is over $13M; for Walmart it is nearly $2.5M; for Wayfair it is $589k, and the list goes on. Practically, for every second the website is not 100% functional, it’s losing money. The picture is even more dramatic during the holiday season.
Every dollar spent on enhancing the session stability and resiliency is worthwhile, not only for the seamless customer experience but also for the bottom line.
99.999% uptime translates to only 5 minutes and 16 seconds of downtime in a year.
*Statistics listed here are theoretical numbers measuring a retail application’s uptime
2- Latency
If a single microservice becomes a bottleneck in the funnel, that delay defines the whole experience. The shopping cart, for example, is where the transaction happens – that’s the stage that deals with operational and transactional data. Any millisecond latency there, will translate into lost revenue and a poor customer experience. Since we’re in an era where “the fast eat the slow”, latency means losing to competitors.
Distributed applications require a distributed architecture so that they can serve up to their users wherever and whenever. Like CDNs, application servers, and database servers, session cache servers cannot be considered differently. They need to be distributed and located close to the application servers.
Why Redis Enterprise for your session store?
Redis is an in-memory database delivering multiple data models with best-in-class performance. It provides low latency and high throughput to support responsive applications and websites. Redis Enterprise provides performance that can increase the user experience and ensure retail applications and ecommerce websites are always fast and responsive.
Redis Enterprise provides persistence to endure server failures and is the only active-active geo-distributed Redis database based on Conflict-Free Replicated Data Types (CRDT) technology, which provides high availability and business continuity not only among zones but across regions. Redis Enterprise can manage conflicts from individual application servers, allowing customers to have a continuous and seamless multi-channel shopping experience.
Redis Enterprise Active-Active provides 99.999% availability.
Redis Enterprise can scale up capacity and performance in response to demand from real-time applications through its Redis Enterprise proxy, with no need to change application code and without downtime or disruption. By providing automated failure detection, failover, and cluster recovery, Redis Enterprise helps ensure that retailers can continue operating even after experiencing bursts of traffic during seasonal peaks or unexpected surges in demand.
By storing sessions on Redis Enterprise, sessions become more stable with less latency.
Solution Architecture