Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Benchling Engineering 10 min read Case study mediumAdept

A behind-the-scenes look at building interactive analysis capabilities in Benchling

Benchling's Interactive Analysis runs user data transformations through a stateless, autoscaling EKS service. The web app stages inputs as Parquet in a temporary S3 bucket with a lifecycle policy, and each request spins up its own in-memory DuckDB engine over Arrow tables. An ExecutionEngine wrapper uses Arrow's zero-copy interop to send SQL-like operations to DuckDB and advanced statistics such as 4PL curve fits to Pandas/NumPy, while a BenchlingDataFrame interface preserves column types. The team skipped session-affine caching because reloading from S3 added only about 350ms even on large datasets. They also rejected on-demand containers for interactive requests because spin-up takes seconds, keeping them for large or async jobs, and they are refactoring to return partial result previews instead of full S3 downloads.

Assumes: columnar data formatsAWS S3Kubernetes services

Related posts

  • Introducing the SQL Console on Datasets

    Hugging Face mediumAdept

    Hugging Face Hub datasets now have a one-click SQL Console that runs DuckDB WASM entirely in the browser against each dataset's Parquet files, with views created per split and config. Non-Parquet datasets have their first 5GB auto-converted. A simple filter over a 12.6M-row dataset returns in under 3 seconds, but memory is capped at roughly 3GB and DuckDB WASM lacks some DuckDB features such as the hf:// protocol. A worked example uses struct_pack to convert an Alpaca dataset into conversational format for LLM fine-tuning and exports the results to Parquet.

  • From Spreadsheets to DuckLake: A Data Engineer's Road to DuckDB

    DuckDB mediumAdept

    Data engineer Matt Martin traces his path from copy-pasting Excel reports through Teradata, BigQuery and heavyweight Spark clusters to DuckDB, which let him query local CSVs, S3 Parquet files and Iceberg tables in a few lines of SQL with no JVM or cluster. He favours DuckLake over Iceberg because it keeps lakehouse metadata in a SQL database. In his experience, catalog operations that take seconds with Iceberg's metadata files resolve in under a millisecond, and the setup is two statements instead of a 20-plus-line Spark configuration. In DuckDB 2.0 alpha, asynchronous I/O cut his S3 read times for 1,000–10,000 files by 67–70%, and ATTACH now accepts expressions such as getenv. The Quack protocol can also serve a DuckLake over HTTP without handing out AWS credentials.

  • DuckDB: analyze 50,000+ datasets stored on the Hugging Face Hub

    Hugging Face mediumAdept

    Every public dataset on the Hugging Face Hub is now automatically converted to Parquet by the dataset viewer and can be queried with SQL through DuckDB. Parquet file URLs come from the datasets-server `/parquet` HTTP endpoint, and DuckDB's `httpfs` extension then runs analytical queries directly against those remote files. Large datasets are sharded into 500MB Parquet chunks, which DuckDB can query together as multiple files.

  • I created a playground for 110 database systems

    ClickHouse mediumAdept

    ClickBench Playground hosts around 100 database systems with a preloaded 100-million-row dataset for interactive querying and side-by-side "race" comparisons. Making it possible first required refactoring ClickBench's hundred ad-hoc shell scripts into a common interface (query, start, stop, check), with embedded engines like Pandas and DuckDB wrapped in HTTP servers. EC2-per-system, Lambda, ECS/EKS and plain Docker were rejected on cost, startup time, snapshot support and isolation grounds, so each system runs in a Firecracker microVM on a bare-metal AWS host. Resources are oversubscribed: CPU is capped and policed by a watchdog, guest swap is backed by the host page cache to make memory elastic, and sparse files plus XFS reflinks keep roughly 100 TB of snapshots and runtime images within local NVMe.

  • Visualizing BlueSky data with Evidence.dev

    ClickHouse mediumAdept

    Evidence.dev builds dashboards from SQL and markdown, running queries at build time rather than at request time. Query results are stored as Parquet files and queried in the browser with DuckDB WASM, which gives up data freshness in exchange for fast page loads. The walkthrough installs a community ClickHouse connector, points it at the public BlueSky dataset, and writes one query per .sql file. It then runs `npm run sources`, renders a BarChart component in a markdown page, and deploys the result as a static site or to Evidence Cloud with scheduled refreshes.

The quest for software engineering knowledge.

Look:
Layout: