https://github.com/martincastroalvarez/grpc-python
gRPC server & client using Python
https://github.com/martincastroalvarez/grpc-python
Last synced: about 1 year 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-21T00:43:23.000Z (over 2 years ago)
- Last Synced: 2025-02-14T17:31:34.305Z (over 1 year ago)
- Language: Python
- Size: 212 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grpc-python
gRPC server & client using Python

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
```