Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martincastroalvarez/grpc-python
gRPC server & client using Python
https://github.com/martincastroalvarez/grpc-python
Last synced: 12 days ago
JSON representation
gRPC server & client using Python
- Host: GitHub
- URL: https://github.com/martincastroalvarez/grpc-python
- Owner: MartinCastroAlvarez
- Created: 2023-12-16T01:00:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-21T00:43:23.000Z (about 1 year ago)
- Last Synced: 2023-12-21T02:27:24.901Z (about 1 year ago)
- Language: Python
- Size: 212 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grpc-python
gRPC server & client using Python![wallpaper.png](./wallpaper.png)
gRPC is an open-source remote procedure call (RPC) framework initially developed by Google, which enables efficient and easy communication between servers and clients in different environments. It uses HTTP/2 for transport, Protocol Buffers as the interface description language, and provides features like authentication, load balancing, and efficient connection management. gRPC is language-agnostic, offering scalable and high-performance communication particularly suited for microservices architecture. Its design allows developers to define clear service contracts, simplifying the process of connecting systems across languages and platforms. This makes gRPC an ideal choice for building distributed systems and services that require efficient, low-latency communication, such as real-time data processing and cloud-native applications.
## Instructions
Generate gRPC files:
```bash
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. your_service.proto
```Start the server:
```bash
python3 server.py
```Start the client:
```bash
python3 client.py
```