---
title: "A behind-the-scenes look at building interactive analysis capabilities in Benchling"
description: "Benchling's Interactive Analysis runs user data transformations through a stateless, autoscaling EKS service."
url: "https://swe.quest/articles/a-behind-the-scenes-look-at-building-interactive-analysis-capabilities-in-de98514f651ccf0c"
canonical: "https://benchling.engineering/a-behind-the-scenes-look-at-building-interactive-analysis-capabilities-in-benchling-fa6ec1bab1e5"
source: "Benchling Engineering"
published: "2024-06-11"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["analytics","system-design","data-pipelines","scientific-computing"]
---

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

A post on [Benchling Engineering](https://swe.quest/sources/benchling.md), published 2024-06-11, 10 min read, Case study. Original: [https://benchling.engineering/a-behind-the-scenes-look-at-building-interactive-analysis-capabilities-in-benchling-fa6ec1bab1e5](https://benchling.engineering/a-behind-the-scenes-look-at-building-interactive-analysis-capabilities-in-benchling-fa6ec1bab1e5)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Scientific computing](https://swe.quest/tags/scientific-computing.md) (Domains)

## Prerequisites

- columnar data formats
- AWS S3 ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))
- Kubernetes services ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))

## Keywords

DuckDB, Apache Arrow, Apache Parquet, Amazon S3, EKS, Pandas, Benchling

## Related posts

- [Introducing the SQL Console on Datasets](https://swe.quest/articles/introducing-the-sql-console-on-datasets-89aa5e3e1204ae2f.md): Hugging Face · 2024-09-17 · Medium · 5 min read · SQL, Analytics & OLAP, WebAssembly, Model training
  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.
- [From Spreadsheets to DuckLake: A Data Engineer's Road to DuckDB](https://swe.quest/articles/from-spreadsheets-to-ducklake-a-data-engineer-s-road-to-duckdb-befcab104cb9bbfa.md): DuckDB · 2026-10-29 · Medium · 6 min read · Analytics & OLAP, Data pipelines, Databases, SQL
  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.
- [DuckDB: analyze 50,000+ datasets stored on the Hugging Face Hub](https://swe.quest/articles/duckdb-analyze-50-000-datasets-stored-on-the-hugging-face-hub-05ca0d0e06164c0a.md): Hugging Face · 2023-06-07 · Medium · 3 min read · Analytics & OLAP, SQL, Python
  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.
- [I created a playground for 110 database systems](https://swe.quest/articles/i-created-a-playground-for-110-database-systems-ec974e8b67b5bfec.md): ClickHouse · 2026-08-03 · Medium · 17 min read · Virtualization, Multi-tenancy, Analytics & OLAP, Storage systems, Cost optimization
  ClickBench Playground hosts around 100 database systems with a preloaded 100-million-row dataset for interactive querying and side-by-side "race" comparisons.
- [Visualizing BlueSky data with Evidence.dev](https://swe.quest/articles/visualizing-bluesky-data-with-evidence-dev-2a64305ef654ddec.md): ClickHouse · 2025-01-15 · Medium · 6 min read · Analytics & OLAP, SQL
  Evidence.dev builds dashboards from SQL and markdown, running queries at build time rather than at request time.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
