Customer Stories / Software & Internet / United States

ClickHouse Logo

Optimizing Costs and Time to Market for CI/CD Using Amazon EC2 Spot Instances with ClickHouse

Learn how the creators of open-source, column-oriented database ClickHouse developed and released ClickHouse Cloud in 1 year using AWS.

1 year to launch

ClickHouse Cloud


product features on a monthly basis

Acquired new

paying customers


compute costs


ClickHouse was first launched as an open-source, column-oriented database management system, and it grew in popularity for its lightning-fast, near-real-time online analytical processing. ClickHouse was originally developed for self-managed deployment, meaning that developers who used the solution had to set up their own infrastructure. Recognizing the high demand, the company wanted to empower developers to use ClickHouse without needing infrastructure expertise. In 2021, ClickHouse Inc. officially incorporated with the ultimate goal of launching a software-as-a-service (SaaS) solution for running ClickHouse at scale.

ClickHouse Inc. set an aggressive 1-year deadline to launch ClickHouse Cloud. Although its teams were working on tight deadlines, ClickHouse Inc. wanted to release a feature-rich product while maximizing cost efficiency. The company decided to develop its SaaS offering using Amazon Web Services (AWS). To accelerate product development, the company’s developers containerized their workloads, helping them to optimize compute costs and release new features every month. Since its release, ClickHouse Cloud has been adopted by companies across the globe, from advertising technology to vehicle automation.

Two Businesspeople Examining Graph On Computer

Opportunity | Using Amazon EKS to Accelerate Product Development

Released as an open-source project in 2016, ClickHouse started as a database solution launched for analytical workloads. Its column-oriented system gives users the ability to aggregate and query massive volumes of data in milliseconds, delivering results 100–1,000 times faster than traditional databases. “Whenever you want to collect data—like events, metrics, logs, or user behavior—and analyze it in near real time, ClickHouse is an optimal solution,” says Alexey Milovidov, cofounder and chief technology officer at ClickHouse Inc.

Developers can use ClickHouse Inc.’s open-source solution for free, but they must build their own infrastructure to support near-real-time processing of analytics. As ClickHouse became more popular, the company recognized the demand for a fully managed alternative. “Time to market is very important for developers and new startups,” says Tanya Bragin, vice president of product at ClickHouse Inc. “They want to start consuming a service that offers them the speed and efficiency of ClickHouse without having to build a backend themselves.” This demand led the company to conceptualize ClickHouse Cloud.

The team set a 1-year deadline to develop this new product. “It was clear that our first place to go was AWS in terms of where we would host our offering,” says Bragin. “We didn’t want to build anything from scratch. We had to use off-the-shelf services from AWS to accomplish our goal within 1 year.” To identify which AWS services to use, ClickHouse Inc. engaged AWS Enterprise Support, which provides enterprises with concierge-like service for achieving their outcomes and finding success in the cloud.


By using Amazon EKS, we were able to shave the timeline for this project by a quarter.”

Roopa Tangirala
Senior Director, ClickHouse Inc.

Solution | Unlocking Cost Savings by 72% with Amazon EC2 Spot Instances and AWS Savings Plans

ClickHouse Inc. collaborated alongside AWS Enterprise Support to deliver a high-performing, fully managed product to help its customers accelerate their time to market. ClickHouse Inc. decided to run all the infrastructure for its SaaS offering using Amazon Elastic Kubernetes Service (Amazon EKS), a managed Kubernetes service to run Kubernetes in the AWS Cloud and on-premises data centers. To maintain high availability on its SaaS offering, the company’s developers configured 20 clusters that run across seven AWS Regions using Amazon EKS. The team also containerized the workloads on its continuous integration and continuous delivery (CI/CD) pipeline, freeing its developers from infrastructure maintenance. “By using Amazon EKS, we were able to shave the timeline for this project by a quarter,” says Roopa Tangirala, senior director at ClickHouse Inc. “Otherwise, we would’ve had to hire more engineers.”

One of the company’s goals while developing ClickHouse Cloud was to offer a free private preview to 50 users. To do so, ClickHouse Inc. needed to optimize and track its cloud costs. “We spent a lot of time thinking about how we would charge our customers for this new offering,” says Bragin. “Having deeper conversations with the AWS team about how other companies operate within our space gave us the comfort that we were getting the best advice that we could find.”

To offer ClickHouse Cloud at a competitive price point, the company reduced the cost of running its SaaS offering on Amazon EKS by signing up for Savings Plans, a flexible pricing model that can save up to 72 percent compared to On-Demand prices. “We were expecting pretty significant growth, especially in terms of compute and storage usage,” says Bragin. “Forecasting our capacity on the compute side was critical in managing our spend.”

The company’s team of developers agreed on monthly deadlines for delivering product features. ClickHouse Inc. knew that its CI/CD pipeline needed to scale accordingly while staying within budget. So the AWS Enterprise Support team recommended that ClickHouse Inc. run its pipeline using Amazon Elastic Compute Cloud (Amazon EC2) Spot Instances, giving its team the ability to take advantage of unused Amazon EC2 capacity to run fault-tolerant workloads at up to 90 percent off compared to On-Demand prices.

ClickHouse Inc. also chose Spot Instances because they are designed for various stateless, fault-tolerant, and flexible applications, such as big data, containerized workloads, web servers, CI/CD applications, high-performance computing, and test and development workloads. ClickHouse Inc. combined its use of Spot Instances with AWS Graviton processors, which are designed for optimal price performance for cloud workloads running in Amazon EC2. Every day, ClickHouse Inc. performs up to 12 million functional tests on the company’s CI/CD pipeline, which helps its teams review and merge more than 800 contributions to its code base each month.

Outcome | Sustaining Customer Growth on AWS

ClickHouse Inc. held a private preview for ClickHouse Cloud in May 2022 and a public beta the following October. Despite the demand, ClickHouse Cloud scaled seamlessly. “We had thousands of people show up, which was a huge bump in our activity,” says Bragin. “My expectations for the reception were completely blown out of the water.” By December 2022, ClickHouse Inc. had met its 1-year deadline and began offering ClickHouse Cloud to the public.

Because individual users often generate petabytes of data using ClickHouse Cloud, the company plans to adopt Amazon Simple Storage Service Intelligent-Tiering (Amazon S3 Intelligent-Tiering), which automates storage cost savings by moving data when access patterns change. “We’re in heavy growth mode,” says Bragin. “Using AWS, we can build a reliable, scalable infrastructure that can sustain that growth.”

About ClickHouse Inc.

Founded in 2021, ClickHouse Inc. offers an open-source, column-oriented database designed for analytical workloads. Its column-oriented system delivers query results 100–1,000 times faster than traditional databases.

AWS Services Used

Amazon EKS

Amazon Elastic Kubernetes Service (Amazon EKS) is a managed Kubernetes service to run Kubernetes in the AWS cloud and on-premises data centers.

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 »

AWS Enterprise Support

AWS Enterprise Support provides you with concierge-like service where the main focus is helping you achieve your outcomes and find success in the cloud.

Learn more »

AWS Graviton Processor

AWS Graviton processors are designed by AWS to deliver the best price performance for your cloud workloads running in Amazon EC2.

Learn more »

More Software & Internet Customer Stories

no items found 


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.