
Build Your Own Redis with C/C++: Learn network programming and data structures by building a Redis-like server from scratch with C/C++
by James Smith
- Length: 123 pages
- Edition: 1
- Language: English
- Publisher: Independently published
- Publication Date: 2023-01-24
- ISBN-10: B0BT2CT8XY
- ISBN-13: 9798372815469
- Sales Rank: #95123 (See Top 100 Books)
Learn network programming and data structures by building a Redis-like server from scratch with C/C++.
- Why build Redis? The knowledge required is broader and deeper than usual application-level development. It’s a good way to level up your skills (mainly network programming and data structures).
- Why from scratch? A quote from Richard Feynman: “What I cannot create, I do not understand”. Human understandings are filled with holes aka “things I don’t know I don’t know”. Building from scratch is a way to ensure your understanding is complete.
- Why C? C is widely used in system programming and infrastructure software. Learn how C is used in real projects, with straightforward C code, no prior C/C++ experience required.
- Why a book? The Redis project is a complex software system built with lots of effort, which can be harder to grasp for beginners. The book breaks down the core concepts into easy-to-digest steps.
Build Your Own Redis with C/C++ 01. Introduction 02. Introduction to Sockets 03. Hello Server/Client 04. Protocol Parsing 05. The Event Loop and Nonblocking IO 06. The Event Loop Implementation 07. Basic Server: get, set, del 08. Data Structure: Hashtables 09. Data Serialization 10. The AVL Tree: Implementation & Testing 11. The AVL Tree and the Sorted Set 12. The Event Loop and Timers 13. The Heap Data Structure and the TTL 14. The Thread Pool & Asynchronous Tasks A1: Hints to Exercises
To access the Link, solve the captcha.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.