Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrinalxdev/micro_service_rs
A payment micro service in rust and tonic
https://github.com/mrinalxdev/micro_service_rs
Last synced: about 6 hours ago
JSON representation
A payment micro service in rust and tonic
- Host: GitHub
- URL: https://github.com/mrinalxdev/micro_service_rs
- Owner: mrinalxdev
- License: mit
- Created: 2024-04-17T11:11:10.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-19T12:29:11.000Z (7 months ago)
- Last Synced: 2024-04-19T13:44:16.946Z (7 months ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What is RPC used for
Remote Procedure Call also known as rpc, it helps to call external service through functional call rather than just normal http requests. It benefits to the simplicity of the code and make it looks like regular function call even though we are accessing external services. Thats the reasone why rpc's are heavily used in microservice.
> Grpc is built by Google and is commonly used in microservice
Its used coz, microservices can communicate to each other even though they are written in different languages .
# How can they communicate to each other ?
Rpc's function and arguments are defined using an Interface Definition Language called ProtoBuff. Then this ProtoBuffs are used to generate functions stubbs in many different languages.