Latest / Talk Python To Me / #65: Jump on the real-time web with RethinkDB
Transcript
- 0:00Long gone are the days of the web acting just like linked documents and glorified brochures.
- 0:04Web apps of today are just that, rich interactive applications.
- 0:08But unlike your average desktop app, these are apps with hundreds of thousands or even millions of concurrent users.
- 0:14We expect these apps will instantly reflect changes to the data potentially made by any of these many users connected to the system while using them.
- 0:21This has put a strain on the web servers, databases, and architecture in general of our web apps.
- 0:27Technology has responded by delivering amazing real-time capabilities with things like web sockets and signal R at the client layer and event-driven systems on the web servers.
- 0:36But what about the database? Could it be events all the way down?
- 0:40That was the goal of RethinkDB's co-founders when they pitched it to Y Combinator.
- 0:44Now it's time to hear the story of RethinkDB with Slava Akshmet.
- 0:48This is Talk Python To Me, episode 65, recorded June 22, 2016.
- 0:55Welcome to Talk Python To Me, a weekly podcast on Python.
- 1:21The language, the libraries, the ecosystem, and the personalities.
- 1:24This is your host, Michael Kennedy.
- 1:27Follow me on Twitter where I'm @mkennedy.
- 1:29Keep up with the show and listen to past episodes at talkpython.fm.
- 1:32And follow the show on Twitter via at Talk Python.
- 1:35This episode is brought to you by Hired and SnapCI.
- 1:39Thank them for supporting the show on Twitter via at Hired underscore HQ and at Snap underscore CI.
- 1:45Slava, welcome to the show.
- 1:48Thank you. It's good to be here.
- 1:49Yeah, it's really excited to talk about my favorite kind of databases, which are document databases and NoSQL databases.
- 1:58So we're going to dig into RethinkDB today.
- 2:01And you guys have such a cool story and such a cool community that you built up.
- 2:05And we'll get into that.
- 2:07But before we do, let's start at the beginning.
- 2:09What's your story?
- 2:09How do you get into programming?
- 2:10Well, so I was born in Ukraine.
- 2:12And when I was maybe seven or eight years old, my parents got me a machine called ZX Spectrum, which was this tiny computer that plugged into a TV and a cassette player.
- 2:22And they got it for me to play games.
- 2:23But when you booted it, it had a basic interpreter.
- 2:26And somehow, I don't know what happened, but the basic interpreter was more interesting to me than the video games.
- 2:32And I just kind of started learning basic and learning, you know, learning how to type commands and what they do.
- 2:39And eventually I wanted to make games.
- 2:42So, you know, I used the basic interpreter's graphing library.
- 2:46And it was really slow.
- 2:47So that's how I got into assembly because I realized I could speed things up.
- 2:51And, yeah, and that was the beginning.
- 2:54That's a bit of a jump, right?
- 2:56It was.
- 2:56It was a bit of a jump.
- 2:58And at the time, like, there was no internet.
- 3:00So I had to work off of a manual that was kind of printed on a criminal printer and half the stuff was missing.
- 3:06But that's how I got into it.
- 3:08And I just never stopped.
- 3:09Yeah, that's awesome.
- 3:10I've also made that jump from high-level languages to assembly for a little bit of time.
- 3:16And, yeah, I kind of left that behind.
- 3:19But those were basically the options in the early days, right?
- 3:22Basic and assembly.
- 3:24You could pick your extreme and go to it, I guess.
- 3:27Yeah, on the ZX Spectrum, there were really two options.
- 3:30It was the built-in basic interpreter and assembly.
- 3:32There were no compilers.
- 3:34Like, you couldn't get.
- 3:35I don't think you could get a different language on it.
- 3:38So, yeah, it was just those two things.
- 3:41And I figured out how to mix and match them and, you know, do all kinds of cool stuff on that machine.
- 3:46Yeah, I probably learned, like, 75% of everything I know now about programming, just, like, tinkering.
- 3:54It was the ZX Spectrum.
- 3:56And it was the kind of a computer that's similar.
- 3:58I guess it's similar to the Atari.
- 3:59But we couldn't get that in Ukraine.
- 4:01So, you know, I was stuck with that, like, four kilobyte of memory, you know.
- 4:06I couldn't save anything.
- 4:07Couldn't save anything.
- 4:09So that's how I got started.
- 4:10Wow, that's cool.
- 4:11You said it connected to a television.
- 4:13What do you think the resolution in pixels of that thing was?
- 4:16Oh, man, so I don't remember, but I think it was, like, 120 pixels vertical or something like that.
- 4:24It was really small.
- 4:25Probably.
- 4:26Or, you know, it didn't feel that way at the time.
- 4:28No, it felt amazing at the time, right?
- 4:31It felt amazing.
- 4:31Yeah, it was amazing.
- 4:32I'm sure it wouldn't be fun programming it now.
- 4:34Yeah, it's probably a thing better left to nostalgia.
- 4:38Yeah, I was actually thinking about buying it on eBay.
- 4:41Oh, nice.
- 4:42Because they're available and they're pretty cheap, but I never actually got around to it,
- 4:45and I don't know if I ever will.
- 4:46Yeah, nostalgia.
- 4:49How interesting.
- 4:50So let's talk about something a little more modern.
- 4:53You built a pretty amazing database, a document database called RethinkDB,
- 4:58and your tagline is it's a database for the real-time web.
- 5:03What is RethinkDB?
- 5:05Well, so RethinkDB is a NoSQL scalable real-time database.
- 5:09When you start out using it, it's fairly similar to MangaDB in the sense that you could store
- 5:14and retrieve JSON documents.
- 5:15You could scale it out to multiple machines or multiple data centers.
- 5:19But that's pretty much where the similarities end.
- 5:21What's unique about RethinkDB that you can't get in any other database that I know of right now
- 5:28is that it's designed for real-time applications.
- 5:32And the way that it works is in a traditional database, you send a query and get a response,
- 5:36and then you're done.
- 5:37And if you want an update, you have to send another query.
- 5:39And in RethinkDB, you can subscribe to queries.
- 5:43So you could say, I'm interested in the top 10 selling books in my bookstore.
- 5:47And then any time the data in the database changes in the way that updates that results,
- 5:52the database pushes the notification to the application.
- 5:55So if you're building any kind of a collaborative application or a multiplayer game where things
- 6:00change all the time or some analytic software where you need updates right away,
- 6:05RethinkDB is a really, really great database for that.
- 6:08And it's unique, I think, because no one else does that.
- 6:10Where your application is designed around this event-driven model where anytime something
- 6:17changes in the database, you get an event saying, hey, the relevant results that you're interested
- 6:22in are now different.
- 6:23And that makes it dramatically, dramatically easier for people to build real-time apps.
- 6:28Yeah, that's really cool.
- 6:29And that is quite a unique capability.
- 6:32I'm quite sure that MongoDB does not have that.
- 6:35You've got to ask the question over and over to get new answers.
- 6:39In modern databases that aren't RethinkDB, you can kind of fake this by doing various things.
- 6:45Like you could poll and you can ask the same question over and over again.
- 6:49You could subscribe to the replication log.
- 6:52There are things users can do to get a semblance of this functionality.
- 6:56But it's really different when it's baked into the product or project on day one.
- 7:02Because it just opens up a whole world of possibilities.
- 7:05And when it's a higher level feature that you can run on most queries or almost all queries,
- 7:10it opens up so many possibilities that you can't really do by faking it in other systems.
- 7:16Yeah, I totally agree.
- 7:17That sounds great.
- 7:18I recall you telling a story.
- 7:21I heard it somewhere.
- 7:23You sort of talked about the progression of real-time systems, right?
- 7:29So we have the front end being real-time with things like Node.js and SignalR and some of these things that happen on the server.
- 7:37You can get real-time stuff there.
- 7:39But then it kind of stops.
- 7:41Can you maybe tell that story?
- 7:42I think that'll help really cement what your value proposition is.
- 7:47Yeah, so traditionally web applications were built around request response.
- 7:51Like that's how HTTP works, right?
- 7:54You type in a web address in the browser.
- 7:56The browser sends a request to the web server.
- 7:58The web server sends a request to the database to get some information.
- 8:02The database responds.
- 8:03The web server responds.
- 8:04And then you render the page.
- 8:05So that's how web apps were built traditionally.
- 8:08And then things started changing because people realized that to have really immersive experiences,
- 8:15they have to push information to the browser without reloading the whole page, refreshing the whole page.
- 8:20So what started happening is that people started building applications around push functionality.
- 8:25So JavaScript is fundamentally event-driven.
- 8:28And people started building front-end frameworks like Angular and React around the idea of events and event-driven programming.
- 8:35And then as that became available, you needed that on the back end.
- 8:40And we have things like SignalR or WebSockets to allow push to the browser.
- 8:44So on the back end, Node.js is this fundamentally event-driven programming model where you can respond to events.
- 8:51But then when you get to the database, it still requests response.
- 8:54And the idea behind RethinkDB was, well, let's make a full stack event-driven programming, environment programming model,
- 9:02where you don't stop at Node.js, but the database itself is event-driven,
- 9:06where you say, I'm interested in these things.
- 9:09And then anytime something changes, we fire an event.
- 9:12And then Node.js processes that event and pushes that to the browser.
- 9:15And then the browser processes that event.
- 9:16So what that does is it gives you a complete full stack event-driven programming model.
- 9:21And now you don't have to fake events when you go from the Node.js layer to the database layer.
- 9:27The whole thing is event-driven.
- 9:28And that makes just real-time architecture so much easier to deal with and opens up so many possibilities for building apps
- 9:35because things that took a week now take a couple of hours.
- 9:39Yeah, that's really cool because those are hard problems to solve.
- 9:42And if you can just plug the pieces together, that's wonderful, right?
- 9:46Yeah.
- 9:47So for all of these problems, you can kind of hack around them.
- 9:49And people have done that for a long time.
- 9:51I mean, people build real-time event-driven applications before everything could be existed.
- 9:55But hacking around this problem, it takes a long time.
- 9:59People solve the same problem over and over and over again.
- 10:01It's really hard.
- 10:03You kind of need the main expertise.
- 10:05So you need a team of people that really understand this problem and got burned a couple of times by trying to solve it.
- 10:10And the idea was like, hey, let's just abstract this so people never have to deal with this again.
- 10:14Yeah, that's great.
- 10:15Can you give some examples of some apps that people have built or the types of apps people have built?
- 10:20Yeah, so RethinkDB has a pretty huge community.
- 10:22So we have about 200,000 developers building applications on it now.
- 10:26And it's doubling about every three to four months.
- 10:29So people have built all kinds of apps.
- 10:32People have built games.
- 10:34People have built analytics apps.
- 10:36Just anything you can imagine that can be built from mobile or the web.
- 10:39One of our big examples is Fidelity Investments, which is a big investment firm, built a mobile app for their users to manage their accounts in real time.
- 10:49So you open the Fidelity mobile app.
- 10:52All of that is backed by RethinkDB.
- 10:54I think that's probably the biggest use case I can talk about where RethinkDB backs basically like 40 or 50 million users that Fidelity has.
- 11:03Some others like Rethink is used by NASA for some real-time updates on what happens with extravehicular suit activity.
- 11:11So every time astronauts go on a spacewalk, there's a bunch of data that's being generated, being processed in real time.
- 11:17So it's all over the place.
- 11:19People use it for financial applications, for just web apps, for collaborative apps, and for things I personally wouldn't imagine like spacesuit activity.
- 11:29Yeah, that's really awesome.
- 11:30I would have never thought spacewalks would be one of the use cases, but yeah, that's really cool.
- 11:36Yeah, we definitely did not design it with that in mind.
- 11:40I would never think about that in a million years.
- 11:43Let's see.
- 11:44If we set up a VPN from the space shuttle, then...
- 11:47No, just kidding.
- 11:48Yeah, no, it's an SSH connection, probably.
- 11:52Yeah, probably.
- 11:53Okay, so let's talk about the origins of RethinkDB.
- 11:58What gave you the idea that, hey, we should create our own database?
- 12:03Like, that's pretty daunting, right?
- 12:04Before we started, I was in grad school, and I was actually working on mammalian brain simulation on supercomputers.
- 12:12So I knew a lot about just distributed computing, and I knew a lot about the idea of, like, real time.
- 12:19Because in brain simulation, you generate a lot of data that you have to send between multiple machines,
- 12:25and there are a lot of challenges in figuring out how to parallelize all that stuff, because the network is the bottleneck.
- 12:30And my co-founder, who was also at the same university, he was more of a human-computer interaction expert.
- 12:36Like, he basically was really interested in user interfaces.
- 12:39And when we met, we just kind of got together, and we spent, like, hours and hours talking about computing
- 12:44and the future of software and where things are going.
- 12:46And it was obvious to us that the world is really becoming more real-time.
- 12:51Like, there's a ton of data being generated.
- 12:53We generate more and more and more data every day, probably exponentially.
- 12:56And it was very clear that, like, these static user interfaces just aren't going to last very long,
- 13:03and everything's becoming real-time.
- 13:05So we looked at how applications are being built, how they're being deployed.
- 13:08And it occurred to us that, like, there's a lot of innovation around real-time almost everywhere in the stack except the database.
- 13:16And it was just the part we thought was very important to build to advance this mission of kind of unlocking real-time apps for anybody who wanted to do it.
- 13:25Like, what we want to do, and it's our goal even now, is to make real-time be the default.
- 13:31So when you build an app, it should be real-time by default, not static by default, and then people have to do a lot of work.
- 13:37So that's how we got started.
- 13:38And, yeah, building a database is a daunting process.
- 13:40It's a very hard problem.
- 13:41It's a lot of work.
- 13:42But we were excited about, you know, we kind of, we didn't look at the downsides.
- 13:47We mostly looked at, hey, what is this going to make possible?
- 13:50And it was just really exciting.
- 13:52So we never thought about how long it will take.
- 13:54Yeah, sure.
- 13:55And people are successful, right?
- 13:56They have this dream and this vision, and it's like, we're going to make it through the challenging bits, and we're going to create this thing, right?
- 14:03So it sounds like you were really driven to sort of solve that real-time problem.
- 14:07We were.
- 14:08I mean, to be honest, we also thought it would be easier than it was.
- 14:11And we thought it would take a lot less time than it did.
- 14:15So a lot of it was naivete, but it served us pretty well, I think, in hindsight.
- 14:19Yeah, maybe it didn't let you get through.
- 14:23Otherwise, it would have been like, well, that's too much work.
- 14:25Forget it.
- 14:26That's cool.
- 14:26And one of the things you did pretty early on was you went through Y Combinator, right?
- 14:30The accelerator.
- 14:31Yeah, we did.
- 14:32Cool.
- 14:32So what was that experience like?
- 14:34What year was that?
- 14:35So we went through Y Combinator in the summer of 2009.
- 14:38And at the time, me and Michael, my co-founder, we were in New York, and we were in school.
- 14:43And we had this idea, and we applied to Y Combinator.
- 14:47We got an interview.
- 14:48So we flew to California.
- 14:49The interview was like eight minutes.
- 14:52We got in, and we knew we wanted to go to California and start a company.
- 14:57So we just packed up our bags and moved here.
- 14:59And Y Combinator for us was great because we were new to the startup world.
- 15:04We kind of knew a lot about software, but we didn't know a lot about how to start businesses
- 15:08and hire people and manage people and how any of that stuff works.
- 15:12And Y Combinator would invite speakers who were successful in the startup world.
- 15:16And every Tuesday, they'd have a new speaker who would talk about their story.
- 15:19And just that process of listening to people who've built successful things before was extremely
- 15:25useful because it got us in the mindset of what it takes to build something that people
- 15:32really want to use, like build something that makes, that's valuable for a lot of people.
- 15:36So that was great.
- 15:38I mean, it was a phenomenal experience.
- 15:40I'd recommend it to anybody.
- 15:41Yeah.
- 15:42I've never gone through an experience like that, but it sounds really cool and like it would
- 15:46be very beneficial.
- 15:47So, you know, I think when people are new and they're thinking about starting businesses,
- 15:53they often think about the technology, right?
- 15:56Like if we build this app and have the best technology, just this work, just the way that
- 16:03it should solve whatever problem that solving, that's only like 30%, 20% of what it takes to
- 16:10start launch and be successful with a technology business, right?
- 16:14There's all the marketing and the growth hacking and the user outreach.
- 16:18And like how much of those types of things did you learn at YC?
- 16:22We learned a lot about that at YC.
- 16:24It was, I'd say, so everyone who goes to YC is very competent technically.
- 16:30And that was the whole premise of YC, that you get really technically competent people and
- 16:35you teach them all these other things that they need to know to build something successful.
- 16:39So technology itself, I mean, it permeated everything.
- 16:42It was in the background of everything because obviously it's about tech companies, but it wasn't,
- 16:47we didn't learn like how to program at YCM or anything.
- 16:50It was all about how do you build a successful project?
- 16:53How do you grow it?
- 16:54How do you build a product that people really care about?
- 16:57How do you think about markets?
- 16:59Things like that.
- 17:00It was very little of it was about the technology itself.
- 17:03Like the whole thing was under the premise that technology is super important and technology
- 17:09unlocks all kinds of possibilities for people.
- 17:12But everyone at YC was already good at that.
- 17:14So the bigger part, the much bigger part was around all these other things you mentioned.
- 17:18Right.
- 17:18Yeah.
- 17:19So the technology is basically table stakes.
- 17:21Like you don't even get there if you don't have that skill set.
- 17:25But it's teaching you all the things you didn't maybe even know that you needed to know to
- 17:29succeed.
- 17:30Right.
- 17:30Yeah.
- 17:30I think the premise of YCM is if you take technically competent people, all this other
- 17:35stuff, you can teach them.
- 17:36Marketing and growth hacking and all these things.
- 17:39Like it's hard, but it's not rocket science.
- 17:41Like if you can build a compiler, you could probably figure out how to market your product.
- 17:46That's the premise of YC.
- 17:47And the idea was like, hey, there's a lot of information there.
- 17:51It's not very hard, but it's hard to get.
- 17:52So we're just going to teach people all this stuff and see what happens.
- 17:55And I think the proof is in the pudding.
- 17:57Like YC is really successful now.
- 17:59This episode is brought to you by SnapCI, the only hosted cloud-based continuous integration
- 18:21and delivery solution that offers multi-stage pipelines as a built-in feature.
- 18:26SnapCI is built to follow best practices like automated builds, testing before integration,
- 18:31and provides high visibility into who's doing what.
- 18:34Just connect Snap to your GitHub repo and it automatically builds the first pipeline for you.
- 18:39It's simple enough for those who are new to continuous integration, yet powerful enough
- 18:43to run dozens of parallel pipelines.
- 18:45More reliable and frequent releases.
- 18:47That's Snap.
- 18:48One of the cool aspects of RethinkDB is it's open source, right?
- 19:08Like I can go to GitHub and get it.
- 19:10I go to github.com/rethinkDB slash rethinkDB to get the database itself.
- 19:15And it's really popular, right?
- 19:17It has over 14,000 stars.
- 19:19Yeah.
- 19:20So you said that it was one of the biggest C++ open source projects on GitHub or something like that.
- 19:26Is this true?
- 19:27Yes.
- 19:27It depends on how you measure.
- 19:28So if you go to github.com/explore, I think they keep changing the interface.
- 19:33I don't know if you can check this now.
- 19:35But at least they used to be.
- 19:37So you used to be able to look at trending projects.
- 19:39I think that's still available.
- 19:41And you used to be able to look at, like filtered out by stars, by language, by all kinds of things.
- 19:46I haven't done this in a while.
- 19:47But yeah, Rethink has been the biggest trending C++ project on GitHub for a long, long time.
- 19:53Pretty much since we launched it, actually.
- 19:55Yeah.
- 19:56That's really cool.
- 19:57When did you actually launch it?
- 19:58You said you did Y Combinator in 2009.
- 20:00When was there a thing that you let loose on the world?
- 20:03I think it took about three and a half years to get the first version out.
- 20:08My memory is a little hazy on this because it's been a while.
- 20:10But yeah, it's a hard problem.
- 20:12And it took a while to build the first version of the product.
- 20:15How many people worked on it?
- 20:16So right now we're 18 people.
- 20:18But before the first version, I think the whole company was about seven.
- 20:23Okay.
- 20:24It's definitely a big project to undertake.
- 20:26So yeah, very cool.
- 20:28When I look at GitHub, it tells me that it's like 50% C++, 26% Python, some JavaScript.
- 20:36What are the technologies inside?
- 20:39Yeah.
- 20:40So Rethink is pretty complex because it touches almost every part of the stack.
- 20:44And on the bottom of the stack, it touches the operating system and all the APIs that we have to deal with.
- 20:51To do disk access and network access and memory management and things like that.
- 20:54So all of that stuff is done in C++ and even a little bit of assembly, actually.
- 20:58And then around the core C++ database, there are a lot of technologies to connect it to users.
- 21:06So the drivers are done in a lot of different languages.
- 21:09Like there's a Node.js driver, a Python driver, a Java driver, Ruby driver, just drivers for all kinds of languages.
- 21:15So that is written in whatever native language the driver is for.
- 21:20Then there is a lot of code for testing different things, for testing the query language, testing the distributed system, all kinds of tasks.
- 21:28So most of that is written in Python.
- 21:30And then there's a lot of glue code.
- 21:32You know, there are Bash scripts.
- 21:33So we kind of, we try to minimize the number of languages and technologies that we use just to kind of keep it contained.
- 21:40But it, so most of it is C++, but we really have, we have a lot of different things that we use.
- 21:46I'd say the biggest ones are C++, Python, and Bash.
- 21:49And then there are drivers for almost every language.
- 21:52Right.
- 21:52And you pretty much have to use those languages to write them usually anyway.
- 21:56Yeah.
- 21:56Okay.
- 21:57Cool.
- 21:58So when I think about NoSQL databases, you've got the document databases, you've got key value stores and those sorts of things.
- 22:07It feels to me like document databases are the kind of database that you could use as your sole database for your app.
- 22:16Right.
- 22:17There's some things like Redis, DynamoDB, where you probably use it for like some particular use case, but it's not your only data store.
- 22:24What do you think about this idea that document databases could replace your relational database rather than just be another thing that you use in parallel?
- 22:32Well, so databases are fundamentally very horizontal technologies and you could use them.
- 22:37They're applicable to a lot of different problems.
- 22:41And I think that so relational databases used to be this Swiss army knife where you could use them for almost anything because most of the data used to be relational.
- 22:50And now with modern apps, most of the data is not relational.
- 22:55Most of the data is hierarchical.
- 22:57There are a lot of fields missing.
- 22:58You know, it's what we think of as document kind of base data.
- 23:01So I think for most of the modern use cases, object oriented or document databases are really, really versatile and they could be used for almost anything.
- 23:11Now there's still data being generated that's relational.
- 23:14And just like with anything, like you could use relational databases to store document data.
- 23:19You could use document databases to store relational data and it will work fine, but you'll have to hack around a bunch of problems.
- 23:26So I think document databases will be used more and more and more as more data is being generated, more apps are being built, and those are fundamentally not relational data models.
- 23:35So document databases are great for that.
- 23:38I don't think they're going to replace relational databases personally because relational databases are just fundamentally better at storing relational data.
- 23:46And, you know, some people decide to unify their infrastructure.
- 23:49They figure, I don't want two pieces, two technologies managing things.
- 23:53I want just one.
- 23:54And they could put relational data in the document database and it will work just fine.
- 23:58But it's not, you know, it's not ideal.
- 24:01I think that you'd have to hack around a bunch of things.
- 24:04There are some things you can't do.
- 24:05So my view of the world is that people will continue using different specialized technologies for different use cases.
- 24:12And there's always a balance.
- 24:14Like if you use too many specialized technologies, it's too hard to manage.
- 24:17If you use too few, you have to hack around a bunch of stuff and you have operational problems.
- 24:21So there is a good middle ground there.
- 24:23And that sort of feels to me like that's where the world is going.
- 24:26That's what we see most of our customers use.
- 24:28Okay.
- 24:28Yeah.
- 24:29That's a really interesting way to phrase it and to look at it.
- 24:32So what kind of relational features does Rethink have?
- 24:36Like does it have foreign keys?
- 24:38Does it have joins?
- 24:39Does it take transactions?
- 24:41Does it take any of these kinds of things on?
- 24:43Or does it lean more towards the MongoDB style where it foregoes those for other reasons?
- 24:49Okay.
- 24:49So RethinkDB does particularly distributed joins.
- 24:53It does distributed subqueries.
- 24:55So as far as the complexity of a given query, you can do almost anything in RethinkDB and sometimes more than you could in a relational database.
- 25:04So we take on all of those challenges.
- 25:06And particularly distributed joins are extremely useful in almost every use case, actually.
- 25:11So we don't do transactions.
- 25:14At least we don't do transactions for now.
- 25:16There are some proposals and integrating them, but they're still on the drawing board.
- 25:20We don't do foreign keys in the way they're understood in relational databases.
- 25:24So for example, we don't do cascading deletes or things like that.
- 25:28So RethinkDB is much, it has way more relational features than any other document database that I can think of.
- 25:36Like certainly way more than Mongo.
- 25:38But it's not quite as good for relational data as like say Postgres or Oracle or SQL Server or MySQL or one of the many relational database management systems.
- 25:49Okay.
- 25:49Yeah.
- 25:50Very interesting.
- 25:50What does it look like to use this?
- 25:53And maybe you could give us, I don't know, an example from the Python driver, if you know it off the top of your head, or if not, just from any other of the drivers.
- 26:01Like if I create a new project and I want to, I have Rethink running, how do I connect to it and get going?
- 26:08Like what are the steps?
- 26:09You don't have to say code exactly.
- 26:11One of the biggest design goals that we had was Rethink is to make it very, very easy to use.
- 26:16And we literally thought like every extra step that a developer has to go through will cut our user base in half.
- 26:23So we just made it as simple as possible.
- 26:25And we spent a lot of time doing that.
- 26:26The easiest way, I mean, to figure it out is like if you go to rethinkdb.com slash docs,
- 26:31there's like a 30-second tutorial that shows people how to use it.
- 26:34But in Python, it's very simple.
- 26:36You import RethinkDB, and it's just a Python driver for Rethink.
- 26:40You say RethinkDB.connect, and then you run a query.
- 26:43Like for example, it's a table users.insert.
- 26:47You just put a document in there, .run.
- 26:49That inserts the document into the database.
- 26:52It's really, really simple.
- 26:53It's just a couple of lines.
- 26:55Yeah, and you guys have a nice fluent API where you say, I want to create a query, .filter by this, .limited by that, and order it by that, and so on, right?
- 27:03You can chain them together in a really nice style.
- 27:06Yeah, so that was inspired by jQuery.
- 27:08So the goal of the query language was, first of all, to make it seem native in the programming language that people use.
- 27:16So if you're using Python, the query language, I mean, it's just Python.
- 27:19If you're using Ruby, it's just Ruby and so on.
- 27:21And one of the biggest kind of challenges that people run into when they use SQL is if you look at Stack Overflow questions that people asked about SQL, they're kind of different from questions about any other programming language.
- 27:34Like if someone's using Python and you look at Stack Overflow questions, the questions are like, I'm trying to do this.
- 27:39It's not quite working.
- 27:40I don't understand what's going on or how does this function work or things like that.
- 27:45But in SQL, people ask weird questions like, I want to do this.
- 27:49I don't know how to express it.
- 27:50Like, how do I even do this?
- 27:52Right?
- 27:52And that's because SQL was designed for business analysts, and it's kind of like, it was sort of meant to be like English, but it's not really English because it's a programming language, of course, or a query language.
- 28:02So it's kind of challenging.
- 28:04And the goal with Requel was make it be, you know, really, really intuitive.
- 28:08So you start out, and you can think of it as a data flow language, kind of like Bash and Pypes, where you start out with a table, and then you say,
- 28:15I want to run this transformation, and then I want to run that transformation after that, and then you can keep changing things.
- 28:20And it turns out to be really intuitive because people can write queries by just changing on things and seeing intermediate results and incrementally building up the query until they finally get to what they want.
- 28:31So with Requel, it just becomes really, really easy to express what you want in a way that I think SQL could never allow people, just because of the fundamental differences in the design.
- 28:40Yeah, it feels a little more written for programmers in a simple way rather than trying to create yet another language.
- 28:48So yeah, that's really nice.
- 28:50Yeah, for sure.
- 28:50Yeah, that's really nice.
- 28:51So one thing that you guys focus on a lot, and I think it feels like it's a little bit of the influence of your co-founder, Michael, is design and the way it feels to use software.
- 29:04All of the design stuff and usability, that's mostly Michael's doing, and Michael really cares about the user experience.
- 29:12And he takes it from, you know, I mean, it's not just how things look or how many steps you have to go through.
- 29:17He thinks it through to the point of, like, what does the user feel when he interacts with a particular feature?
- 29:24What does the user feel when he interacts with the product as a whole?
- 29:28So he spends a lot of time just thinking holistically about the user experience and the kind of subjective experience the developers go through when they use the product.
- 29:39And that permeates everything.
- 29:41That permeates the query language.
- 29:43That permeates, like, the install process, the art that goes into everything to be and goes into the documentation to make things easy.
- 29:51You know, the website, the admin console, like, all of these things.
- 29:55Yeah, I was thinking specifically the admin console because a lot of databases, the tools that use them feel not so great, right?
- 30:04Like, sometimes you just have a command line interface to it.
- 30:07You know, if you have a UI, it usually looks like it was created by a DBA.
- 30:13You know, something like this, right?
- 30:14It's not a great experience, but you guys have, like, a beautiful, simple-to-use web management interface for your databases, even for, like, sharding and replication and failover and all these kinds of things, right?
- 30:28Yeah.
- 30:29So our hypothesis was that, like, people spend—if you're running a web application, there's a lot you do on the front end, sometimes a lot on the back end.
- 30:39But the database is at the core of the thing, so people spend most of their time writing database queries.
- 30:44And if you think about, like, what's that like for the application developer?
- 30:49Well, that means they spend, you know, six, seven, eight, sometimes more hours a day just dealing with the database product.
- 30:55It's their life at work.
- 30:57And it was very important that that experience is pleasant for them.
- 31:01And that, for me, it's a lot of different things.
- 31:03But one of the biggest ones is we thought that there needs to be almost like a development environment where people feel comfortable, that's easy to learn, easy to experiment with queries, easy to figure out what's going on, easy to test things, play around, easy to figure out what happens in your cluster.
- 31:20So that was the goal of the web UI.
- 31:22It wasn't an afterthought.
- 31:23It was something we thought was very, very important for the people—for our users, right, for developers that are going to use Rethink.
- 31:30Because they spend so much time in it every single day that not adding it or not building it and not thinking it through almost didn't really make any sense.
- 31:39Like, we were really surprised that that doesn't exist in a lot of other database systems.
- 31:45Because if you think about how much time people spend on them, that just seems like a crucial, crucial thing to do.
- 31:50It would almost be like building a compiler without having a text editor.
- 31:54Like, the text editor is a fundamental part of writing programs.
- 31:57It's really, really, really important.
- 31:59Like, you need a good compiler, but without the text editor, like, just the experience of using the compiler would be miserable.
- 32:05Yeah, that's a good analogy.
- 32:06It feels like you guys really focus on making, interacting with the whole system delightful.
- 32:13Yes, that's very important.
- 32:14Yeah, one of the things that really surprised me in a positive way was I heard that you guys have a full-time artist.
- 32:21Like, if you look at your documentation, you have little, like, cartoon characters and stuff to make it feel friendlier.
- 32:28You know, like, if, in particular, I have, like, rethinkdb.com slash docs slash quick start pulled up.
- 32:34And there's, like, a little database walking up to this character.
- 32:37Most database companies I think of are on the opposite spectrum of this type of experience.
- 32:45This is really cool.
- 32:46Yeah, definitely.
- 32:47So, when we were first shipping everything, like, before the first version, we thought it was important to do just basic things that you do, like, you know, branding.
- 32:58Just, like, kind of the things that every open source or every project does in general.
- 33:03So, we hired an artist to do a lot of the work.
- 33:06And Annie kind of came in and she did the original things.
- 33:10But she also had an enormous amount of passion around art.
- 33:13She brought that passion to the company.
- 33:15And it became immediately obvious to, or, you know, very quickly it became obvious to Michael and I that Annie's work and her passion for the art can permeate a lot more than just the basic things, like, you know, the logo and some illustrations on the front page.
- 33:30And she was very adamant about, like, hey, this could really change the experience of people interacting with the product.
- 33:39And because Michael is a user-experienced person, like, he immediately grabbed onto this idea.
- 33:43And Annie did a couple of things early on.
- 33:46Like, she made the dog.
- 33:47She made illustrations for the documentation.
- 33:48And people started commenting on it.
- 33:50Like, on Twitter, people would say, wow, that makes everything feel way more accessible.
- 33:54She brought that passion into the company.
- 33:57And then it was just obvious that it makes everything way better for our users.
- 34:01And no one else does that.
- 34:03So, it was also kind of differentiating for the company because people notice it.
- 34:06She, like, added this whole new dimension of interacting with the software project that you don't often see in other projects.
- 34:13Yeah.
- 34:13I'm sure you guys are really delighted.
- 34:15Like, wow, this really does make this so much friendlier.
- 34:18It's cool.
- 34:20I really like it.
- 34:21It's a nice touch.
- 34:21Yeah.
- 34:22It's kind of unobvious at the beginning that that would matter.
- 34:25But then when we did a couple of these things and, like, everyone started noticing and people started commenting, like, wow, this makes everything way more accessible.
- 34:31We were like, yeah, we need to do more of this.
- 34:33Yeah, for sure.
- 34:34This portion of Talk Python To Me is brought to you by Hired.
- 34:49Hired is the platform for top Python developer jobs.
- 34:52Create your profile and instantly get access to 3,500 companies who will work to compete with you.
- 34:57Take it from one of Hired's users who recently got a job and said, I had my first offer on Thursday after going live on Monday and I ended up getting eight offers in total.
- 35:05I've worked with recruiters in the past, but they've always been pretty hit and miss.
- 35:08I tried LinkedIn, but I found Hired to be the best.
- 35:11I really like knowing the salary up front.
- 35:13Privacy was also a huge seller for me.
- 35:16Sounds awesome, doesn't it?
- 35:17Well, wait until you hear about the sign-in bonus.
- 35:20Everyone who accepts a job from Hired gets $1,000 signing bonus.
- 35:23And as Talk Python listeners, it gets way sweeter.
- 35:26Use the link Hired.com slash Talk Python To Me and Hired will double the signing bonus to $2,000.
- 35:31Opportunity's knocking.
- 35:33Visit Hired.com slash Talk Python To Me and answer the door.
- 35:43Can you talk about the community around RethinkDB?
- 35:46It's grown really quickly.
- 35:48You've got a very passionate user base.
- 35:50You guys do a lot to engage the community.
- 35:53Can you talk about some of the things you do?
- 35:54Yeah.
- 35:55So the user community is one of those things that's also the core of the company.
- 36:01We thought it's very important to do good community building and connect with our users.
- 36:08And usually what happens with open source is people, they'll build up for the idea that people have about open source is you build a software and you make the source code available.
- 36:17But that doesn't make a community happen, right?
- 36:19And actually, most of the work is done by Michael.
- 36:22And we have someone here, Christina Kielan, who does a lot of community management.
- 36:26She's absolutely amazing at it.
- 36:28And so the way we approach the idea of building a community is everyone who uses RethinkDB or contributes to it in any way is kind of equal.
- 36:38And we, the employees of the company, we just happen to be paid for our work, but we're also just members of the community.
- 36:44And what that means is it's not just about publishing the source code.
- 36:48It's about doing everything openly so that users could communicate with us.
- 36:53Like, for example, we do all design discussions on GitHub.
- 36:56And it's, you know, our employees comment on features and design proposals and things like that.
- 37:02But they do it with our users because anybody in the world who's using RethinkDB can go on GitHub and say, hey, I think this should be done this way.
- 37:10People can contribute.
- 37:11So the whole thing is done in the open.
- 37:12And that is huge for fostering a good community because people feel invested in the project and they feel like, you know, their opinions are really going to be heard and that they can kind of drive the direction of the project.
- 37:24They can drive the direction of the features, how they're going to be designed.
- 37:26So that's one of the things that we do.
- 37:28The art is really important.
- 37:29We do a lot of local meetups.
- 37:31We try to engage everyone on social media, you know, on Twitter, Facebook, things like that.
- 37:37So community is just, it's about as fundamental to RethinkDB as the software itself.
- 37:43And we take it really seriously and we think through a lot of the interactions, you know, how users feel, how they interact with the project.
- 37:50So it's been a pretty big deal for us.
- 37:53And at the beginning, like, we didn't know whether any of this was going to work.
- 37:56But then the community grew really, really quickly.
- 37:58And, yeah, it turned out to be really important.
- 38:01That's great.
- 38:01It's one of the really cool aspects of open source, right?
- 38:06And you guys have a successful, thriving business based on a thing that I can go to GitHub, click download as a zip file or a clone.
- 38:17And I have the product, basically.
- 38:20And so I'm really fascinated and delighted when I see companies making successful businesses out of open source projects.
- 38:29Can you talk about what it's like to run a business where the main thing you have is sort of given away or out in the open?
- 38:38Yeah.
- 38:39Yeah.
- 38:39Sometimes I talk to my dad about that and he still doesn't understand how this works.
- 38:43He's like, okay, so you give away the product for free and anybody can get it for free, right?
- 38:48Like, how does that work?
- 38:49Yeah.
- 38:50And so what happens with, particularly with RethinkDB is our goal was to make it available to anybody who wants it.
- 38:59And if the product is good and the world is really going in the direction of real time, then eventually RethinkDB will be in most of the development steps.
- 39:07So what we wanted is to make it accessible to anybody who wants it.
- 39:10Like if it's a student who's building a new project or experimenting with new ideas or a hobbyist, they should be able to get it for free.
- 39:16But with a product like a database, it's very easy to run it on your laptop and you don't need to pay for it.
- 39:23You don't need any support.
- 39:24But if you're a big organization that's deploying RethinkDB across five data centers around the world,
- 39:30there are enormous amounts of operational challenges that these companies have to deal with.
- 39:35And they're pretty risk averse too.
- 39:37So, you know, they can't, you know, if you're deploying a big application across the world, like it can't fail.
- 39:43You have to make sure you do health checks.
- 39:46You have to make sure everything works right.
- 39:48So for companies like that, we sell support and services.
- 39:51And most of the revenue comes from that.
- 39:54And that wouldn't work for every open source project.
- 39:57Because, for example, if you're selling like a developer tool, like a text editor, there is no operational component in it.
- 40:03But for open source projects that have a big operational component, like it has to run 24-7, people take that very seriously and they buy support, you know, in big organizations.
- 40:13So that's how the business works.
- 40:14And it's not applicable to every open source project.
- 40:19It's only applicable to open source projects where there's a big operational part.
- 40:23If there isn't a big operational part, there may or may not be open source business there.
- 40:28I don't know exactly.
- 40:30But for us, it's the big, large-scale operational component that makes the financial aspect of the company work.
- 40:37Yeah, that makes a lot of sense to me.
- 40:39I guess if you're building a product where you draw the architectural diagram and your product is on the bottom or if it's like a hub and spoke and your product is in the center, that's a thing that can't fail.
- 40:52And databases cannot fail, not in the sense that it has a bug or something.
- 40:58But, like, if somehow it goes down or you can't connect for it or it doesn't replicate, like, all sorts of bad stuff happens when the data stops flowing, right?
- 41:07So you're right that you're in somewhat of a unique place where this is really something that people depend upon.
- 41:14Yeah, absolutely.
- 41:16And another thing about databases is that Rethink is really easy to use, probably about as easy as any other project you can think of, but, you know, with the same complexity.
- 41:26But it's also, at the same time, databases are fundamentally complex and distributed databases are even more so.
- 41:32So we make it very, very easy.
- 41:34I mean, you can distribute everything to be in the click of a button.
- 41:36But if you have enormous amounts of data and many, many data centers, people will pay for support just for the safety of knowing that if something goes wrong, they can pick up the phone and their problem will be solved.
- 41:48And it's really, really important because their businesses depend on it.
- 41:51So, yeah, for distributed databases like Rethink, that's what makes the whole thing work.
- 41:55There are examples.
- 41:57So, for example, with, like, web servers, they're relatively simple and they're really robust now.
- 42:01So you wouldn't necessarily buy support if you use, like, Nginx or Apache.
- 42:04So Rethink is definitely in a unique position.
- 42:08I wouldn't necessarily take this lesson and apply it to every open source project.
- 42:12Right.
- 42:12But if you think it through a little bit, there are a lot of projects where this methodology applies.
- 42:17Absolutely.
- 42:17Every project kind of has to find its way.
- 42:20You know, I had Pablo Hoffman from the Scrapey, the open source web scraping project on.
- 42:27And what he ended up doing to sort of build a business around the web scraping library was to create web scraping as a surface and have, you know, one click, push your code to the cloud and we'll handle all the infrastructure and management and scaling.
- 42:43I mean, there's all these different ways.
- 42:45And I just found that to be fascinating.
- 42:47There's all these different ways in which you can do it.
- 42:49But I think giving everybody in the Python community, the open source community examples and a bit of a look inside is really cool.
- 42:57So you talked about having your database be in the whole, basically the interaction with Rethink in general, being as simple as possible and easier than everything else.
- 43:08Do you ever feel like, I guess, is there a tension between, hey, we could make this even easier and, oh, but if that's easier, we might get less support calls about this.
- 43:22Is that a tension that you balance or do you just always go for improving the product and then go from there?
- 43:29So in practice, this turns out not to be a tension that's actually important.
- 43:33Because if you look at, I mean, this isn't unique to everything to be.
- 43:37This is pretty much any operational product like this.
- 43:41If you look at where most of the revenue comes from, it comes from really, really big customers.
- 43:46And if we think it doesn't matter how easy we make it used, we make it be like big customers will still have enormous challenges that very few people face.
- 43:55It doesn't matter which product they use.
- 43:57Like we make their challenges go away, but they still have to pay for support.
- 44:01So the tension comes in play when you're talking about smaller customers.
- 44:05But smaller customers don't really pay that much for databases anyway.
- 44:09So, you know, if you're trying to maximize revenue, you can pretty much not worry about like really small businesses because they won't pay that much anyway.
- 44:18And you can focus on selling, on making, you know, the commercial aspects of the project really compelling to big companies.
- 44:25And for that, there is no tension between ease of use and revenue whatsoever.
- 44:29For smaller businesses, yeah, there's a little bit of that tension.
- 44:31But if you look at the numbers, it turns out not to be that important.
- 44:35So we never really think about it.
- 44:36We make it as easy as possible every time.
- 44:39Cool.
- 44:39That makes a lot of sense.
- 44:40I mean, big companies just want reassurances, right?
- 44:46When you're a 50,000 person business and the thing that you guys sell depends on the data that keeps flowing, it doesn't matter if you can push a button to like scale.
- 44:55They want somebody that will take away the risk around that, right?
- 44:59Yeah, it's taking on the risk.
- 45:00It's also things like training.
- 45:01Like, for example, most of our big customers, like the teams that interact with RethinkDB, you know, they can be up to 100, 150 people.
- 45:11And it's not that 150 people necessarily like work with Rethink itself, but they're somehow related, you know, to the application or the operations of it or something that's relevant.
- 45:21So you have to train.
- 45:22If you think about it from a high level perspective, like you have to train 150 people to use this new product.
- 45:27Like, yeah, they could learn it on their own.
- 45:29They could go online.
- 45:30They could read the documentation.
- 45:31But we have structured courses where we can come in and we can teach people and get them up to speed very, very quickly and get them to be productive.
- 45:39So it's big companies have a whole different layer of challenges that they face.
- 45:44And they have usually more money than time.
- 45:46Yeah.
- 45:47So they're happy to trade one for the other.
- 45:48And that's essentially what we do.
- 45:50Sure.
- 45:50If you have to get 100 people up to speed on something, training is so much more often the right answer to do it in a week or two rather than say, okay, everybody, go figure this out and we'll get back together.
- 46:01Yeah.
- 46:03Yeah.
- 46:03So you guys just had a release.
- 46:06What was it?
- 46:062.3 that you added a bunch of new features.
- 46:09Do you want to highlight that?
- 46:09Yeah.
- 46:10So we do.
- 46:11One of the things about our releases is we try to do frequent releases.
- 46:15We try to release a new version of Rethink every two to four months, depending on how things go.
- 46:20So the 2.3, we had user accounts, we had encryption, we added official Windows support.
- 46:25So a lot of these features, they're a little bit boring in the sense that most of these were built for bigger companies.
- 46:30Like as we get more and more big customers, they have demands that may not be necessarily important to developers that like download Rethink and try to build a simple app.
- 46:39But yeah, RethinkDB 2.3 had a lot of features like that.
- 46:43We're kind of targeted at big customers.
- 46:44They were targeted at scale.
- 46:46Things like encryption, compliance, like a lot of stuff like that.
- 46:49In RethinkDB 2.4, which is coming out, we are adding a lot more things to the query language that are going to be really, really exciting.
- 46:57We're adding real-time aggregations so people can do real-time analytics much easier.
- 47:04We're kind of expanding Requel to support new terms.
- 47:07There's going to be a lot of exciting stuff pretty much for everybody.
- 47:11Okay.
- 47:11That's awesome.
- 47:13Yeah.
- 47:13Yeah.
- 47:13Some of those enterprise features, they don't make you jump up and down with excitement.
- 47:17But that's critical to being adopted in these big companies.
- 47:21And that's an important part of the business, right?
- 47:25Yeah.
- 47:25I mean, it's really important.
- 47:27If you're running a database across multiple data centers over the internet, encryption is extremely important.
- 47:32So we have to add that.
- 47:33It's not necessarily that exciting, but it's kind of a showstopper for a lot of big companies.
- 47:38Yeah.
- 47:39Is there a Rethink as a service?
- 47:41Like, can I go somewhere and pay $10 a month and have a small Rethink cluster I can work with or something like this?
- 47:49Yeah.
- 47:50So there are a couple.
- 47:51The biggest one is actually done by IBM.
- 47:53They bought a company called Compose.io.
- 47:55You can go to compose.io.
- 47:57And they host, actually, like most documentary-oriented databases.
- 48:00So they do RethinkDB, MongoDB, Elastic, I think a couple of others.
- 48:05It's pretty inexpensive to get started.
- 48:07It's very cheap if you just want a single node.
- 48:09And then they allow you to scale up pretty much as much as you want.
- 48:12So Compose.io is probably the easiest way.
- 48:15There are a couple of others.
- 48:16And, of course, people can run it on Amazon themselves.
- 48:19There's lots of different options.
- 48:21But most users that want Rethink as a service use Compose.io right now.
- 48:24Okay.
- 48:25Yeah, that's cool.
- 48:26Nice of that's out there.
- 48:27So while we're talking, I'd like to talk about Horizon.js.
- 48:32So tell me what Horizon.js is.
- 48:36So Horizon.js is a new project that we just launched a couple of weeks ago.
- 48:40It's built on top of RethinkDB, and it was an experiment that I actually think turned out to be really successful.
- 48:46So what happened was the motivation behind Horizon, like what happened was a lot of users who were new to databases,
- 48:53they wanted to build apps, mobile apps, web apps.
- 48:56So they'd go on the bug tracker, and they'd say, hey, I'm trying to access the database from the browser, and it doesn't work.
- 49:03And, of course, it wouldn't work because databases fundamentally have to be accessed from a back end.
- 49:07And people kept asking this question, and we thought, hey, maybe we can make it easy to access the database from the browser.
- 49:13So we built Horizon, which is a prefabricated back end, and what it lets people do is build JavaScript apps without writing any back end code.
- 49:21So you can build a mobile app or a web app, and the back end, all of the back end is handled completely by the Horizon project.
- 49:28You just start Horizon.
- 49:29It's basically a server.
- 49:31It connects to RethinkDB, and then all you have to do is write code on the front end,
- 49:36and then all the back end stuff will be handled by Horizon itself.
- 49:39So what that does is it makes building real-time apps dramatically easier, again,
- 49:44because you don't have to write a single line of back end code.
- 49:47And the goal behind Horizon was as people build more sophisticated apps,
- 49:51they're going to, of course, need to write back end code.
- 49:54So when the app gets complex enough, you can stop using Horizon as a standalone server and import it into Node.js
- 50:00and start writing back end code and still use all of the Horizon services.
- 50:04That's Horizon, and we didn't know how important it was going to be.
- 50:08We wanted to try it.
- 50:09It seemed like it would make a lot of people's lives easier.
- 50:11And right now, so we launched it a couple of weeks ago.
- 50:13I think right now Horizon already has a quarter of RethinkDB's user base.
- 50:17So it turned out to be pretty successful, and it's growing.
- 50:21It makes building things easier.
- 50:22Yeah, people must have really been waiting for that.
- 50:25So interesting that it basically, it's not so much a front end thing as it is a back end with an API
- 50:33to alleviate the need for front end people to write back end code that they probably would rather not write anyway.
- 50:39Yep, that's exactly what it is.
- 50:41Horizon doesn't, so it does come with a small front end library,
- 50:44but it's meant to be used with React or Angular or one of the many, many front end frameworks.
- 50:52We don't actually do very much front end.
- 50:54It's just, it helps front end developers build apps without writing back end code.
- 50:59That's kind of all Horizon is, but it's a lot.
- 51:01Because it turns out that there's an enormous amount of plumbing that people have to deal with over and over and over again,
- 51:07and Horizon just takes care of that.
- 51:08Yeah, that's cool.
- 51:09And what's it written in for the back end?
- 51:13Is that like a custom Node.js server or something different?
- 51:16Yeah, Horizon is all Node.js.
- 51:18Yeah.
- 51:19When you said you can take it and plug it into Node, I figured you guys must just be going,
- 51:24here's the Node thing you've got to run, and if you want, you can put it into your app, right?
- 51:28That's cool.
- 51:29Yeah, that's exactly how it works.
- 51:30Can you talk about the popularity of various back ends for Rethink TV or middle tier, I guess?
- 51:37How frequent is it that people are working with it from, say, Python versus Node versus Ruby?
- 51:42Do you know those numbers?
- 51:44So I actually, I don't know these numbers off the top of my head.
- 51:47My intuition is that most of the users, everything could be used in Node.js.
- 51:52I think Python is the second biggest, and Ruby is very close.
- 51:57Java is really popular in enterprise environments.
- 52:00.NET is really popular in enterprise environments.
- 52:03I think Node is still the biggest.
- 52:04I honestly don't know the exact breakdown.
- 52:07And it's kind of actually hard to figure out because the drivers are accessible through the package managers for their respective language.
- 52:15And some of them have statistics, some of them don't.
- 52:18Like, some of them measure statistics differently, so it's fairly hard to compare.
- 52:22Yeah, apples, oranges, yeah.
- 52:25Yeah.
- 52:25Okay, interesting.
- 52:26I noticed something that you guys have on your Horizon project that's in private beta.
- 52:33Well, it's almost all that way because it's just so brand new, right?
- 52:37But it is this thing called Horizon Cloud.
- 52:40What's that?
- 52:40Well, so Horizon Cloud is a way for people to deploy and manage and scale Horizon applications.
- 52:47So the whole stack is open source, right?
- 52:49Rethink TV is open source.
- 52:50Horizon is open source.
- 52:51Anyone can download them.
- 52:53Anyone can build an app.
- 52:54You can deploy the app any way you want, you know, on Linode or AWS or Azure or pretty much in any way that you want.
- 53:02But deploying an app at scale is still pretty challenging.
- 53:08And what we learned from our customers is very often, you know, they'll make these huge Rethink TV and Horizon deployments.
- 53:17And they'll call us and, you know, they'll buy a support contract and we help them out with a lot of these deployments.
- 53:23So in this process, we learned a lot about best practices.
- 53:27We learned about the patterns of, you know, how to scale big applications, how to scale big Rethink TV clusters.
- 53:32And Horizon Cloud takes, it's basically software as a service or platform as a service.
- 53:38It takes all of that knowledge and operationalizes it in a service.
- 53:41So the goal is if you want to deploy a massive Horizon or Rethink TV application, you can do it yourself because everything's open source or you could use Horizon Cloud and then we'll deal with all of the deployment and scaling and management issues.
- 53:55So that's the goal of Horizon Cloud.
- 53:57It basically makes, it takes away all the headaches of deploying and managing and scaling these applications.
- 54:03Interesting.
- 54:03So it sounds like it takes some of the consulting work that you might have been doing and turns it into like a framework or an offering that's automatic in some sense.
- 54:14Yes.
- 54:15Yeah, that's exactly what it does.
- 54:17And the goal with Horizon Cloud is so you could deploy, Horizon Cloud right now is building the Google Compute Engine.
- 54:23So we'll deploy everything to Google Compute.
- 54:26But eventually Horizon Cloud will run on pretty much any backend cloud service.
- 54:31So people will be able to pick.
- 54:33And for enterprise customers who don't necessarily want to run on the cloud, they'll be able to run Horizon Cloud on their own internal infrastructure.
- 54:39Okay.
- 54:40Yeah, that sounds awesome.
- 54:41So congratulations on the launch with Horizon because that really looks like something people were waiting for.
- 54:48Yeah, we're very excited about it.
- 54:50It was a lot of work and a different kind of work from building a database, but people seem to really like it.
- 54:55Yeah, it's cool.
- 54:56You know, you get really successful as the one thing like RethinkDB.
- 55:00And you think, well, how are we going to make another thing that's equally successful, right?
- 55:05It's really challenging but also interesting to create these new products that somewhat level up on each other but at the same time are new things.
- 55:14So, yeah, nice.
- 55:15Yeah, it's really exciting.
- 55:16And you kind of get better at building products after a while.
- 55:18So, I think building Horizon was certainly easier than building RethinkDB, but it was still pretty challenging.
- 55:24Yeah.
- 55:26It feels to me like whenever you build a product, an app that's going to ship somewhere major or something like that, you feel like you're almost done.
- 55:33And then there's like a hundred little small things that you keep having to do.
- 55:38And it just takes way longer.
- 55:40So, when you finally do ship, it feels great.
- 55:42Oh, yeah.
- 55:42Yeah, it takes way longer even if you plan for it.
- 55:45It still takes longer.
- 55:46You tell yourself it's going to take twice as long and it still doesn't feel right that it takes a long.
- 55:50Awesome.
- 55:51So, we're just about out of time.
- 55:54Let me ask you a couple of questions before we call it a show.
- 55:59The question I always ask my guests when they're, and so we get to the end of the conversation is, when you write code, what editor do you use?
- 56:07Emacs.
- 56:08Always Emacs for me.
- 56:10Emacs, right.
- 56:10You have a big Lisp background, right?
- 56:13Like you started out doing a lot of Lisp code.
- 56:15Is that correct?
- 56:16Yeah, I was really excited about Lisp for a long time and to a large degree I still am.
- 56:20I still am, although we don't use it at RethinkDB.
- 56:23We use a lot of ideas that come from Lisp, but not the language itself.
- 56:26But, yeah, I was very excited about Lisp, Common Lisp, and I got into Emacs and Emacs Lisp.
- 56:31So, that part of my background, like I still use Emacs every day.
- 56:35Honestly, I don't think I'm ever going to switch to anything else.
- 56:38Yeah, it's awesome.
- 56:39That just sounds impossible.
- 56:40It's a world you cannot imagine, right?
- 56:43Mm-hmm.
- 56:43Yeah, funny.
- 56:44Okay, and then while you have everyone's attention, any final calls to action?
- 56:49How do they get started with Rethink?
- 56:51Who's maybe listening from the RethinkDB community?
- 56:53You guys are amazing, and you make everything worthwhile, and you make the product better.
- 56:57For anyone who hasn't used RethinkDB, I'd encourage you to go to RethinkDB.com.
- 57:02You can download it in a couple of seconds.
- 57:04You could get started very, very quickly.
- 57:05And we're on Twitter at RethinkDB.
- 57:07If you have any questions, we're always there to help out.
- 57:10All right, fantastic.
- 57:11So, this has been a really interesting look inside your company, building open source projects, a cool, fresh new database.
- 57:18Thanks for taking the time to chat with us all.
- 57:20Yeah, it's my pleasure.
- 57:21Thank you for having me on the show.
- 57:22Yep, bye-bye.
- 57:31Are you or a colleague trying to learn or improve your Python?
- 58:00Have you tried books and videos that just left you bored by covering topics point by point?
- 58:04Check out my online course, Python Jumpstart by Building 10 Apps, at talkpython.fm/course to experience a more engaging way to learn Python.
- 58:13And if you're looking for something a little more advanced, try my WritePythonic code course at talkpython.fm/pythonic, or recommend it to a friend or colleague.
- 58:22You can find the links from this show at talkpython.fm/episode slash show slash 65.
- 58:28And be sure to subscribe to the show.
- 58:30Open your favorite podcatcher and search for Python.
- 58:32We should be right at the top.
- 58:34You can also find the iTunes feed at /itunes, Google Play feed at /play, and direct RSS feed at /rss on talkpython.fm.
- 58:42Our theme music is Developers, Developers, Developers by Corey Smith, who goes by Smix.
- 58:46You can hear the entire song at talkpython.fm/music.
- 58:49This is your host, Michael Kennedy.
- 58:51I really appreciate you all taking the time to listen, give feedback, suggestions on shows, and sharing it with your friends.
- 58:56Smix, let's get out of here.
- 58:59Outro Music.
- 59:20Bye.