Handwritten RPC core module network protocol module writing -- implementation of codec

The previous foundation has been written. Now let's implement the encoder. Why do I need an encoder? netty is only responsible for transmitting data. It doesn't care what the data looks like. As mentioned earlier, the custom protocol is to organize, transmit and decode the data we want to transmit according to our rules. The encoder is to organ ...

Posted on Mon, 06 Dec 2021 17:33:32 -0500 by AncientSage

Handwritten RPC core module network protocol module -- user defined protocol

Custom protocol? When I first heard this term, I felt so tall! After learning this class later, I found that the so-called user-defined protocol is to define a set of data transmission rules. So you don't necessarily understand We know that only binary can be transmitted in the network, so before RPC requests are sent to the network, they need ...

Posted on Sun, 05 Dec 2021 08:24:20 -0500 by wmguk

java handwritten RPC (07)-timeout timeout from scratch

"Out of date" The longest is waiting We can't wait for one person forever Like a request Always wait for a response timeout handler java handwriting from scratch RPC (01) based on socket implementation java handwritten RPC (02)-netty4 from scratch to implement client and server java handwritten RPC (03) from scratch how to ...

Posted on Wed, 13 Oct 2021 11:09:57 -0400 by joon