Skip to content

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

Dropbox Tech 7 min read Case study easyNovice

How our universal content processing platform Riviera evolved for AI and beyond

Riviera, Dropbox's content processing platform, grew from an internal file-preview service into shared infrastructure behind Search, Replay, Sign and Dash. It now runs more than 100 plugin capabilities doing hundreds of thousands of transformations per second across 300+ file formats. The central design choice was to break each preview into reusable chained transformations, such as PowerPoint to PDF to page images. A coordinator validates, caches and dispatches requests to per-capability backend workers, so new formats are added as plugins without touching the core. The same pipeline now prepares documents for Dash's AI indexing and is being opened to external developers through a public API and MCP tools.

Related posts

  • Building document pipelines that actually scale

    Render mediumAdept

    A reference architecture for scalable document processing splits a monolithic upload-and-parse server into a thin web service, a Render Workflows orchestration layer, and a Postgres store. Five discrete TypeScript tasks (upload, classify, parse, extract, store) each run in an isolated instance with their own compute plan, timeout and exponential-backoff retry policy, so one large PDF cannot block unrelated requests and a failure doesn't restart the whole job. LlamaCloud Classify, LlamaParse's agentic tier and LlamaExtract handle document typing, layout-aware parsing to markdown and JSON-Schema field extraction. Results are optionally indexed for hybrid search and RAG, and progress streams to clients via Server-Sent Events.

  • How two engineer side projects became the agent taking action inside Dropbox

    Dropbox Tech mediumAdept

    Dropbox's file-acting agent grew out of two engineer prototypes, a server-side sandbox with installed software and a desktop chat UI with permission controls, merged into one system. Each conversation gets a fresh VM restored from a QEMU memory snapshot via the Riviera content-processing platform, with Dropbox files mounted through rclone. The VM has no general internet access, and all outbound requests go through a proxy to host_tools outside the VM, which checks destinations, operations and user-granted folder permissions before attaching credentials. The UI speaks the Codex App Server JSON-RPC protocol (threads, turns, items), and an adapter lets the Pi harness reuse it. Every agent-made file version is tagged with its conversation so a turn can be undone precisely, with conflicting edits saved as renamed copies. 75% of workspaces are ready within 300 ms, and tools sit on a separate virtual disk so the snapshot needn't be rebuilt.

  • Sharding Infrastructure: The Regional Goval Project

    Replit mediumAdept

    Replit re-sharded the infrastructure that runs Repls (Goval) from a few unbalanced, multi-region clusters partitioned by user membership into uniformly sized, single-region clusters with Repls distributed by consistent hashing, shrinking failure domains and removing cross-region traffic. The clusters are now defined with CDK for Terraform in TypeScript as reusable modules, replacing a monolithic Terraform state, codegen tooling and Ansible-managed config, so clusters (including single-tenant ones in separate GCP projects) can be provisioned on demand. Migration happened with no downtime: new Repls were created in new clusters, existing Repls were lazily transferred on connection behind feature flags with rollback capability, and old clusters were deprovisioned while untransferred Repls stayed in storage.

  • Direct Data Sharing using Delta Sharing - Introduction: Our Journey to Empower Partners at Zalando

    Zalando Engineering easyNovice

    Zalando's Partner Tech team replaced a fragmented mix of SFTP, CSV downloads, APIs and S3 handoffs with Databricks-managed Delta Sharing, giving partners zero-copy access to more than 200 analytical datasets, some as large as 200TB. Partners were each spending about 1.5 FTE per month on manual data consolidation, so the team chose a solution that is open, cloud-agnostic and usable from Pandas, Spark and spreadsheets. The setup prepares Delta tables in Unity Catalog, groups them into shares, and issues each partner token-based credentials through an activation link. A proof of concept exposed friction around Unity Catalog permissions and the lack of self-service token APIs. The pilot is now becoming a Zalando-wide recipient-management platform, with OIDC federation under exploration.

  • Tangle: An open-source ML experimentation platform built at Shopify scale

    Shopify Engineering mediumAdept

    Tangle is Shopify's newly open-sourced ML experimentation platform: users build pipelines visually as DAGs of containerized CLI components defined in YAML, so components can be written in any language and run on any cloud or locally. Its central design choice is content-based caching. Downstream tasks are reused whenever upstream output hashes are unchanged, and cached results are shared globally across users, including executions that are still running. Shopify reports that a 10-hour pipeline can finish in 20 minutes when only one component changes, and that the platform has saved over a year of compute. Other design choices include file-path data passing abstracted over GCS/S3, optional unenforced types, and a multi-tenant HuggingFace deployment that uses per-tenant SQLite databases.

The quest for software engineering knowledge.

Look:
Layout: