Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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