Samtrafiken logo

Building a Scalable Solution for Digital Ticket Distribution Using AWS with Samtrafiken

"Using serverless AWS, we were able to start our venture of digitizing tickets due to the latency benefits and ease of use.”

—Lotta Dorph, product owner, Samtrafiken

Samtrafiken developed a digital ticket distribution solution using AWS services, delivering a modern ticketing experience to travelers on Sweden’s national railway line. Samtrafiken coordinates ticketing for multimodal transport throughout the country’s 21 regions. To fulfill its mission of connecting all the public transportation entities, Samtrafiken needed a cloud solution that was scalable and simple to use. By using serverless AWS solutions, Samtrafiken maintains 99.99 percent uptime, reduces network latency, and boosts developer productivity.

Delivering a Seamless Travel Experience for Users
 
As a whole, the transportation industry continues to rely on a conventional infrastructure, which in many cases is hosted on premises and is not agile enough to keep up with changing business needs. Individually, Swedish PTAs increasingly have been implementing their own digital solutions, which has been a primary motivation for Samtrafiken to adopt serverless AWS technologies to connect all the digital tickets. “The issue with legacy systems is that they don’t provide the agility to create modern solutions for travelers,” says Lotta Dorph, product owner at Samtrafiken. “We wanted to be able to create smart tickets to streamline travel for everyone.”
Samtrafiken started using AWS in 2018 and is currently deploying a number of systems on AWS. One example is a support system for Trafiklab, which is Samtrafiken’s open platform for providing public transport data. Another example is a reference implementation of BoB, Samtrafiken’s ticketing standard. The BoB Standard is now used by almost all of Sweden’s 21 PTAs.
 
In response to the Stockholm PTA’s changes, Samtrafiken began work on a new digital ticket system in which the Stockholm PTA integrates seamlessly with the SJ application. Samtrafiken believes a successful integration with the ticket system in Stockholm proves that this service can be effectively expanded across the country. Samtrafiken aims to combine digital tickets in individual regions so that travelers can use digital tickets anywhere in the country. “We have high expectations because we want to be a role model in public transport,” says Kristian Dahlander, chief information officer at Samtrafiken. “It is our mission to support and develop a seamless ticket travel experience.”
 
Increasing Reliability and Availability Using Serverless AWS
 
Samtrafiken’s solution on AWS serves as a proxy server, working in the background to connect otherwise incompatible travel apps from SJ and the Stockholm PTA. “Our travelers have really high expectations,” says Thomas Ulveland, software engineer at Samtrafiken. “It’s critical that our ticketing system works seamlessly. When users are at the gates trying to activate a ticket, it should be really fast and always work.” The new digital ticketing system features backup protection and storage for tickets, which means that they can be retried on another application if necessary. To store the tickets, the company uses Amazon Aurora Serverless, an on-demand, autoscaling configuration for Amazon Aurora, a database that provides high performance and availability at global scale with full MySQL and PostgreSQL compatibility.
 
The improved scalability of using serverless AWS provides the potential for Samtrafiken to scale up to higher workloads as ticket volumes increase. Having AWS Availability Zones in the Europe region—particularly in Stockholm—also means that Samtrafiken can store data locally while reducing latency. “It would have been very challenging to do this without the cloud solution,” says Dorph. “Using serverless AWS, we were able to start our venture of digitizing tickets due to the latency benefits and ease of use.”
 
By using AWS Fargate, a serverless, pay-as-you-go compute engine that lets teams focus on building applications without managing servers, the development team reduces its operational burden and shifts those resources toward testing and development. Because developers don’t have to manage infrastructure, they can work independently and focus on improving the features of the solution. Using Terraform as an infrastructure-as-code tool, the team automatically provisions, manages, and updates its infrastructure on AWS. “The simplicity of using AWS makes it very convenient for us developers,” says Tobias Hägglund, software engineer at Samtrafiken. “Using AWS Fargate, we don’t have to deal with details of server configuration, we just specify CPU and memory.”
 
So far, travelers who are using the digital ticket in Stockholm have moved more lightly than before between local transport and SJ. They can travel with confidence, knowing that their tickets won’t cause them issues. By using AWS, the development team maintains high reliability and stability of its solution, with nearly 99.99 percent uptime. “Uptime is crucial to delivering a seamless experience on our applications,” says Ulveland. “We want to deliver on user expectations that tickets will work without issues at the gate.”

Shaping the Future of Travel in Sweden

With about 2,000 digital tickets in circulation in Stockholm, Samtrafiken aims to expand the seamless digital ticketing solution to all 21 PTAs across Sweden. By 2025, Samtrafiken plans to have connected all the existing systems. The infrastructure is in place, and the company is eager to integrate the rest of the country’s transportation network into its solution. This successful launch also sets the stage for future innovations that cater to all travelers’ needs.

“It’s important to show the public that we are ready, we want to expand the solution, and we believe very strongly in it,” says Dahlander.

Leading Cloud Innovators in Europe

Learn how leading organizations in Europe across industries trust AWS to drive innovation at every level of their business. 

AWS Customer Success Stories

Organizations of all sizes use AWS to increase agility, lower costs, and accelerate innovation in the cloud.

More Travel Customer Stories

Showing results: 1-4
Total results: 139

no items found 

  • Asia Pacific

    Korean Airlines on AWS

    In 2018, Korean Air began migrating its entire IT infrastructure to the cloud. Then in 2021, it became the first global, full-service carrier to complete an all-in migration to Amazon Web Services (AWS). As an innovator in the aviation industry, Korean Air chose to build on AWS, and it launched its new website and mobile app 90 percent faster than possible with its former on-premises infrastructure. Continuing to innovate on behalf of its customers and workforce, the airline is developing an online one-step buying option and AWS-powered machine learning tools to create predictive, pre-emptive maintenance for its aircraft fleet.
    2022
  • Australia

    Lonely Planet cut itinerary generation costs by 80% using Amazon Bedrock

    Lonely Planet, is a premier travel media company tested multiple generative AI solution vendors and found Amazon Bedrock to be 78% more cost-effective for their travel use case. Further to that, they were able to generate experiences and itineraries at 80% less the cost of manually curating them.
    2024
  • Americas

    United Airlines on AWS

    United Airlines is leading modernization in an industry that’s embracing change. The largest airline globally by number of seat miles, its mission is to “Connect People, Uniting the World.” Migrating tens of hundreds of applications to Amazon Web Services (AWS) has helped the business accelerate innovation, even in the midst of challenging market conditions. From supporting its technology team to save $2 billion and boosting developer productivity 40 percent, to using generative artificial intelligence (AI) to streamline passenger record processes and save months of manual effort. With services such as Amazon Bedrock, AWS IoT Core, and Amazon DocumentDB, United Airlines is transforming passenger experiences, increasing efficiency and security, and shaping the intelligent airport of tomorrow.
    2024
  • Canada

    Using Amazon AppStream 2.0 to Increase Scalability and Agility for Air Canada

    Learn how Air Canada in the travel industry gained scalability and reliability while optimizing costs by migrating its on-premises VDI to AWS.
    2024
1 35

Get Started

Organizations of all sizes across all industries are transforming their businesses and delivering on their missions every day using AWS. Contact our experts and start your own AWS journey today.