Connection details
- Default port: 50051.
- Protocol: gRPC over HTTP/2.
- Serialization: Protocol Buffers (protobuf).
Benefits of gRPC
gRPC offers several advantages over REST for vector database operations.- High performance: binary serialization is faster and more compact than JSON.
- Low latency: HTTP/2 multiplexing reduces connection overhead.
- Type safety: strong typing with Protocol Buffers.
- Bidirectional streaming: support for streaming requests and responses.
- Code generation: automatic client generation from .proto files.
When to use gRPC
Choose gRPC endpoints when you need:- Minimal latency for vector operations.
- High-throughput batch processing.
- Microservices architecture with service-to-service communication.
- Streaming data operations.
- Strong typing and contract-first API design.