Presentation: Million PDFs: Building a Modern Document Infrastructure with Rust and Typst
Our take

The challenges Erik Steiger outlines in his presentation on building a modern document infrastructure are increasingly relevant across industries, particularly those grappling with stringent regulatory requirements. The pain of legacy PDF generation – slow render times, resource hogging, and compliance headaches – is a familiar one. Steiger's move to a serverless Rust architecture leveraging Typst offers a compelling solution, demonstrating a practical pathway to significantly improve performance and operational efficiency. This resonates strongly with trends we’re seeing elsewhere, like Target’s work on leveraging LLMs for improved forecasting [Inside Target’s LLM-Based System for Semantic Matching in Marketing Forecast Pipelines], and the ongoing need for robust diagnostics, exemplified by Eliya 25's JVM-level profiling [Eliya 25 Brings a JVM-Level Diagnostic Profile to OpenJDK 25 LTS]. The ability to achieve render latencies below 2ms is a game-changer for high-volume document generation scenarios, drastically reducing operational costs and improving user experience.
The core of Steiger’s approach – applying Git and Docker concepts to template registries – is particularly insightful. It moves beyond simply optimizing the rendering engine and addresses the fundamental challenge of managing and controlling document templates in regulated environments. Treating these templates as code, version-controlled and containerized, provides an unprecedented level of auditability and repeatability. This is a clear departure from traditional, often ad-hoc, template management practices. Considering the broader architectural landscape, this focus on local-first approaches, as discussed by Adam Wiggins [Podcast: Architectural Patterns: Moving Beyond Cloud-Native to Local-First - Insights from Adam Wiggins], underlines a growing skepticism regarding complete reliance on cloud infrastructure, favoring solutions that offer greater control and resilience. Steiger’s work aligns with this movement, emphasizing a shift towards more predictable and manageable systems.
The choice of Rust and Typst is also noteworthy. Rust’s performance and memory safety are well-documented advantages for computationally intensive tasks, while Typst’s focus on document typesetting offers a modern alternative to LaTeX, addressing some of its long-standing limitations. This combination signals a move towards a new generation of document generation tools, designed for the demands of modern infrastructure and software development practices. It's a testament to the increasing power and accessibility of compiled languages for tasks traditionally dominated by interpreted scripting environments. The fact that Steiger can achieve such significant performance gains by moving away from resource-heavy engines like Puppeteer and LaTeX underscores the potential of these technologies and the unsustainable nature of many existing solutions.
Ultimately, Steiger’s presentation isn't just about a specific technology stack; it's about a paradigm shift in how we approach document infrastructure. It highlights the importance of treating document generation as a core engineering problem, demanding robust automation, rigorous version control, and a focus on operational excellence. As document volume continues to explode across all sectors, and regulatory scrutiny intensifies, the lessons learned from Steiger’s experience will become increasingly valuable. The question now is: how quickly will organizations recognize the need to migrate away from legacy systems and embrace this innovative, future-focused approach to document management?

Erik Steiger discusses the operational pain of legacy PDF generation in regulated banking and manufacturing. He explains how transitioning from resource-heavy engines like Puppeteer and LaTeX to a serverless Rust architecture powered by Typst can drop render latencies below 2ms. He shares how applying Git and Docker concepts to template registries ensures ironclad compliance and rapid debugging.
By Erik SteigerRead on the original site
Open the publisher's page for the full experience