https://github.com/nikhil25803/grpc-python
A demo gRPC based client-server application with implementation of different types of gRPC calls.
https://github.com/nikhil25803/grpc-python
grpc grpc-python grpcio grpcio-tools protocol-buffers
Last synced: 3 months ago
JSON representation
A demo gRPC based client-server application with implementation of different types of gRPC calls.
- Host: GitHub
- URL: https://github.com/nikhil25803/grpc-python
- Owner: nikhil25803
- License: apache-2.0
- Created: 2024-06-05T17:26:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-08T03:43:45.000Z (about 1 year ago)
- Last Synced: 2025-03-27T17:48:51.683Z (3 months ago)
- Topics: grpc, grpc-python, grpcio, grpcio-tools, protocol-buffers
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gRPC Implementation in Python
A demo gRPC-based client-server application showcasing different types of gRPC calls.
## What is gRPC?
gRPC is an open-source framework created by Google for remote procedure calls (RPC). It uses the HTTP/2 protocol to send messages in binary format. These messages are serialized and deserialized using Protocol Buffers to define data structures and services.
## Types of gRPC Calls

1. **Unary**
- The client sends a single request to the server and receives a single response.
2. **Server Streaming**
- The client sends a single request to the server and receives a stream of responses. The server sends multiple responses and finishes with a status message once all responses are sent.
3. **Client Streaming**
- The client sends a stream of requests to the server. Once the client has finished sending messages, the server processes these requests and sends back a single response.
4. **Bi-Directional Streaming**
- Both the client and server send streams of messages to each other. This happens parallel, meaning messages can be sent and received in any order.
---