Sakshi Nasha

Boosting OpenSearch Performance: gRPC Search in Action

Is your REST API a performance bottleneck? Learn how gRPC cuts OpenSearch latency by up to 22% in high-throughput analytics workloads.

Boosting OpenSearch Performance: gRPC Search in Action
#1about 2 minutes

The API communication bottleneck in OpenSearch at scale

Transport layer overhead from serialization, deserialization, and network transfers significantly impacts performance in large-scale analytics workloads.

#2about 4 minutes

Comparing JSON and Protobuf for efficient data serialization

Protobuf's compact binary format and numerical identifiers dramatically reduce payload size compared to JSON's verbose, text-based structure.

#3about 2 minutes

Clarifying the relationship between Protobuf, gRPC, and REST

Protobuf is a serialization format that can be used with transport protocols like REST or gRPC, which combines it with HTTP/2 for efficiency.

#4about 3 minutes

Automating API synchronization between REST and gRPC

OpenSearch uses an automated conversion pipeline to generate Protobuf definitions from OpenAPI specifications, ensuring REST and gRPC APIs evolve together.

#5about 3 minutes

How to configure and enable gRPC in OpenSearch

Enable gRPC support for bulk, KNN, and search APIs by adding the gRPC port and host configuration to the OpenSearch YAML file.

#6about 3 minutes

Benchmarking gRPC performance for KNN and bulk ingestion

Benchmark results show gRPC significantly improves throughput for KNN vector search and reduces P50 latency by over 22% for bulk ingestion.

#7about 1 minute

Understanding the sources of gRPC performance gains

Performance improvements stem from Protobuf's compact payload reducing network transfer time and HTTP/2's multiplexing enabling concurrent requests.

#8about 1 minute

Choosing between gRPC and REST for your use case

Use gRPC for high-throughput internal service communication like bulk ingestion, while REST remains ideal for simplicity, debugging, and broad compatibility.

#9about 4 minutes

How to contribute to OpenSearch and provide feedback

Get involved with the OpenSearch project by contributing code, especially with Go, or by providing feedback on your experience with the gRPC implementation.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles

From learning to earning

Jobs that call for the skills explored in this talk.