Back to All Episodes
S4 E11: Fast SQL Queries on Streaming Data with Arjun Narayan of Materialize
Mar 16, 2021 25:59 S4 E11

S4 E11: Fast SQL Queries on Streaming Data with Arjun Narayan of Materialize

0:00 / 25:59

About this episode

Arjun Narayan grew up in India, programming as a kid. He came to America for college, thrown into the scene cold but really liked it. He studied computer science at Williams College in Massachusetts, and did his PHD at Penn, focusing on distributed systems, security, privacy and scalability. His doctorate taught him how to write at length, but out of the norm, he knew early on he didn't want to be an academic.

He is married, with a young son - and he really enjoys being a father. Today, his life consists of his startup and his young family, which are about the same age.

As he was as grad student doing his PHD, he came across a set of papers written by his co-founder - about a more capable, incremental compute engine. After several years of persuasion, Arjun convinced him that they needed to start a company to commercialize the solution.

This is the creation story of Materialize.

Sponsors

VirtualPBX

Imagine Golf

KIMO

Unidragon Coupon: DragonStory, 10% Discount. Expires July 1, 2021

Links

Leave us a review on Apple Podcasts

Amazing tools we use:

  • This podcast is hosted on RedCircle, a FREE platform for podcasts and brands to scale their message. 
  • Want to record your remote interviews with class? Then, you need to use Squadcast.
  • Code Story uses the 1-click product ClipGain, sign up now to get 3hrs of podcast processing time FREE
  • If you want an amazing publishing platform for your podcast, with amazing support & people – use Transistor.fm

Credits: Code Story is hosted and produced by Noah Labhart. Be sure to subscribe on Apple Podcasts, Spotify, Pocket Casts, Google Play, Breaker, Youtube, or the podcasting app of your choice.

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 Arjun Narayan from Materialize: https://www.codestory.co/episodes/s4-e11-engineering-fast-materialized-views-sub-second-queries-over-live-streams-with-arjun-narayan/



Current Sponsors:

Checkout our Stacklist! https://stacks.codestory.co/

Check out our Patreon!

Hosted by Noah Labhart | Technical Founder & Startup Mentor.



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

Privacy & Opt-Out: https://redcircle.com/privacy

Chapters

Featured Guest

Latest Season of the Podcast is Sponsored By

Key Takeaways

  • Compute Layer, Not Pipes: Materialize leaves data movement to tools like Kafka and focuses on keeping SQL query answers up to date as streams change, even at hundreds of thousands of new data points per second.
  • Cutting Persistence to Ship: Early on, Materialize chose not to store data itself, relying on Kafka and similar systems so the team could focus on a differentiated compute and query engine. Persistence was on the 2021 roadmap.
  • A Database Needs the Whole Car: Frank McSherry had built the core engine for about four years before the company began. It then took a solid year to build the rest of the database to even a minimal acceptable standard.
  • Engineers Talk to Customers: SQL outlines what to build but not the order, so the whole engineering team spends significant time with users. Arjun says they could have started this earlier than they did, after about six months heads-down.
  • Write the Culture Down: Weekly all-hands are written as multi-page documents, so new hires can trace how the company's thinking evolved. Arjun sees this as a way to keep early grit while the team, then about 25, aimed to double.

Frequently Asked Questions

What is Materialize and what problem does it solve?

Materialize is a database built for fast-changing streaming data, keeping answers to complex SQL queries updated ahead of time instead of waiting for overnight refreshes. Arjun Narayan explains that "we can keep the SQL queries" [06:25] up to date even at very high update volumes.

How is Materialize different from Apache Kafka?

Arjun Narayan says Kafka and similar tools handle moving data from point A to point B, while Materialize is the compute layer where those streams are analyzed with SQL. In his words, "It's not so much the pipes, it's the" [06:36] end point you point them to that gives the most leverage.

Does Materialize store your data?

At the time of the interview it did not, though Arjun Narayan said a persistence layer was on the roadmap for 2021. He described the product then: "It's purely a compute plane on top of an external system for storing your streams of data." [10:46]

How was the first version of Materialize built?

Co-founder Frank McSherry had been building the core engine as an open source project for about four years, and the company then spent a year building out the rest of the database. Arjun Narayan likens it to selling more than an engine: "You kind of need to sell the full car." [08:56]

What advice does Arjun Narayan give aspiring founders?

He recommends joining a best-in-class startup in your field before starting your own, as he did at Cockroach Labs, to learn how a business is built. Arjun's advice is to "find a best-in-class business in your field and join them early at the Series A" [23:52] or Series B stage.

Media List 5000, Podcasts, Fall 2026