Settings

Theme

Show HN: Tonbo – an embedded database for serverless and edge runtimes

github.com

55 points by ethegwo 8 days ago · 16 comments

Reader

rubenvanwyk a day ago

How does it compare to https://slatedb.io/ ?

Seems similar ideas, although SlateDB seems a bit more lightweight and using Parquet as primitive (even using Arrow) might mean more compute-heavy on client-side?

  • pdyc a day ago

    from slatedb faq https://slatedb.io/docs/get-started/faq/

    >SlateDB is designed for key/value (KV) online transaction processing (OLTP) workloads. It is optimized for lowish-latency, high-throughput writes. It is not optimized for analytical queries that scan large amounts of columnar data. For online analytical processing (OLAP) workloads, we recommend checking out Tonbo.

brainless a day ago

Lovely project. Also @rubenvanwyk mentioned SlateDB. I am not sure if this will fit my use-case but, today, I was looking for data hosting options for a self-hosted LLM+bot for email/calendar.

I have this product I have tried and stopped before: https://github.com/pixlie/dwata and I want to restart it. The idea is to create a knowledge graph (use Gliner for NER). Compute would either be on desktop or cloud (instances).

Then store the data on S3 or Cloudflare Workers KV or AWS Dynamo DB and access with cloud functions to hook up to WhatsApp/Telegram bot. I may stick with Dynamo or Cloudflare options eventually though (both have cloud functions support).

I need a persistent storage of key/value data (the graph, maybe embedding) for cloud functions. Completely self-hosted email/calendar bot with LLM, own cloud, own API keys. Super low running cost.

WilcoKruijer 8 days ago

Sounds very interesting, but the README has me pondering the downsides. Is the latency very high? Are requests not immediately durable? Is it super expensive?

  • ethegwoOP 8 days ago

    Yes We'll provide a report to explain how we tradeoff these things, please stay tuned.

rubenvanwyk a day ago

License does not yet exist? Hope it’s Apache 2.

  • ethegwoOP 17 hours ago

    Yes it's Apache 2, thanks for pointing this out, I'll be fixing this.

  • niek_pas a day ago

    For some reason this post links to the dev branch on GitHub, if you switch to the main branch you will see the license file is indeed Apache 2.0.

spwa4 a day ago

This is so weird. If you're using this library

1) your serverless and edge runtime needs to have internet access, so it can contact anyone

2) you're obviously not going to be able to efficiently write to S3 while providing guarantees, so it'll be expensive

3) you're writing in rust, so you really care about correctness and efficiency

This seems like a contradiction. Why would you do this as opposed to hosting a redundant postgres on 2 Hetzner/OVH/... servers and writing to that?

  • ethegwoOP 17 hours ago

    Owner of Tonbo here. This critique makes sense in a classic web-app model.

    What's shifting is workloads. More and more compute runs in short-lived sandboxes: WASM runtimes (browser, edge), Firecracker, etc. These are edge environments, but not just for web applications.

    We're exploring a different architecture for these workloads: ephemeral, stateless compute with storage treated as a format rather than a service.

    This also maps to how many AI agent service want per-user or per-workspace isolation at large scale, without operating millions of always-on database servers.

    If you're happy running a long-lived Postgres service, Neon or Supabase are great choices.

    • spwa4 9 hours ago

      This makes no sense. DB connections have been part of the "short-lived sandbox" since the very beginning. CGI, PHP, ... all use database connections, and that's way faster and correcter (with proper transactions) than this approach.

      And you use Rust ... so you care about speed and correctness. This seems like a very wrong approach.

  • rglover a day ago

    Because the means have been given priority over the ends.

canadiantim a day ago

How big is the wasm?

  • ethegwoOP 17 hours ago

    It's currently 3MB, and we've done almost nothing to reduce the file size, so we can expect it to get even smaller.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection