Foreword

Foreword by Radu Matei

Thorsten has been part of Spin since its early pre-release days. He has built more Spin applications than anyone I know, contributed to the core, and spent years helping teams take their applications into production. Within the project, he has used that experience to advocate for developers and helped shape Spin into what it is today. That is why I am delighted he is the author of this book.

When we started Spin, we believed Wasm was the right unit of execution and deployment for serverless functions. Our goal was to abstract the underlying machinery and make building, testing, and deploying applications seamless. This ambition has guided much of our work on Spin, and I cannot think of a better guide to putting it into practice than this book.

My hope is that this book gives you the understanding and confidence to make Spin useful in your own work. Your functions, ideas, and experience will help the project grow in ways we could never have planned.

— Radu Matei Co-creator of Spin · Chief Product Architect at Akamai

Foreword by Matt Butcher

First there were virtual machines. Then came OCI containers. But what if there was another cloud runtime—One optimized for fast startups and short execution times? That was the core idea that led us to create Spin.

My team at Microsoft was responsible for building Cloud Native tooling, mostly targeting Kubernetes. We had already churned out projects like Helm, Draft, Brigade, and OAM — all solidly rooted in Kubernetes. We had recently turned our attention to Functions as a Service (FaaS), and that in turn led us to WebAssembly. Its secure sandboxing technology, broad language support, and fast cold-start time made it an ideal candidate for a cloud runtime specific to FaaS.

When we left Microsoft to start Fermyon, our core vision was that we could build a “next wave of cloud computing” powered by WebAssembly. The very first day we were a functioning company, we started work on a new project: Spin. Our goal was simple: Make it so easy to build WebAssembly-powered function-style apps that a developer could go from blinking cursor to deployed app in two minutes or less.

Spin was open source from its inception. And I first met Thorsten Hans because of his early involvement in the Spin open source ecosystem. From my first conversation with him, it was obvious to me that he not only understood the merits of Spin and WebAssembly, but that his own background as an archecturally minded developer meant he was already thinking about (and building) Spin apps at a level of complexity far beyond what we ourselves had attempted. Thorsten joined our team and dedicated himself to defining the best practices for Spin application building. Now, a few years later, I can confidently say that Thorsten is the foremost expert on using Spin. He has contributed to the core of the system. He’s built probably hundreds of Spin apps. He’s taught workshops, spoken at conferences, and written documentation. This book is a distillation of Thorsten’s expertise.

The idea of Spin germinated at Microsoft, grew to fruition at Fermyon, has flourished as an open source project in CNCF. The open source SpinKube project enables many organizations to run Spin applications on a large scale within their own Kubernetes clusters. When Akamai acquired Fermyon, Spin became the foundation for Akamai Functions. As AI has emerged as both a source of new application patterns and a tool for generating code, Spin is showing its strengths in new ways. This book, borne from Thorsten’s knowledge and experience, will inspire you to create apps for a variety of environments and use cases. I believe you will find it as enjoyable and informative as I have.

— Matt Butcher Co-creator of Spin · Vice President of Product Management at Akamai