gRPC Gateway SDK
A lightweight SDK that allows you to expose your gRPC services over HTTP/JSON.
This SDK accepts HTTP requests, invokes the corresponding gRPC service methods, and returns JSON responses generated from protobuf messages.
👉 No .proto files are required to use your gRPC services with this SDK.
🚀 Features
- Expose gRPC services via HTTP endpoints.
- Automatically translates:
- HTTP request → gRPC method call
- Protobuf response → JSON response
- Authentication support for internal communication between Gateway ↔ Service:
- Supported auth types:
API_KEYJWT_TOKEN
- Services can define their own header name and value during registration.
- Services can re-register with a new token anytime, and the Gateway will automatically use the updated token.
- Supported auth types:
- Simple service registration API.
- Runs as a standalone HTTP service.
- Easy integration with existing gRPC applications.
🔑 Authentication Support
The Gateway now supports authentication for service communication.
When a service registers itself, it can specify the type of authentication and provide the required header and value.
Currently supported auth types:
- API_KEY
- JWT_TOKEN
Example: Registering a Service with API_KEY Authentication
let result = gateway.service_registry.register;