explaingit

rdarrylr/aws-vector-hosting-comparison

Analysis updated 2026-05-18

0PythonAudience · developerComplexity · 4/5Setup · hard

TLDR

A benchmark tool that loads the same data into four AWS-compatible vector stores, measures real query speed, and estimates monthly costs at different scales so you can pick the right one.

Mindmap

mindmap
  root((vector hosting))
    What it does
      Loads same data
      Benchmarks latency
      Estimates cost
      Compares 4 stores
    Tech stack
      Python
      Terraform
      AWS Bedrock
      Aurora pgvector
    Use cases
      Choosing a vector store
      Cost projection
      Ongoing benchmarking
    Audience
      Backend developers
      AI infra teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Compare real latency across S3 Vectors, OpenSearch Serverless, Aurora pgvector, and Pinecone before choosing one for a project.

USE CASE 2

Estimate monthly hosting costs for a vector database at 10 million, 100 million, or 1 billion vectors.

USE CASE 3

Plug your own traffic numbers into the cost calculator without provisioning any AWS resources.

USE CASE 4

Run a recurring automated benchmark to track vector store performance trends over time.

What is it built with?

PythonTerraformAWSAurora pgvector

How does it compare?

rdarrylr/aws-vector-hosting-comparison0xhassaan/nn-from-scratch3ks/embedoc
Stars00
LanguagePythonPythonPython
Last pushed2023-06-08
MaintenanceDormant
Setup difficultyhardmoderatehard
Complexity4/54/51/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires an AWS account, Bedrock model access, and Terraform to provision real cloud infrastructure.

No license information was found in the README, so usage rights are unclear.

In plain English

This project is a hands-on cost and speed comparison tool for teams trying to decide where to store vector embeddings on AWS. Vector embeddings are the numeric representation of text or images that AI search and recommendation systems rely on, and there are several different places you can store them, each with its own pricing and performance tradeoffs. This repository sets up four of those options at once, Amazon S3 Vectors, Amazon OpenSearch Serverless, Aurora PostgreSQL with pgvector, and Pinecone, so you can measure them side by side instead of guessing. It loads the same 50,000 sample embeddings into all four stores, runs the same search queries against each, and records real response time measurements. It then prints an estimated monthly bill for each option at three different scales, from 10 million to 1 billion vectors, across six typical usage patterns. There is also a standalone cost calculator that works without touching AWS at all, so you can plug in your own expected traffic numbers and see projected costs before committing to a store. Everything needed to set this up is included: a Terraform configuration to create the AWS infrastructure, and Python scripts to generate the embeddings, load them, and run the benchmark. A Makefile ties the whole workflow together with simple commands like build, load data, run benchmark, and tear everything down. Pinecone is optional and can run entirely on its free tier for this demo. Running the full comparison once, at the 50,000 vector scale used in the demo, is expected to cost well under one US dollar in AWS charges. The project also sets up an automated benchmark that reruns every six hours if you leave the infrastructure running, useful for tracking performance trends over time rather than a single snapshot. This is written in Python and is companion code to a blog post explaining the same comparison in more detail.

Copy-paste prompts

Prompt 1
Walk me through running the Quick Start commands to provision and benchmark all four vector stores in this repo.
Prompt 2
Explain the pricing differences between S3 Vectors, OpenSearch Serverless, Aurora pgvector, and Pinecone based on this project's cost model.
Prompt 3
How do I use the standalone cost calculator to estimate my own workload's monthly vector storage bill?
Prompt 4
What AWS permissions and prerequisites do I need before running make apply in this project?

Frequently asked questions

What is aws-vector-hosting-comparison?

A benchmark tool that loads the same data into four AWS-compatible vector stores, measures real query speed, and estimates monthly costs at different scales so you can pick the right one.

What language is aws-vector-hosting-comparison written in?

Mainly Python. The stack also includes Python, Terraform, AWS.

What license does aws-vector-hosting-comparison use?

No license information was found in the README, so usage rights are unclear.

How hard is aws-vector-hosting-comparison to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is aws-vector-hosting-comparison for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.