Avios

Building resilient middleware for seamless loyalty point exchange

Cost savings

By leveraging AWS serverless services, IAGL benefits from a pay-as-you-go model that reduces operational costs while maintaining high performance.

Fast and reliable platform

The new middleware, particularly with DynamoDB, delivers low-latency performance and resilience during peak traffic.

Elastic scalability

The system scales automatically in line with order volumes, ensuring seamless performance as new brands and products are onboarded.

SITUATION

Overview

IAG Loyalty (IAGL), the loyalty division of International Airlines Group (IAG), manages programs such as Avios and works with travel and retail partners to create ecosystems where points can be collected and redeemed. A growing part of this offering is loyalty commerce, where customers can use Avios points to purchase products via IAGL's own online stores.

As part of this, IAGL launched The Wine Flyer, an online store built on BigCommerce that enabled customers to spend Avios points on wines, beers, and spirits, with delivery direct to their door. To power the store, a custom middleware application was developed on Google Cloud Platform to handle the exchange of loyalty points between the customer and the e-commerce platform, as well as to enable single sign-on with Avios accounts.

However, the middleware became a source of friction. Delays in point transfers, occasional missing balances, and the lack of real-time processing not only disrupted the customer journey but also placed additional strain on IAGL’s customer service teams. The architecture lacked resilience, scalability, and observability, making it unsuited to support IAGL’s long-term vision of expanding loyalty commerce across multiple storefronts and brands.

Following an architectural review, Leighton recommended replatforming the middleware on AWS using native, serverless services to improve reliability, resilience, and cost efficiency. After a successful replatforming of The Wine Flyer, IAGL extended this approach to the new Avios Shop, where the middleware was re-architected from the ground up to be fully brand-agnostic. This ensured it could serve as a central, scalable integration layer for additional storefronts and product ranges in the future, enabling IAGL to expand its loyalty commerce ecosystem with confidence.

Solution

Building a resilient, brand-agnostic middleware layer

To deliver seamless and scalable loyalty point exchanges within the Avios Shop, Leighton designed and built a new middleware application on AWS. Acting as the central integration layer between the Avios loyalty platform, the e-commerce storefront, and the bespoke order management system (OMS), the middleware ensured every points transaction and order flow is processed securely, reliably, and in real time.

Replatforming for performance, reliability and scalability

The legacy GCP middleware introduced delays, missing points, and limited scalability. Leighton replatformed the solution to AWS, adopting a serverless, microservices-based architecture. Critical services such as points calculation, customer authentication, and transaction validation were implemented as AWS Lambda functions, delivering faster performance and lower operational costs. DynamoDB provided an elastic, low-latency database optimised for high-throughput transactions.

To improve transaction speed and reduce errors, modern RESTful APIs were introduced with built-in error handling and retry mechanisms. Observability and monitoring were embedded from the outset through Datadog dashboards, CloudWatch alarms, and structured logging with AWS Lambda Powertools. Security and compliance were strengthened with tools such as Snyk, Sonar, and AWS CDK Nag to ensure robust data protection and code quality.

Designed for future growth

Unlike the Wine Flyer’s bespoke middleware, the new implementation was engineered to be fully brand-agnostic. By introducing API Gateway as a single integration layer, the middleware now connects Avios, BigCommerce, the storefront, and the OMS consistently and securely. This means IAGL can easily onboard new brands and storefronts without re-architecting, providing the flexibility to scale their loyalty commerce ecosystem as new products and partners are introduced.

Tech stack

The middleware was built using a modern, serverless architecture on AWS. By combining cloud-native services with industry-leading development and monitoring tools, the solution delivers high performance, elastic scalability, and strong security while keeping operational overheads low.

BigCommerce
AWS Lambda
AWS DynamoDB
Amazon CloudFront
Amazon API Gateway
Node.js
Amazon EventBridge
TypeScript
Datadog
Amazon SQS
Snyk
SonarCloud
AWS CDK
IMPACT

Seamless point exchange and future expansion

The new middleware has transformed IAGL’s ability to support loyalty commerce at scale. By replatforming to AWS and adopting a fully serverless, event-driven architecture, Leighton delivered a cost-effective solution that ensures the seamless, real-time transfer of Avios points. This removed the issues of delayed or missing points and dramatically reduced the burden on customer service teams, while giving IAGL the confidence that their systems could scale elastically in line with customer demand.

Equally important, the middleware was engineered to be brand-agnostic. Instead of being locked to a single storefront, IAGL can now easily extend the same solution to new shops and product categories, accelerating time-to-market for future loyalty initiatives. This flexibility has created a robust foundation for IAGL’s long-term strategy of expanding the Avios ecosystem across multiple e-commerce offerings.

Enhanced observability, proactive monitoring, and strengthened security controls have further improved operational reliability. With tools like Datadog dashboards, CloudWatch alarms, and Snyk integrated into the build, IAGL can track issues in real time, enforce best practices, and maintain compliance, all while keeping operational costs low.

  • Cost savings

    By leveraging AWS serverless services, IAGL benefits from a pay-as-you-go model that reduces operational costs while maintaining high performance.

  • Fast and reliable platform

    The new middleware, particularly with DynamoDB, delivers low-latency performance and resilience during peak traffic.

  • Elastic scalability

    The system scales automatically in line with order volumes, ensuring seamless performance as new brands and products are onboarded.

  • Seamless point exchange

    Real-time integrations ensure Avios loyalty points are exchanged instantly and accurately, significantly reducing customer issues and support overhead.

  • Improved observability

    Dashboards, alarms, and structured logging mean potential issues are identified and resolved proactively, before they impact the customer experience.

  • Future-proofed for growth

    As a brand-agnostic solution, the middleware supports the onboarding of additional storefronts, ensuring flexibility for IAGL’s long-term roadmap.

  • Enhanced security

    Best practices and tools such as Snyk and AWS CDK Nag strengthen compliance and guard against vulnerabilities.

Similar case studies
From proof of concept to scalable storefront: the new Avios Shop
Avios
View case study
Mock up of the Avios Shop displayed on a Macbook. Mockup shows Avios Shop basket page.
Delivering a serverless OMS for multi-brand fulfilment at scale
Avios
View case study
Smart phone showing loyalty points being redeemed
Unlocking scalable growth: a blueprint for success
The Wine Flyer
View case study
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.