Back to All Episodes
S5 Bonus: One Database for SQL and NoSQL with Kyle Bernhardy of HarperDB
Dec 02, 2021 42:14

S5 Bonus: One Database for SQL and NoSQL with Kyle Bernhardy of HarperDB

Bonus
0:00 / 42:14

About this episode

Kyle Bernhardy had a less than traditional path to the tech world. He has been in the industry since the late 90's, but it all started when he was growing up, attempting to program text adventures games on his Commodore 64. In High School, he started running and they became a major part of his life - so much so, he went to run for Penn State University. He settled into an exercise and sports science major, so he could stay close to the sport.

Post college - he didn't know what to do with his degree. He worked in a few corporate fitness centers, but didn't enjoy what he was doing and didn't see a path for himself. During that time, he ended up getting a job in tech support. He grew in this role, in his knowledge of DB basics, SQL and supporting database reporting. Once this happened, he moved into the development world.Programming for Kyle is a creative outlet, but not for art... for problem solving. In 2010, he started working for a data center company and met his now co-founder. They would hang out and chat about what it would be like to build something together. While working for a large data aggregation company, he worked through a number of data availability, reliability, and infrastructure around massive data processing. Internally, he thought there must be a better way.

This is the creation story of HarperDB.

Sponsors

  • Courier
  • Img.ly
  • Routable
  • CTO.ai
  • Cloudways offers peace of mind and flexibility so you can focus on growing your business instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and a choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr. Get up to 2 Month Free Hosting by using code "CODE30" and get $30 free hosting credit.

Links

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 Kyle Bernhardy from HarperDB: https://www.codestory.co/episodes/s5-bonus-solving-the-data-firehose-problem-hybrid-sqlnosql-architectures-with-kyle-bernhardy-of-harperdb/



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

  • Born From a Data Firehose: Analyzing World Cup tweets at 250,000 per second kept crashing a relational database. Adding DynamoDB and a custom ETL tool worked around it, but the complexity and cost inspired HarperDB.
  • Time-Box What You Defer: The MVP shipped without a SQL layer or data distribution so the team could build core operations first. Both were committed to a later phase and required before an official release.
  • Unique Storage Hit a Wall: HarperDB's homegrown file-system data store had significant scaling issues after about two years. Moving to LMDB, an open source key value store, left data size limited mainly by disk.
  • Trust, but Verify: A rushed partnership to rebuild the data store cost money and three months of two engineers' work. The founders owned the decision and learned the store had to run embedded within HarperDB.
  • A Customer Need Accelerated Roadmap: Custom functions were envisioned from the start, but a proof of concept for a potential customer pulled them forward. They let users run their own JavaScript endpoints alongside the data.

Frequently Asked Questions

What is HarperDB?

Kyle Bernhardy describes HarperDB as a globally distributed, single data model NoSQL database with SQL semantics. He explained that "things are stored similar to a document store, but you can execute SQL against that." [02:43]

What problem led to the creation of HarperDB?

While processing massive volumes of tweets at a sports and entertainment data company, Bernhardy's team had to bolt DynamoDB and a custom ETL pipeline onto a relational database. As Bernhardy put it, "our database infrastructure got super complicated" [05:45], and it was costing what he estimated as $10,000 to $20,000 a month.

How was the HarperDB MVP built?

The team built it in Node.js, drawing on their experience and open source libraries from NPM, starting in March 2017 and releasing an MVP that September or October. Bernhardy said that "Putting SQL to the side so that we can focus on sort of the core" [10:27] operations was very freeing.

What did HarperDB learn about evaluating technology partners?

A partnership to rebuild the underlying data store failed because the two products were not a good fit, which Bernhardy attributes to too little due diligence by his own team. His approach to a promising product now is, "I'm going to run it through its paces and make sure it does what I need it to do." [31:33]

How does HarperDB approach edge computing?

Bernhardy said centralized cloud setups can introduce latency and choke points, so HarperDB aims to bring data and logic closer to users. He explained that many use cases they address now are "about decentralizing your data and scaling it" [33:44] across the globe.

Media List 5000, Podcasts, Fall 2026