Quack: The DuckDB Client-Server Protocol

(duckdb.org)

63 points | by aduffy 2 hours ago ago

8 comments

  • ozgrakkurt a minute ago

    > It would be rather misguided not to build a database protocol on top of HTTP in 2026

    This is wrong, HTTP is bad for transferring large amount of data and it is also bad for doing streaming.

    It is bad for large amount of data because you have timeout issues on some clients, you hit request/response size limits etc.

    It is obviously bad for streaming as there is no concept of streaming in it.

    It is comical to go the path of least resistance so lazy people can put a reverse proxy on top of it. And then say HTTP is the only relevant way to do it in 2026.

    The benchmark doesn't seem to mean much as TCP can max out 50GB/s on a single thread. Pretty sure it can do more than that even. So you could be using anything that isn't terrible and you should get max performance out of this.

    Also the protocol is something else from the format. For example if you are transferring mp4 over ftp and http you can compare that.

    If you are transferring different things over different protocols then the comparison means nothing.

    The benchmark graph for bulk transfer should show more granularity so it is possible to understand how much of the % of the hardware limit it is reaching. Similar to how BLAS GEMM routines are benchmarked based on the % of theoretical max flops of the hardware.

    > 60 million rows (76 GB in CSV format!)

    This reads a bit disingenuous.

    It is dissappointing to see this instead of something like PostgreSQL protocol with support for a columnar format.

  • simlevesque 41 minutes ago

    I like DuckDB but I'm not sure what it wants to be. There's always new ways to use it and it's not easy to see what's the right one.

    • Lemaxoxo 34 minutes ago

      +1

      I can't think of many use cases for this and Arrow Flight, other than moving data around.

      • twoodfin 16 minutes ago

        The use case is local user DuckDB talking to MotherDuck for $.

        This is not commercially a terrible idea. Why keep paying Snowflake for bog-standard SQL query workload when SF makes it easy to migrate to Iceberg & commodity engines like MotherDuck?

        • szarnyasg 8 minutes ago

          Hello, DuckDB DevRel here. Quack is independent from MotherDuck. MotherDuck has its own proprietary protocol, which has been around for years and it supports things like dual execution – see more here:

          https://duckdb.org/quack/faq#what-is-the-relationship-betwee...

          Of course, in the future MotherDuck can also support Quack, but this is not the only interesting use case for Quack.

          • twoodfin 2 minutes ago

            Sure! Not knocking the architecture: Building out peer-to-peer federation in place of client/server makes perfect sense for DuckDB. And I’m a big fan of owning the protocol so you can optimize it to internal structures.

            Just making the point that DuckDB is disruptive technology & what it’s most likely to disrupt.

    • whalesalad 9 minutes ago

      Our data pipeline produces .duckdb files that our app downloads (it watches the asset in S3 and pulls when etag changes). Makes it easy to get BQ/Clickhouse like performance without running or paying for that infrastructure. Not perfect for all cases, but it handles a lot more than you would expect.

  • NortySpock 11 minutes ago

    Sounds useful for small-ball internal analytics datasets you want to place on shared team server.

    I can definitely see exploring this for some homelab use.