mirror of
https://github.com/ByteByteGoHq/system-design-101.git
synced 2026-04-15 22:17:24 -04:00
fix wrong naming in How does gRPC work? section (#28)
This commit is contained in:
@@ -179,7 +179,7 @@ The diagram below illustrates the overall data flow for **gRPC**.
|
|||||||
|
|
||||||
Step 1: A REST call is made from the client. The request body is usually in JSON format.
|
Step 1: A REST call is made from the client. The request body is usually in JSON format.
|
||||||
|
|
||||||
Steps 2 - 4: The order service (gRPC client) receives the REST call, transforms it, and makes an RPC call to the payment service. gPRC encodes the **client stub** into a binary format and sends it to the low-level transport layer.
|
Steps 2 - 4: The order service (gRPC client) receives the REST call, transforms it, and makes an RPC call to the payment service. gRPC encodes the **client stub** into a binary format and sends it to the low-level transport layer.
|
||||||
|
|
||||||
Step 5: gRPC sends the packets over the network via HTTP2. Because of binary encoding and network optimizations, gRPC is said to be 5X faster than JSON.
|
Step 5: gRPC sends the packets over the network via HTTP2. Because of binary encoding and network optimizations, gRPC is said to be 5X faster than JSON.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user