112 releases (21 breaking)

new 0.22.0 Dec 13, 2024
0.20.0 Dec 2, 2024
0.19.0 Nov 20, 2024
0.11.5 Jul 30, 2024
0.5.0 Mar 29, 2024

#412 in Database interfaces

Download history 534/week @ 2024-08-23 450/week @ 2024-08-30 670/week @ 2024-09-06 328/week @ 2024-09-13 875/week @ 2024-09-20 1025/week @ 2024-09-27 418/week @ 2024-10-04 331/week @ 2024-10-11 774/week @ 2024-10-18 182/week @ 2024-10-25 281/week @ 2024-11-01 167/week @ 2024-11-08 207/week @ 2024-11-15 196/week @ 2024-11-22 307/week @ 2024-11-29 251/week @ 2024-12-06

971 downloads per month
Used in tembo-cli

Apache-2.0

68KB
1.5K SLoC

Tembo Stacks

Tembo Stacks are pre-built use-case-specific Postgres deployments which are optimized and tuned to serve a specific workload. They are a replacement for other databases which you consider because you don’t know how to solve that problem with Postgres.

Why Stacks?

Adopting a new database adds significant complexity and costs to an engineering organization. Organizations spend a huge amount of time evaluating, benchmarking or migrating databases and setting up complicated pipelines keeping those databases in sync.

Most of these use cases can be served by Postgres, thanks to its stability, feature completeness and extensibility. However, optimizing Postgres for each use case is a non-trivial task and requires domain expertise, use case understanding and deep Postgres expertise, making it hard for most developers to adopt this.

Tembo Stacks solve that problem by providing pre-built, use case optimized Postgres deployments.

A tembo stack is a pre-built, use case specific Postgres deployment which enables you to quickly deploy specialized data services that can replace external, non-Postgres data services. They help you avoid the pains associated with adopting, operationalizing, optimizing and managing new databases.

Name Replacement for
OLTP Amazon RDS
OLAP Snowflake, Bigquery
Machine Learning MindsDB
Message Queue Amazon SQS, RabbitMQ, Redis
Data Warehouse Snowflake, Bigquery
Mongo Alternative on Postgres MongoDB
Geospatial ESRI, Oracle
Vector DB Pinecone, Weaviate
Time Series InfluxDB, TimescaleDB
Standard Amazon RDS

We are actively working on additional Stacks. Check out the Tembo Roadmap and upvote the stacks you'd like to see next.

Anatomy of a Stack

A stack consists of a number of components that are optimized for a particular use case. A stack includes:

  • Docker Base Image containing a particular version of Postgres.
  • Curated Set of extensions which turn Postgres into best-in-class for that workload.
  • Hardware (CPU::Memory ratios, Storage tiers) optimized for the workload.
  • Postgres configs optimized according to hardware and use cases.
  • Use case specific metrics, alerts and recommendations.
  • On-instance application deployments to add additional tools required for the use case.

Generating a CoreDB Spec from a Stack Spec

For local development purposes, you can generate a CoreDB spec for any Stack spec.

cargo run -- --stack VectorDB --name my-resource --pg-version 16
Wrote to spec: my-resource-VectorDB-coredb.json

Then apply the generated spec to a Kubernetes cluster:

kubectl apply -f my-resource-VectorDB-coredb.json

Dependencies

~86MB
~1.5M SLoC