Customer Stories / Financial Services / United States

2024
Marqeta logo

Marqeta: Scaling MySQL Databases to 256K IOPS and 64TB across Regions Using Amazon EBS

Learn how Marqeta, a global issuer of modern cards, increased the performance and availability of MySQL databases using AWS.

Over 2X

database IOPS limit, fixing replication flag

2X

database storage capacity limit

99.995%

projected service availability via multi-region

Elevated

engineer autonomy and productivity via infrastructure as code (IAC)

Overview

Card issuer Marqeta sought to increase database performance and capacity for its flagship offering that enables customers to build payment experiences. As the company scaled rapidly, existing databases were approaching their limits for input/output per second (IOPS) and storage. In response, the company engaged Amazon Web Services (AWS) to identify suitable cloud solutions. Marqeta migrated to Amazon Elastic Block Store (Amazon EBS) io2 Block Express volumes—a simple-to-use, scalable, high-performance block-storage service that is designed to deliver consistent, sub-millisecond latency in the cloud and 99.999 percent durability. The migration resulted in increased database IOPS and storage, provided the building blocks to implement multi-region, and boosted engineering productivity through on-demand infrastructure provisioning.

DSC

Opportunity | Using Amazon EBS io2 Block Express to Facilitate Marqeta’s Growth

Marqeta’s mission is to set the global standard for modern card issuing and processing. Partnering with leading mobile payment and delivery service companies, Marqeta focuses on simplifying payments for businesses with its innovative open-API solution. Customers can use the solution to customize virtual or physical cards, provision cards into digital wallets, and manage users all in one place.

Marqeta was launched in 2010, with primarily on-premises infrastructure during its early years. In 2018, Marqeta’s team started migrating from on-premises infrastructure to the cloud. By 2020, the majority of Marqeta’s databases ran on Amazon Relational Database Service (Amazon RDS), but some of the largest ones still ran on premises. As the company was experiencing a period of hyperscaling, the performance and availability of its databases needed to be improved to meet the requirements of its growing customer base. However, both the existing RDS and on-premises databases were approaching their IOPS and storage limits.

AWS solutions architects advised the company of the upcoming release of Amazon EBS io2 Block Express volumes. The volume specifications, at 256K IOPS and 64TB, met Marqeta’s performance and capacity requirements. After several rounds of prototyping and benchmarking, the volume specifications were validated. So, Marqeta began to migrate its most critical MySQL databases to Amazon Elastic Block Storage (Amazon EBS) io2 Block Express volumes.

“EBS io2 Block Express gave us the runway we needed to re-architect our application for scalability,” says Jason Zhao, principal engineer at Marqeta. “And it provided the building blocks to implement a multi-region architecture.”

kr_quotemark

The AWS experience has been key to solving our scaling problems quickly, providing the runway to invest in re-architecture.”  

Jason Zhao
Principal Engineer, Marqeta

Solution | Achieving Performance and High Availability Using AWS Solutions

After migrating the largest of its databases at the start of 2022, Marqeta saw significant improvements in that database’s overall performance and availability. Subsequently, the company migrated its remaining large databases to this new stack. The stack runs on Amazon EBS io2 Block Express volumes that are attached to EBS-optimized Amazon Elastic Compute Cloud (Amazon EC2) R5b Instances. To provide high availability and disaster recovery, Marqeta utilized multiple Availability Zones in the optimal regions for its database replicas. In 2023, Marqeta enhanced high availability and disaster recovery further by implementing multi-region architecture for its application and database stacks. Communication between its application stack and database stack is facilitated by Amazon Network Load Balancer (NLB) and ProxySQL. ProxySQL specifically handles the MySQL protocol.

2023 Multi-Region & Multi-AZ Infrastructure architectural map

As a provider of payment solutions that handles a high volume of transactions, Marqeta must uphold stringent uptime and accuracy standards. Since adopting the new solution, Marqeta has effectively mitigated database issues because of its improved IOPS performance, increased storage capacity, and multi-region high availability. “Since transitioning to EBS io2 Block Express, our on-call engineers no longer receive replication lag alerts, and we’ve mitigated the risk of hitting capacity limits,” says Zhao. “Also, since implementing multi-region, our availability number is projected to increase to 99.995%.”

Another notable outcome of this migration is that Marqeta no longer operates any database on premises. This boosts its platform engineering team’s autonomy and productivity. Previously, the team relied on other departments to provision infrastructure. The team now manages its entire stack end to end using infrastructure as code (IAC).

Outcome | Having the Runway to Design and Implement Monolith Decomposition

Next on Marqeta’s road map is the decomposition of its monolithic application and database. This is projected to be a multiyear project. “The AWS experience has been key to solving our scaling problems quickly, providing the runway to invest in re-architecture,” says Zhao. “Without it, navigating this would have been much harder.”

About Marqeta

Marqeta provides an open-API solution for card-issuing and card-processing services, empowering companies to build and embed financial services into their branded experience.

AWS Services Used

Amazon EBS io2 Block Express volumes

Amazon Elastic Block Store (Amazon EBS) is an easy-to-use, scalable, high-performance block-storage service designed for Amazon Elastic Compute Cloud (Amazon EC2). EBS io2 Block Express volumes are designed to deliver per volume performance of up to 4,000 MB/s throughput, 256,000 IOPS, 64 TiB storage capacity, and 1,000 IOPS/GB, as well as 99.999% durability and sub-millisecond latency.

Learn more »

Amazon EC2

Amazon Elastic Compute Cloud (Amazon EC2) offers the broadest and deepest compute platform, with over 700 instances and choice of the latest processor, storage, networking, operating system, and purchase model to help you best match the needs of your workload.

Learn more »

Elastic Load Balancing

Elastic Load Balancing (ELB) automatically distributes incoming application traffic across multiple targets and virtual appliances in one or more Availability Zones (AZs).

Learn more »

More Financial Services Customer Stories

no items found 

1

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.