I will say I had to grow up a lot through this process and you know when I co-founded HarperDB, I was not ready to be CTO. I had to learn how to be CTO and I also had to learn how to trust. I had to learn how to cede some control. I also had to learn to become comfortable making decisions. So in looking back, there was a lot of things I did because of the things I just said that did not help the team scale. My name is Kyle Bernhardy and I'm co-founder and CTO at HarperDB.
This is Code Story. The podcast bringing you interviews with tech visionaries who share in the critical moments of what it takes to change an industry and build and lead a team that has your back. I'm your host, Noah Labhart, and today I'll help Kyle Bernhardy build the best database solution based on speed, reliability, and hybrid cloud. All this and more on Code Story. Kyle Bernhardy had a less than traditional path to the tech world. He's been in the industry since the late 90s, but it all started when he was growing up, attempting to program text adventure games on his Commodore 64. In high school, he started running, and that 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 database 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 issues around massive data processing. Internally, he thought there must be a better way. This is the creation story of HarperDB.
So HarperDB is a single data model, NoSQL database with SQL semantics, meaning that things are stored similar to a document store, but you can execute SQL against that. There's no underlying data transformations. And so you can do either NoSQL or SQL, we don't care. We're globally distributed. The focus is on simplicity, meaning that an engineer with a few clicks can get HarperDB up and running very quickly, connect multiple nodes together, start replicating data very easily. We're fully indexed, meaning that every top-level attribute in your records are automatically created in indices for, and we automatically real-time index that data. So the goal with all this is to make it simple, to make it performant. You table joins, you can do aggregates, you can do multiple where clauses, all that stuff you would expect. And now we have a new feature that just came out called custom functions. So on top of a very performant database, you can build your own endpoints that run resident with the data, similar to something like Amazon, AWS, Lambda, they're all in JavaScript. But you can build your own logic around our operations with access to our underlying functions. but with your extra logic, and you can bring in your own packages. So you can do things like ML, AI, things like that. You could also do it, host a static site inside HarperDB. So the focus is like now expanding that simplicity beyond just the database to now making it a data platform. Fizzle was this big data aggregation company for sports and entertainment. And so one of the things we did was We had firehose access to Twitter. And one of the biggest projects we did was analyzing every single tweet for the World Cup. It was 250,000 tweets per second that we were doing natural language processing on and further analysis. And those records were turning into millions and billions of records. And really, you're looking at all these tweets for every single game. We were doing branded tweets for this telco. And so within an hour after the game, we were putting up a 3D visualization of the sentiment of the game while it was going on. Like what people were talking about is pretty crazy. Like our database infrastructure was at the beginning was not built to handle that. And we were on a relational database and that relational database could not handle large scale individual transactions. It just kept crashing. And so we started like, you know, during that month, we build in a more resiliency. So we added DynamoDB as this umbrella to catch all these transactions. And then we would bulk push them to the relational database, which relational databases are very good at handling. But in order to get that over timely, we had to build this custom ETL tool to do this pipeline from one database to another because Amazon didn't have anything at the time that could help us out. So our database infrastructure got super complicated and that was really the genesis for HarperDB because we were spending at least $10,000 a month, I think ten to twenty thousand dollars a month just on our database infrastructure and a lot of our manpower was going to that. Sort of like late night TV commercials where you're like there's got to be a better way. So we had come up with you know an idea of we loved NoSQL databases because they're We also liked the relational databases, the ability to run like the SQL semantics and the analytics. And so we really wanted that like peanut butter and chocolate merged together. And we initially came up with an idea that was like multiple products tied together. We also realized we're not database people. We were power users of databases, but someone else will address this that knows better than us. And, you know, about a year went by and we always talked about this idea. about having a single model for being able to do NoSQL and SQL operations against the unified model. We left Fizzle and just we had about maybe three months of runway and we just decided to go for it.
So tell me about the MVP, that first product you built. How long did it take to build and what sort What sort of tools did you use to bring it to life?
From the inception of HarperDB up until now, the development framework for HarperDB is Node.js. So all JavaScript that, like I said, always was and is our underlying framework for HarperDB. And the reason for that was, one, our team had a lot of experience in scaling Node.js applications. we all have experience with it also when you're talking about especially an mvp you need to get something done well um but quickly um as a early stage startup um you're benchmarked more on technology in a tech space you're kind of benchmarked on the tech that you have and the ability to like create something and deliver something so we needed to get something out quickly and we realized that we could leverage the community so NPM is one of the largest if not the largest package manager in the world and there's tons of high quality open source libraries that we can leverage in order to propel our product forward so that is the framework the MVP we got we started in March of 2017. We had an MVP out September, September-October of 2017. So pretty quick. That was an intense summer. And then we had our V1 product out January-February of 2018. So less than a year from From inception to like a V1 that we felt happy for users to start building products on.
Well, with any MVP, you've got to make certain decisions and trade-offs about what you're going to focus on in the beginning, what trade-offs you're going to make, and even what technical debt you're going to accept in the short term. So tell me about some of those decisions and trade-offs you had to make and how you coped with them.
It was a real challenge because being a database and the mindset that we had at the time was creating something new and unique to the marketplace and also how we went about being allowed to ingest JSON or CSV or records via SQL. We had this notion of just taking in that record or entry and completely blowing it apart by attribute. We, at the time, built our own underlying data store based on the file system. So there was a ton of time building that out, deciding how to do this. And that was really the core part. And we spent months just on that piece. And then you need to build the layers on top of it. You need to be able to insert data. You need to update it. You know, just general crud. For the MVP, the thing we realized initially was just to prove our model, we had the layers to execute SQL, but for the MVP we did not have a SQL layer when the initial MVP went out. Putting SQL to the side so that we can focus on sort of the core operations and the underlying guts of HarperDB, that was actually very freeing. So making these decisions at the time to say we will do this at this point in time. So time boxing it, not saying we'll get to it sometime, but saying we will get to it once this is complete. This is the next phase in our product. To be honest, it's freeing because there's that mental space that gets released so that you can focus on what's actually like very, very important rather than trying to eat the whole elephant. You're just taking bites. Also, the data distribution was something that we had to let go. So with HarperDB being, capacity to be globally replicated, you have to have a data synchronization mechanism, communication protocols between nodes, things like that. That was also something that we just had to let go because you got to build the foundation for the product before you start adding connective tissue. Again it was not, we'll get to it at some point, it was these things are also critical because they are part of our vision for the product and we can't actually do an official release until these things are available. But for an MVP just to say, hey, check out how easy HarperDB is. This is a beta MVP. Come and check it out. Being able to do the things that we did were huge successes in our minds. And also, you know, for our investors, you know, through all that, we were able to bring on more investors, start gaining community traction and feeling like, yes, we are continuously onto something here.
So from that point, how did you progress the product and mature it? And I assume, you know, you're getting you're getting feedback and people are using the MVP and you're able to maybe go back and build some of those things. But how did you go about, you know, building and structuring your roadmap and figuring out, OK, this thing is the next most important thing to build?
When we started the company and before we started writing code, we did a ton of planning sessions. Aside from the product, from a company perspective, some of the very first things that we did was establish mission vision values. So really what that is, is creating an identity that's reflective of the people that make up the organization. And I'm only bringing that up because those are guideposts for how you make decisions. And that then helped us also decide, like, how do we make decisions when we're deciding what to do, how to do things, not just on the technical side. A lot of times these are even more important on the business side. We had pre-established an initial roadmap for HarperDB when we started the company. And again, before we actually started coding anything. So it was just like stepwise, we need to do this and now we need to do this. And so really plotting it out and being methodical about what we knew we had to do for the first year of the company. The custom functions thing was something that we knew we wanted to do from the inception of the company. It just was not as important. And so even four years later, there's still things that we had roadmapped. It just was not that had more of a question mark to it. But SQL was a must have. Data replication was a must have. We have to do this. But also, like you said, is being flexible and agile. What investors, you know, their investors, especially in the tech space, have a lot of experience, have invested in similar companies. And so listening to their feedback, trying to put ego aside and realizing that we don't know best and like, you know, other perspectives should be synthesized. Now, what we do is we have a feedback board for people to put feedback and people can rank them, you know, vote on them. We have a Slack channel now. And so we get a lot of feedback through our Slack group. Customers or potential customers hearing their needs, you know, because we're still a startup and you need to adapt to, you know, needs of your customers and things like that. So while we also internally have things that we want to achieve, it's also making sure that this product is useful to customers and potential customers as well. So it's really just like a mix of structure and some organic feedback and filtering that. And there's times where we think we're going to do one thing and we push it because there's just something that comes up. To go back to custom functions, that was something that maybe we would have tackled like maybe the end of this year, but we had a proof of concept that we were doing for a potential customer where enabling them to be able to build their own routes on top of HarperDB custom logic was critical and then also realizing that there's a lot of stickiness around this idea in the marketplace and so we jump started that through you know earlier this year and completing it uh this summer and it's just like that was something that we realized like we got to do this we have to do it for this customer and other customers and now when we socialize it you know, whether it's like through our Slack group or in sales calls, like it's the thing that people get the most excited about. Like they're excited about HarperDB, but when they realize, oh, I can build something on this, like that's custom to me and my organization, like the lights really turn on. And so that's just a great example of being flexible, but also staying within your vision.
Well, let's switch to team. And you touched on this a bit in the Genesis story of that joined you and were co-founders and then you worked with on the product. But tell me about the process you went through to build your team. And I'm interested in what you look for in those people to indicate that they're the winning horses to join you.
Circle back to what I said, talking about mission, vision, values for an organization and especially essentially really how we choose people that are going to be great fits, great successes. really based on our values and our core values are authenticity, transparency, empowerment, and focus. What we want to promote is an environment where people can be themselves and just be authentic to who they are because we don't want to generate a company of corporate drones or anything like that. And also people that bring their unique perspectives, their unique identity to our organization. They allow us to come up with better ideas, solving a better community around HarperDB. So with that authenticity, it's also around you really accept yourself and you learn to accept other people. And that creates really comfortable environments because work is super stressful and it gets more, human interactions can make things even more stressful that's outside of work. Transparency is also really critical for us in the sense that we as an organization share what's going on, good and bad, a business side. When I'm making decisions for the engineering team, you know, someone asks me a question, I don't just say, yes, let's do that. I explain my thought process as to why I agree with, like, we're going to do this and this is why we are doing this. And then so if I'm transparent with people, I'm also expressing vulnerability with them and that also helps people typically typically feel more relaxed and reflect that back as well. And that also leads into then empowerment, right? Because I'm expressing my thought process in this example, and my team feels empowered to challenge me or ask me more questions. I want that from them. I'm not just saying, it's not a dictatorial where it's just do what I say, and this is the way it is. Do not question me. I don't know everything, and the more time goes on, I feel like I know less and less about more and more. So, you know, having an empowered team that can, you know, have this like cross conversation, it creates a really dynamic environment. And with that authenticity and transparency, it also creates like an environment that is not combative. It's collaborative. You know, and our final aspect is focus. And that's about like not trying to do five things at once. It's about like focusing and doing something well and then moving on to the next thing. For the people where those values don't mesh for them, and again, I'm not saying anyone's right or anyone's wrong. It's just what works for our organization. Typically, the people where this does not resonate with them, they won't continue in an interview process. It's not that we eliminate them it's just that they'll be like oh you know this organization is not for me my favorite thing for engineers is and it's really based off of my background was I was given a chance I had no computer science background it's a Commodore 64 you know I had an engineering background with like a lot of math and science but not like fingers the keyboard and knowing algorithms and and things like that. But I was given a chance. And I really love people that are that make career switches through their lives, like whether that's, you know, regardless of stage in life, like age or whatever. Those are some of my favorite people, because again, they're bringing a different perspective from their previous work to now. And also they chose to like upend a career, career make a very conscientious decision be like I am gonna go from wherever I was to into the technology space because I love it and there's various reasons for people getting into it but there's like a a legitimate passion it's not just like you know I was in high school and I thought I could make money and like this is good enough and you know you know and that's not wrong um but but like people that really enjoy technology and really enjoy solving problems. And it's also for me, it's like giving someone a chance is like the best way I can give back to the industry. It's like helping people break in because someone helped me a long time ago and many people invested in me a long time ago. So, you know, I learned early on that that was really important.
Well, this next question will be interesting, given the nature of your product. Did you build this to scale efficiently from day one, or are you fighting this as you grow?
I think from a staffing perspective, you know, with what I had already talked about, I think that was like built to scale. I will say I had to grow up a lot through this process. us. And, you know, when I co-founded HarperDB, I was not ready to be CTO. I had to learn how to be CTO. And I also had to learn how to trust. I had to learn how to cede some control. I also had to learn to become comfortable making decisions. So I, in looking back, there was a lot of things I did because of the things I just said that did not help the team or help the team scale. And, And, you know, that's something I'm, I'm not saying I'm the yogi on top of the mountain. I'm still working on all of those things, but I feel like I am better and I, I love my team and I trust my team and I am happy to see them taking the reins on things where I am now. I feel like I am much better now to scale from a personnel perspective. but when we started the company, not really. Because I had a lot of insecurities and I had to learn. And I was used to being an individual contributor and I had to learn that how I scale my capability is by helping the team. It's not just based on my work, it's on my ability to unblock other people. From a product perspective, perspective, I talked about our underlying data storage algorithm. That was based on the file system. After about two years, it just had significant scale on data issues. And again, that went back to being like, oh, we're building something unique. So it needs to be unique from the bottom to the top. But what we realized was our initial data storage process, called inodes. We just abused the file system and it just could not scale for large-scale data sets. And if you're using a database, it needs to scale to large-scale data sets. And so two years ago we had identified, hey, we need to address this. We need to change this. I had done a bake-off on a bunch of key value stores. And so on that note, that also goes back to feedback that we had gotten from investors. They said to us, your data storage is very unique. Also, a lot of databases enable multiple data storage mechanisms for different use cases. And have you thought about implementing something else and primarily key value stores? And we've gotten that feedback a few times. And we really just sort of discounted it because that was ego on our end. and then when you start running into problems, you get humbled and you break down a little bit and you realize, oh yeah, these guys knew what they were talking about. We landed on an open source key value store called LMDB. It's Lightning Memory Map Database. It's an amazing key value store and that has allowed us to scale. Like now, like, you know, data size is not, it's really just limited to like the disk you have. was one very specific technology area where we were not built to scale. Once we implemented that underlying data store and released that from a business perspective, things really started opening up for us.
Well, as you step out on the balcony and you look across all that you've built, what are you most proud of?
I'm most proud of my team. I love the people in my team. We do, especially since COVID has hit, we're all fully remote and so every day at 10 o'clock I have a stand up with my engineering team and it's like my favorite part of the day is I get to see everybody and it used to be stand up because when we were in an office it's like 15 minutes, no more than 30 and it's just like hey it was almost like let's just get this over with, there's definitely some things that we need to talk through here point to doing a stand-up but it was like well we're all a small team we're all like kind of on top of each other anyway like you know we're just sort of doing this from a process perspective but since you know we've all gone remote um it's it's like we socialize and like I have learned like how much I really appreciate all of these people and then when I get to interact with our sales team team, just like how passionate and invested all of these people are and just like their unique personalities. Like just, you know, and again, going back to what I said is like our organization, like any company is made up of people. And so the organization will then reflect the people inside of it. And what you create is generated by all of them. them. So if I love the product, I love the people too. And I certainly do. And just the team that we have created so far and continue to create, I'm just super excited about the people.
Well, let's flip the script a little bit. Tell me about a mistake you made and how you and your team responded to it.
I'm not going to name this company because there's nothing wrong with them. But when When we initially had evaluated key value stores, we had actually partnered with a company. It was a for-profit company, and we partnered with them to redo our underlying data store based on their product. And we didn't do enough due diligence, and it's not their fault. It's on us. enough due diligence around like how their product would interact with our product, how it would all play out. And we just sort of, uh, it was almost like we felt like it was a lifeline that was being thrown to us. So we dove in and, you know, it cost us some money and it ended up just not working out. Um, and, uh, we were sort of planning on like doing, yeah, just just like being able to like roll this thing out in like late 2019. And we're all super excited about the potential for it. But once we were doing benchmarks, it just was like our existing data store and a lot of use cases was faster than there. And again, it wasn't a product, it was the implementation. And just our two products were not, like just the way our product works and the way their product work in our scenario it just was not a good fit um and so we lost money on that we also lost tech time on that um and that was like a real kind of gut punch um and um but you know we learned a lot from that and we learned uh when you learn what doesn't work you you also then get closer to what will work. And so for us, it's like, well, our underlying data store can't run as a separate server. It needs to run in line and embedded with our product. And that was like one of the key things and it needs to be very flexible. And so as we're adding metadata, we need to be able to on the fly, real time add new indexes or sub database or whatever you wanna call it and you know we need to be able to really efficiently create iterators based off of different types of range searches or equal searches or you know you know all different kinds of scans and have you know control on over how the data is actually like put into the data store itself so we learned a lot through that and then that helped us move forward to what I had the bake-off and LMDB. But it was really disheartening. And the two engineers that I had tasked with implementing this product, they were gutted because they spent three months working on this and it was really exciting. And then it just turns out, and we, you know, Steven, our CEO and myself, we personally communicated to them. It was like, this was not your fault. Like we, Steve and I own this because we made this decision. We sent you down this path and we tasked you with this. Um, it's not your fault. It's our fault, but they were still gutted too. And so you also need to, uh, reassure people that the work they did was valuable. It just didn't work out. And, um, I mean, it took, you know, uh, a month or so of, uh, shaking it off and trying to figure out what reality is like at this point. And, you know, how do you go forward from here? But, you know, we took that time and, you know, like I said, we, you know, did a new evaluate. Like also what I learned was, you know, the old phrase, trust, but verify. And that's what I did. And that's what I've also learned since then is, you know, using any implementation, working with any other partner, because I would expect that of them of us. And doing that with anyone else too is like, hey, your product sounds great. I'm going to run it through its paces and make sure it does what I need it to do. So, you know, there was a lot of learning lessons through that. So it's more like learning that even inside challenges, there's always an opportunity to learn something from it. Right. And that's always like for me personally, like whether it's in work or life, you know, I can't know. I can't control what happens in life, but what I can control is my reaction and also looking for, you know, this is a really hard time right now, but what can I learn from it? And how can I choose to go through this in a way that is not detrimental to relationships and, you know, other aspects of like my personal life or my work life or, you know, the work stream that we're doing.
I haven't heard it as succinct as the way you put it, but trust, but verify. I really liked explaining that or talking to that to one of my team members today. Well, what does the future look like for HarperDB, the product, and for your team?
We're at a really exciting juncture in our company. We're partnering with a number of telcos, working with a number of large-scale gaming companies, really focused on the distributed nature of HarperDB. and the goal of that is really around edge computing. And so the last 15 years, cloud has been king. Cloud is amazing. We use Amazon for our cloud offering. There are some challenges with cloud, and that is centralization, and that introduces latency. And even though you can scale applications, let's say you're on Amazon and you can scale you know to Virginia and Oregon and Chicago and LA but you might have someone that's down in Texas and the latency for them to get that data may still not be great and also like your databases specifically tend to be very centralized and so you're creating choke points and all that and so the focus for a lot of use cases that we're addressing now is about decentralizing your data and scaling it across the globe, bringing your data and your logic close to the users that need it. So while you may be in Singapore, you're not having to make a hop across the ocean to Oregon to hit the API and access the database. Or even if the API is scaled, there's still a hop that has to make to the database itself. So bringing everything closer to your user base and because you know we're we live in the world where you know you're on your phone and something takes two seconds and you're like oh why is it taking so long? And it's because like you know like what's going to sometimes it's like going up to outer space to make a request. It's super exciting that that this vision that we've created about scale and simplicity is really starting to catch on. For a while, we were focused on the IoT industry, which is more like micro-compute. And so now this is still Edge, but it's like Edge data centers. And it's not necessarily micro-compute. You can definitely use our product on a Raspberry Pi to synchronize to bigger servers, but having just what you would consider to be a big server, to people is really like powering a lot of cool solutions and making the lives easier for customers and like the people that use those customers. You know one of the things I'm working on like currently right now is just researching you know improving our data replication algorithm and cross node consistency and so making that more battle hardened. It works great now but just making it like looking towards the future and looking towards higher scale and just making this more resilient, more powerful. So I'm just super excited on that from a technology perspective. And also on the custom functions piece, just as people are using it, getting user feedback from that, hearing what their needs are and starting to build out that framework and the underlying SDKs and features that entail that product as well. And it's really, for me, it's about empowering our user base to do awesome stuff.
Let's switch to you, Kyle. Who influences the way that you work? Your name is CEO, CTO, architect, really any person that you look up to and why.
Steven Goldberg, our CEO, he's not involved day to day, I are super close. Uh, and we have a lot of like very like deep talks just sort of about like, what are we working on? Why are we doing the things where it's like, ends up being more philosophical. Uh, Steven was like a religious studies major. Um, and so I think that's where, you know, a lot of that comes from for him, but like, we just have a very good connection and he helps guide me when I'm having a hard time, you know, making a decision or, um, you know, challenge in the organization and also like we've known each other for a long time we're like best friends and so like there's also you know on the personal side of our lives you know we get to also like share like you know great things are happening our lives challenging things are happening our lives and so um yeah I mean he's just a huge support for me but you know I would also say like on top of Steven like who influences my work is uh like my engineering team because I'm always looking for feedback um from them and I learn new things from them all the time and so they also impact me in like many small ways.
Well we talked about a mistake but a little bit different spin. If you could go back to the beginning, what would you do differently? Or where would you consider taking a different approach?
I guess, you know, if I could go back in time and like inject some knowledge from where I am currently, I would, around the whole data storage piece, I would, you know, push myself to change that. But you know, where we were at the time I don't know that I can make that change from a technology side I think more than anything what I would you know say to myself just very personally is like um uh yeah this is serious but try not to take it too seriously like you can still do serious things with a light heart
and
so I think I would give myself that advice is like try not to or try to enjoy this a little bit more and don't be as feeling so afraid I guess I would say and being afraid of failure failure because it's not the end. Failing is not the end. It's just, you know, not to be a cliche, but it's just the start of something new. And it's an opportunity to try something different. So I think it would be less about the technology and more about like me personally, how I would would approach starting the company.
Well, last question, Kyle. So you're getting on a plane and you're sitting next to a young entrepreneur who's built the next big thing. They're jazzed about it. They can't wait to show it off to the world. Can't wait to show it off to you right there on the plane. What advice do you give that person having gone down this road a bit?
Well, one, I would just appreciate their excitement and the stage that they are at in their path, that they're like at the cusp of so much opportunity. The advice I would give is I think the advice I was going to give me from four years ago was, you know, this is a long race. It's not a sprint. Try to make sure that you take care of yourself. and while you know there's a lot of things that you have to do from a work perspective try to focus on you know the people in your life that help fulfill you the things in your life that help restore you whatever those things are going for a walk laughing with a friend you know reading a book whatever that is make sure you spend time on those things and try make sure you meter out your energy as much as you can while this is also a very can be an intense ride at some at times it's gonna and also it's like the the lows while they feel very low are not permanent and look for the, like, when you're in the parts that are really fun, take a moment and, like, feel it and acknowledge it and say, this is good too.
Well, Kyle, thank you for being on the show today. Thank you for telling the creation story of HarperDB.
Oh, my pleasure. Yeah, thank you again for having me on and just, you know, giving me the opportunity to, yeah, tell the story about myself the company and the people in our company.
And this concludes another chapter of Code Story. Code Story is hosted and produced by Noah Labhart. Be sure to subscribe on Apple Podcasts, Spotify, or the podcasting app of your choice. Support the show on patreon.com slash Code Story for just five to ten bucks a month. And when you get a chance, leave us a review. Both things help us out tremendously. And thanks again for listening.