108 releases (18 breaking)

new 0.19.0 Nov 20, 2024
0.18.4 Oct 25, 2024
0.11.5 Jul 30, 2024
0.5.0 Mar 29, 2024

#357 in Database interfaces

Download history 702/week @ 2024-07-29 161/week @ 2024-08-05 240/week @ 2024-08-12 515/week @ 2024-08-19 422/week @ 2024-08-26 761/week @ 2024-09-02 392/week @ 2024-09-09 265/week @ 2024-09-16 1015/week @ 2024-09-23 1200/week @ 2024-09-30 259/week @ 2024-10-07 573/week @ 2024-10-14 497/week @ 2024-10-21 156/week @ 2024-10-28 188/week @ 2024-11-04 155/week @ 2024-11-11

1,046 downloads per month
Used in tembo-cli

Apache-2.0

70KB
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

~85MB
~1.5M SLoC