Free e-book
Build a Database Server
Learn how real databases work by following this practical guide to building your own
Start your database adventure today
A Leanpub Community Edition is part or all of a Leanpub book which the authors are providing to you for free, in exchange for you sharing your email address with them. Leanpub is a self-publishing platform, and our Community Edition feature allows authors to make everything from one chapter to the entire book available for free. We don't earn any money from it, and we provide the feature so that authors can offer subsets of their books in exchange for email addresses.
Community Edition
Last updated on 2025-07-07
When you click Get My Free Ebook, we will send you a link to your email address provided above. When you click that link, we will create a Leanpub account for you, and you will be able to download the Community Edition from your Leanpub library.
By clicking Get My Free Ebook you agree to share your name and email address with the author(s) of this book, and to join their mailing list if they have one. You also agree to Leanpub's Terms of Service and Privacy Policy.
Build a TCP server to

What is it all about?
Build a Database Server guides you through building a database server from scratch. The community edition lets you preview the book and start your implementation.
What you'll learn
The community edition contains the books introduction and first chapter, including:
- What Makes SQL Special which explores why SQL has become the dominant way to communicate with databases
- The Server which is the first implementation chapter where you will build a TCP server that can send and receive data to a client. You can complete this in a language of your choice and the chapter contains specific hints for how to get started in Ruby, Node and Python.