Protobuf Format
HTTP/2 Protocol
Streaming Support
High Performance
gRPC API Proxy Creation Methods
There are several methods to create a gRPC API Proxy:Import from Protobuf (.proto) File
Import from Protobuf (.proto) File
Manual Creation
Manual Creation
Copy from Existing API Proxy
Copy from Existing API Proxy
Import from Protobuf File
Go to API Proxy Creation Page
Upload Protobuf File
Method 1: File Upload
Method 1: File Upload
.proto file is selected from your computer. The file is automatically parsed and service information is displayed.service, rpc, message.Method 2: Load from URL
Method 2: Load from URL
Method 3: Paste as Text
Method 3: Paste as Text
Check Service Information
Package
Services
Methods
Message Types
Streaming Type
Routing Configuration
Client Route (Relative Path)
Client Route (Relative Path)
Upstream Target (Backend Address)
Upstream Target (Backend Address)
gRPC Routing Configuration
Save API Proxy
Protobuf File Structure
A protobuf file generally has the following structure:gRPC Method Types
gRPC supports four different method types:Unary RPC
Server Streaming RPC
Client Streaming RPC
Bidirectional Streaming RPC
Post-Import Configuration
After the API Proxy is created, the following configurations can be made:gRPC Routing Configuration
Adding Policies
Testing
Deployment and Version
Common Scenarios
Scenario 1: Exposing Internal gRPC Service
Scenario 1: Exposing Internal gRPC Service
Upload Proto File
.proto file of your gRPC service is uploaded.Determine Relative Path
/grpc/user-service).Set Upstream Target
internal-grpc.example.com:50051).Add Security Policies
Save and Deploy
Scenario 2: gRPC Service Versioning
Scenario 2: gRPC Service Versioning
Separate Proto File for Each Version
.proto file is used for each version.Different Relative Paths
/grpc/v1/user-service, /grpc/v2/user-service).Separate Policies
Migration Strategy
Scenario 3: Converting gRPC to REST
Scenario 3: Converting gRPC to REST
Create gRPC API Proxy
REST Transformation Policies
Map Methods
Configure Transformations
Best Practices
Protobuf File Quality
Relative Path Strategy
/grpc/{service-name}/{version}Backend Address
mTLS Security
Streaming Performance
Error Handling
Troubleshooting
Import Error
Import Error
- Make sure the protobuf file has valid syntax (proto2 or proto3).
- Make sure all dependencies of the file (imported files) are present.
- Check URL accessibility.
- Make sure the file size is within the limit.
Services Not Visible
Services Not Visible
- Make sure
servicedefinitions in the protobuf file are correct. - Check that the package name is correctly defined.
- Check that RPC methods are correctly defined.
Routing Error
Routing Error
- Make sure the Upstream Target address is in the correct format (host:port).
- Check that your backend gRPC service is accessible.
- Check gRPC Routing configuration.
- Make sure the port number is correct.
Streaming Error
Streaming Error
- Check that streaming methods are correctly defined.
- Make sure HTTP/2 support is active.
- Check timeout settings (longer timeout may be required for streaming).

