Rust Projects Write A Redis Clone by Leonardo Giordani

by Leonardo Giordani · Views: 150 · Format: EPUB · Language: English (en)

Cover of Rust Projects Write A Redis Clone by Leonardo Giordani — Free EPUB on AnyEbooksEPUB

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi 1 Initial Steps 1 1.1 Step 1 - Bind to a port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.2 Step 2 - Respond to PING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.3 Step 3 - Respond to multiple PING . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.4 Step 4 - Handle concurrent clients . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 The RESP Protocol 16 2.1 Step 1 - Define a custom result type . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.2 Step 2 - Extract binary values from RESP . . . . . . . . . . . . . . . . . . . . . . . 19 2.3 Step 3 - Convert binary values to string . . . . . . . . . . . . . . . . . . . . . . . . 25 2.4 Step 4 - Parse the RESP type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 2.5 Step 5 - Parse a RESP simple string . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 2.6 Step 6 - Use simple string for PING . . . . . . . . . . . . . . . . . . . . . . . . . . 31 2.7 Step 7 - Parse generic RESP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 2.8 Step 8 - Parse a RESP bulk string . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 2.9 Step 9 - Parse a RESP array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 2.10 Step 10 - Process PING the right way . . . . . . . . . . . . . . . . . . . . . . . . . 47 2.11 Step 11 - Process ECHO . .

★★★★★

Rate this eBook

File Name:833eb9a400d447855d55f7febf56450d.epub
Original Title:Rust Projects Write A Redis Clone
Creator / Author:Leonardo Giordani
Language:English (en)
Identifier:ASIN:252746
Publisher:Leonardo Giordani Publishing
Category:Non-fiction
Format:📗 EPUB eBook
File Size:3.5 MB

Community Reviews

Loading verified community reviews...

Related Non-fiction Titles