VOOZH about

URL: https://thenewstack.io/6-key-lessons-building-a-cloud-vector-db-from-scratch/

⇱ 6 Key Lessons: Building a Cloud Vector DB from Scratch - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-03-08 09:30:38
6 Key Lessons: Building a Cloud Vector DB from Scratch
sponsor-zilliz,sponsored-post-contributed,
Cloud Services / Data / Open Source

6 Key Lessons: Building a Cloud Vector DB from Scratch

Examine six lessons we learned building a cloud service with an open source vector database in just six months.
Mar 8th, 2024 9:30am by James Luan
👁 Featued image for: 6 Key Lessons: Building a Cloud Vector DB from Scratch
Featured image by Mick Haupt on Unsplash.
Zilliz sponsored this post.

We recently embarked on a six-month journey of building a vector database cloud service at Zilliz. In part 1 of this series, I delved into our design objectives and provided an overview of our final architecture.

Here I want to highlight some of our key insights and lessons learned along the way. My aim is to offer valuable takeaways that may assist you as you navigate the process of building your own Software as a Service (SaaS) solution.

1. Recognize the Cloud’s Limitations

Even with cloud native systems like Milvus, transitioning to cloud SaaS poses significant challenges. It extends beyond a simple deployment on Amazon Web Services (AWS) Elastic Compute Cloud (EC2) and Elastic Block Store (EBS). Open source database users must have a deep understanding of product intricacies to achieve horizontal scaling, fault recovery and performance optimization through meticulous knob tuning. The true challenge with cloud services lies in streamlining operations while maintaining high reliability and elasticity. Addressing specific constraints of the cloud environment, such as Amazon Simple Storage Service (S3) rate limits and limitations on OpenAPI call frequency, is crucial to fully capitalize on the elasticity and scalability potential of cloud computing.

2. Roll Out Features Carefully

While continuously adding new features in the product’s early stages may seem like the right thing to do to attract customers, prioritize addressing users’ genuine pain points. Maintaining a lead time of approximately six months for open source product features over the SaaS version is a good compromise. This lead time helps ensure that these features undergo thorough testing and improvement before being rolled out for service provision.

3. Set Appropriate Limits

No product is flawless. Take S3, for example. Despite its sleek interface and extensive refinement, developers can maximize its value only in certain situations. Unlike the freedom open source products have, SaaS products require stricter safeguards and constraints. These constraints form an integral part of the product and serve as guidance and education for users. Reasonable limitations can steer users toward smarter product usage, enhancing overall value and user experience.

4. Choose Cloud-Agnostic Dependency Services

Considering the adoption of cloud-agnostic services like S3, EC2 and Kubernetes, managed services (which are widely available across major cloud platforms) can offer substantial benefits in terms of cost reduction and simplification of multicloud adoption complexities. Alternatively, opting for SaaS services that inherently support multicloud usage can streamline the process. Despite potential variations in implementation among different cloud service providers, early establishment of a multicloud adaption layer can effectively minimize redundant development efforts and enhance overall efficiency.

5. Focus on Cloud FinOps

In the public cloud, seemingly affordable resources can unexpectedly result in high costs. For instance, before conducting a bill analysis, we did not anticipate that network bandwidth costs might comprise a significant portion of overall expenses. To optimize costs and maximize performance, it’s essential to understand the performance of different instance types and services thoroughly. For example, each AWS gp3 cloud disk offers 3,000 input/output operations per second (IOPS); bundling multiple disks on a single machine and configuring RAID can substantially increase disk throughput, thereby avoiding hefty bills for additional IOPS.

6. Recognize the Significance of OpenAPI

The growing adoption of artificial intelligence (AI) agents means the role of OpenAPI and related documentation is increasingly important. Traditional cloud services rely on web consoles and graph interfaces to deliver functionality, but the future interaction and integration of cloud services will increasingly depend on OpenAPI. Service automation, agent-friendliness and observability have become pivotal evaluation criteria for future cloud services.

Wrapping Up

I hope sharing our experiences will help developers who are starting their own journey of building a SaaS. Looking back, I am proud that our team did a lot and also got the chance to learn along the way, which made it even more fulfilling.

If you want to chat about your experience or learn more, connect with me on GitHub or LinkedIn. If this kind of work sounds interesting to you, check out our careers page and come join us! We will have plenty more projects like this ahead of us!

Zilliz is a leading vector database company, offering high-performing and scalable solutions. We’re powered by Milvus, the popular open-source vector database that helps companies from any scale build AI-powered search solutions.
Learn More
TRENDING STORIES
James Luan is the vice president of engineering at Zilliz. With a master's degree in computer engineering from Cornell University, he has extensive experience as a database engineer at Oracle, Hedvig and Alibaba Cloud. James played a crucial role in...
Read more from James Luan
Zilliz sponsored this post.
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
👁 Image
Milvus Lite, a lightweight version of the open source vectorDB Milvus, installs easily & integrates with 20+ AI tools.