From 0 to 1, build a microservice cluster in ten minutes,

Four proto files have been prepared in advance. Each proto file generates corresponding service code:

  • The comment.proto file defines RPC methods to obtain comment data based on the product ID and is used to generate the comment RPC service code.
  • The inventory.proto file defines RPC methods to obtain inventory data based on the product ID and is used to generate the inventory RPC service code.
  • The product.proto file defines RPC methods to obtain product details based on the product ID and is used to generate the product RPC service code.
  • The shopgw.proto file defines RPC methods to assemble the data required by the product details page based on the product ID and is used to generate the shop RPC gateway service code.

See the detailed code generation process here:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.