Skip to content

2017 – 2023 · MongoDB

Atlas App Services

MongoDB's application platform, from the Stitch serverless backend through the Realm acquisition to Atlas App Services, Device Sync and Triggers.

  • 0 → 1
  • Serverless
  • Sync
  • M&A integration
  • Patent

Atlas App Services was MongoDB’s application platform. I worked on it from its first version, MongoDB Stitch, through the 2019 acquisition of Realm and the 2022 rename to Atlas App Services, as a PM and then as Director of Product.

MongoDB Stitch

Stitch was MongoDB’s first application-platform product. It was a backend as a service that let a browser or mobile app query MongoDB Atlas directly. Declarative, user-level rules decided who could read or write each document, so most apps didn’t need an API server in between. We announced it at MongoDB World 2017 and I presented it in the launch session, “Introducing Stitch”.

Over the following year we rebuilt the product around four services: QueryAnywhere for client-side queries under rules, Functions for serverless JavaScript, Triggers built on MongoDB change streams, and Mobile Sync between Atlas and MongoDB Mobile. Stitch reached general availability at MongoDB World 2018, alongside MongoDB 4.0.

The Stitch landing page, July 2017

The Stitch product page a few weeks after launch, archived by the Wayback Machine.

Taking it on the road

A new platform has to be demonstrated, not just documented. I gave Stitch talks and hands-on workshops at MongoDB World, MongoDB Europe, and MongoDB.local events in Tel Aviv, San Francisco, Dallas and Seattle. I also explained it on developer podcasts. For AWS re:Invent 2018 we built the Stitch Rover: an Android Things rover driven from a web “Mission Control”. It sent sensor data through Functions, Triggers, Amazon Kinesis and Mobile Sync, and more than a thousand people stopped by the booth to drive it.

Stitch Rover architecture

How the rover worked: QueryAnywhere, Functions, Triggers and Mobile Sync wired to Atlas and AWS Kinesis. Image: MongoDB.

Driving the rover from Mission Control

Mission Control on an iPad at re:Invent.

Functions & Atlas Triggers

Triggers began as one of the four core services in MongoDB Stitch. A database trigger watches a collection through MongoDB change streams and runs a serverless Function on each insert, update, replace or delete. Developers used them to sync data to other systems, keep derived collections up to date, send notifications, or push events to Kinesis and EventBridge, all without running a server. Auth triggers and scheduled triggers followed.

In June 2019 we brought Triggers into the Atlas UI itself, so anyone on Atlas could use them without adopting the rest of the platform. I led product for Atlas Triggers and the Functions runtime under them through the Stitch, Realm and App Services eras. They are among the few App Services features still in Atlas today.

Trigger events flowing from Stitch to Amazon Kinesis

A trigger streaming rover sensor data into Amazon Kinesis, from the re:Invent 2018 demo series. Image: MongoDB.

MongoDB Realm

In May 2019 MongoDB acquired Realm, the mobile database used by more than 100,000 developers. Realm had the on-device database and sync engine. Stitch had the serverless back end: Functions, Triggers, rules and authentication. I drove the integration of the two products.

We published the plan in the open. In October 2019 I wrote the public MongoDB Realm roadmap, which set out the timeline to a beta, the Realm Database 6.0 work, and the MongoDB engineers moving to Realm’s team in Copenhagen. MongoDB Realm launched at MongoDB.live in June 2020. It folded Stitch’s services into Realm, added a GraphQL service at GA, and opened Realm Sync as a beta. Realm Sync reached GA in February 2021.

MongoDB Realm product page, July 2020

The MongoDB Realm page a month after launch, archived by the Wayback Machine.

Atlas App Services

In 2022 the cloud side of Realm became Atlas App Services, and Realm Sync became Atlas Device Sync. As Director of Product I led App Services, Device Sync and the API services. These included the Atlas Data API (preview in November 2021, GA in June 2022), GraphQL and HTTPS endpoints. Over my time on the platform it grew from nothing to more than $60M in associated ARR and 20,000+ customers, and the team grew from 3 to 60. MongoDB retired Device Sync, the Data API and GraphQL in September 2025. Triggers and Functions remain in Atlas.

Atlas App Services landing page, 2022

The Atlas App Services page after the June 2022 rename, archived by the Wayback Machine.

The Atlas Data API in the Atlas UI

The Data API at GA, with per-cluster access settings. Screenshot: MongoDB.

Flexible Sync

The first version of Realm Sync was partition-based. Every object belonged to exactly one partition, and a device synced whole partitions. That worked for simple apps, but it forced developers to restructure their data around sync. Data that needed to reach several users, such as a shared document or a record visible to a whole team, had to be duplicated or worked around.

Flexible Sync removed that limit. A device subscribes to queries (“my open tasks”, “patients on this ward”) and receives the objects that match. Subscriptions can overlap, so the same object syncs to everyone entitled to it, and permissions are expressed as queries, which allows hierarchical, fine-grained access rules. It launched in preview in January 2022 and reached general availability as part of Atlas Device Sync at MongoDB World 2022.

Hierarchical permissions with Flexible Sync

Permissions as queries: attending physicians, fellows and residents each see a different slice of the same data. Image: MongoDB.

The patent

I’m the lead inventor on US 12,248,495 B2, Systems and Methods for Flexible Synchronization (filed 2023, granted March 2025), with Ian Ward, Michael O’Brien, Tyler Kaye, Sudarshan Muralidhar, Jonathan Reams, Alexander Stigsen and Kirollos Morkos. It covers how client changesets on shared objects are merged across sync servers running in parallel.

Patent figure 12: Flexible Sync capabilities

Fig. 12 lists the core capabilities: dynamic queries, fine-grained permissions, query overlap, a client-side query builder, range-based queries and an idiomatic query language.

Patent figure 15: sync server architecture

Fig. 15: Realm clients behind a load balancer, sync servers and a translator in front of the Atlas cluster.

Resources

Talks

Podcasts

Writing

Patent

Code

  • stitch-car: the re:Invent rover and its Mission Control web app

Launches

Press

Documentation