This document describes MIST, a system for large-scale IoT stream processing. MIST uses a cluster of machines to efficiently handle billions of IoT stream queries. It provides query APIs that allow users to define dataflow and complex event processing queries. MIST optimizes processing by sharing code, exploiting locality of code references through query grouping, and merging queries to reuse system resources.