6 min Devops

AI agents pick DuckDB, so AWS is making DuckDB very important

AI agents pick DuckDB, so AWS is making DuckDB very important

DuckLabs is a relatively small startup based in Amsterdam, but shortly after its acquisition by AWS, it has already had a massive impact on the much larger American company. AWS is adding DuckDB, DuckLabs’ embedded analytical engine, to its own query service, Amazon Athena. But that’s not the end of it. The goal is to make DuckDB SQL the universal language for all analytics within AWS.

AWS’s acquisition of DuckLabs last summer was a very well-considered decision. Andy Warfield, VP and Distinguished Engineer at AWS ( who has previously been a guest on our podcast), has described in detail how the acquisition came about. During discussions between AWS and DuckLabs founders Hannes Mühleisen and Mark Raasveldt, a conviction emerged. They believed that what DuckLabs had developed was a good fit for what AWS was working on and looking for.

At DuckLabs, the DuckDB open-source project stands out the most. It is a highly successful in-process analytics data management tool that has surged toward 100 million downloads per month over the past year. In addition, DuckDB Scales, a distributed version of DuckDB, was launched this week. With Quack and DuckLake, the company has also built a client-server protocol for DuckDB and a lakehouse, respectively. DuckLabs uses a PostgreSQL-inspired query language.

Universal engine for AWS

It became clear this week at re:Invent that AWS was, and remains, deadly serious about DuckLabs and DuckDB. The company plans to make DuckDB the foundation for all the analytics services it offers. The first is Amazon Athena, a query service, but AWS has already announced that the cloud data warehouse Amazon Redshift and the big data platform Amazon EMR will soon follow. Even more services will come in the future.

All in all, DuckDB is becoming the universal engine for all AWS analytics services. These services are all being rebuilt on top of DuckDB, so to speak. DuckDB SQL is becoming the universal language. This is undoubtedly a major impact that DuckLabs has had on the massive AWS ecosystem in a short period of time.

What is DuckDB?

You might now think that DuckDB, the project that started it all for DuckLabs (until last summer, the company was actually called DuckDB Labs), is a hugely revolutionary new database designed to make data available to other tools and applications. But that’s not really the case, according to Mühleisen. It’s more of a different way of looking at the same problem and developing closer to the hardware.

The goal of the research project that Mühleisen launched together with Raasveldt at the Center for Mathematics and Computer Science (CWI) in Amsterdam about eight years ago was primarily to develop a simple and fast database that could operate in-process. The main goal was to eliminate the complexity associated with client-server systems. In addition, DuckDB makes much better use of available resources because the code was developed to run very close to the CPUs and similar hardware.

Meanwhile, DuckLabs has developed a client-server protocol with the open-source project Quack, but that is not part of DuckDB, it’s more of a plugin. The core of DuckDB is, in principle, still the same as it was at the beginning. Perceptions change over time anyway. For example, despite its name, Mühleisen now prefers to refer to DuckDB not as a database, but as a data wrangling tool.

Amazon Athena on DuckDB shows what’s possible

Claiming that a database (or data wrangling tool, if you will) is more efficient and performs much better than all legacy solutions on the market is one thing; it still has to be proven. The initial results from the new version of the Amazon Athena query service are undoubtedly impressive. Athena now processes queries twice as fast as version 3 of Athena. When looking at queries larger than 100GB, the cost is cut in half.

These are important initial results, because with the ever-increasing use of AI agents, the number of queries will also grow exponentially. These agents fire off multiple queries against data and typically process all the resulting data before proceeding further. Costs can then rise quite rapidly. However, if AI agents perform these tasks quickly and efficiently, they should be able to arrive at the correct answer faster. For example, they can use some of the “saved” time and costs to correct their own errors.

DuckDB scales: DuckDB, but on a larger scale

The first new announcement from AWS since the acquisition of DuckLabs indicates that DuckDB’s development is far from over. DuckDB was initially developed to get the most out of a single server. That’s why it was designed so closely around the hardware. As a result, DuckDB rarely had to split tasks.

As we’ve noted, this approach has its advantages. However, there’s also a drawback: there’s a limit to the size of the dataset with which efficiency and performance can be achieved. With DuckDB Scales, Amazon Athena can now query even the largest datasets. This plugin enables the query to run across multiple servers simultaneously.

In addition to the ability to scale DuckDB, we also find it interesting that this is a plugin. The core of DuckDB remains the same; DuckDB Scales is only deployed when necessary. What actually happens is that one instance of DuckDB runs on each server, after which the results are combined. That wasn’t possible before.

DuckDB Scales naturally results in a slightly more intensive workload, if only because the results must be combined. Since it’s only used when necessary, all single-server queries can still benefit from the same advantages.

DuckDB Scales will be released as open source when the new version of Athena becomes generally available (sometime in 2027).

MIT license, hosted by a foundation (and it will remain that way)

It’s good to know, and something Mühleisen also emphasized, that AWS didn’t so much acquire DuckDB as it did the company DuckLabs. As part of the acquisition, both parties have therefore emphasized that DuckLabs’ projects, of which DuckDB is one, will continue to be developed under an MIT license. Additionally, the projects will remain under the DuckDB Foundation. According to him, this will not change.

Mühleisen also indicated in our conversation that he certainly understands any concerns DuckDB users may have. It is now up to AWS and DuckLabs to prove that those concerns are unfounded. The promise to open-source DuckDB Scales as soon as Amazon Athena becomes generally available is a good start.

The DuckDB community and its users can only hope that AWS keeps it up. Many people in the SQL world are undoubtedly aware of what happened to MySQL following its acquisition by Oracle and will not want a repeat of that, even though Oracle has since promised to do better.