# S8 E29: Open Source Device Management Using SQL with Zach Wasserman of Fleet

Published: 2023-10-31
Duration: 1732s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/0a24ec2d-e319-4a3f-bac3-05c2c975fe8d/stream.mp3

## Key Takeaways
- SQL Instead of Scripts: osquery uses SQLite virtual tables hooked to OS APIs and the file system, so users can query and join device data with a little SQL instead of writing Python, PowerShell or Bash.
- One API for Everyone: Fleet's React single-page app uses the same APIs customers get. Zach says this slows shipping somewhat, but anything clickable in the UI can be done by API, and the app doubles as a reference implementation.
- Two Very Different API Loads: A deployment with 10 human users may have 10,000 to 100,000 devices checking in. Human-facing endpoints need low latency, while agent endpoints mainly need throughput.
- Scaling Past the Early Ceiling: Early Fleet fell over at about 3,000 to 5,000 devices as check-ins overwhelmed the database. Revisions and incremental optimization took it to hundreds of thousands of connected devices.
- Buyer-Based Open Core: Following GitLab's model, Fleet keeps its MIT-licensed core ready for individual practitioners and aims premium features, with clear return on investment, at the people with purchasing power.

**Open source device management with osquery: Zach Wasserman of Fleet on giving IT and security teams SQL-based visibility and control over laptops and servers.**

———

Zach Wasserman lives near Vancouver, but grew up a child of the 90's in Berkeley, California. The .COM boom was happening around him, so he found himself fascinated with this era in tech, with little understanding of the details. He was a skater kid, riding around the Bay Area, typically on a short board over long board. Nowadays, he is more into the outdoors, as a mountain biker, rock climber and back country skier. He enjoys the vast selection of Chinese food at his home near Vancouver.

In 2014, Zach was working at Facebook. During that time, a team member wanted to build a platform where they could know what was going on with all of their assorted machines. They ne eded a way to ask questions without writing code, and more quickly get answers about their community of devices.

This is the creation story of [Fleet](https://fleetdm.com/).

Sponsors

- [Cipherstash](https://cipherstash.com/codestory)
- [Treblle](https://www.treblle.com/codestory)
- [CAST AI](https://cast.ai/codestory/)
- [Firefly](https://www.gofirefly.io/codestory)
- [Turso](https://turso.tech/codestory)
- [Memberstack](https://memberstack.com/codestory)

Links

- Website: [https://fleetdm.com/](https://fleetdm.com/)
- LinkedIn: [https://www.linkedin.com/in/zacharywasserman/](https://www.linkedin.com/in/zacharywasserman/)

  

Timestamps

00:00 – Intro

06:17 – Building the Fleet MVP

08:10 – Key Decisions and Tradeoffs

10:36 – Maturing Fleet's Roadmap

13:46 – Building the Fleet Team

15:58 – Scaling Fleet

19:07 – Proudest Moment

20:29 – Mistakes in Scaling

22:42 – The Future of Fleet

24:24 – Influences on Zach's Work

25:49 – What Zach Would Change

27:04 – Advice for Young Entrepreneurs

Times are from the episode recording; ad breaks in your player may shift them a bit later.

  

Read the key answers from this episode, with quotes and timestamps from Zach Wasserman from Fleet: [https://www.codestory.co/episodes/s8-e29-the-16-million-host-blueprint-treating-operating-systems-like-sql-tables-and-engineering-open-source-endpoint-security-with-zach-wasserman-co-founder-cto-of-fleet/](https://www.codestory.co/episodes/s8-e29-the-16-million-host-blueprint-treating-operating-systems-like-sql-tables-and-engineering-open-source-endpoint-security-with-zach-wasserman-co-founder-cto-of-fleet/)

  
  

Current Sponsors:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our [Substack](https://news.codestory.co/subscribe)

Checkout our [Stacklist!](https://stacks.codestory.co/)

Checkout our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart.](https://noahlabhart.com/)

  
  
Our Sponsors:  
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai  
* Check out Perplexity: https://pplx.ai/codestory  
  
  
Advertising Inquiries: [https://redcircle.com/brands](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 6:17 — Building the Fleet MVP
- 8:10 — Key Decisions and Tradeoffs
- 10:36 — Maturing Fleet's Roadmap
- 13:46 — Building the Fleet Team
- 15:58 — Scaling Fleet
- 19:07 — Proudest Moment
- 20:29 — Mistakes in Scaling
- 22:42 — The Future of Fleet
- 24:24 — Influences on Zach's Work
- 25:49 — What Zach Would Change
- 27:04 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** How does osquery let you query operating systems with SQL? — **A:** Zach Wasserman, who helped co-create osquery at Facebook, explained that the team found "SQLite has a really interesting concept called virtual tables, where you can actually" [05:22] call functions that generate data as if it sat in a real table. They hooked those tables to OS APIs and the file system, so users can get answers by writing SQL rather than code.
- **Q:** How did Fleet start as an open-source project and company? — **A:** Zach said the MVP was an osquery management server built in about six months at his former company, Kolide, with a Go backend and a React frontend. Kolide open sourced the code when it pivoted, and Zach said of the project, "people were starting to use. And that was what really caught my attention" [08:00]. The company Fleet was founded on that code base in 2020.
- **Q:** How does Fleet decide which features are free and which are premium? — **A:** Zach said Fleet follows the buyer-based open core model that Sid Sijbrandij has promoted at GitLab. In his words, "we make sure that we build something that really is ready to use for individual practitioners," [12:58] while premium features offer clear return on investment to those with purchasing power.
- **Q:** What scaling challenges does Fleet face with large device fleets? — **A:** Zach said early versions had a limit: "Fleet would work up to until you're managing about three, four, five thousand devices with it." [18:22] He also described backlogs of device data that could turn small outages into bigger ones, which pushed the team to learn how to bring a system back online slowly.
- **Q:** Does Fleet support mobile device management (MDM)? — **A:** At the time of the interview, Zach said Fleet had released macOS MDM in April and planned to ship the same for Windows by the end of that year. He described the shift from telemetry by saying "the big thing that Fleet has been moving into this year is actually the active management of the system." [23:08]
