Home icon

Implement multi-tenant search with Amazon OpenSearch Serverless next generation

Big Data Blog



This article explains how to implement cost-effective multi-tenant search using Amazon OpenSearch Serverless next-generation architecture with collection-per-tenant model and per-account regional endpoints.

  • Scale-to-zero compute reduces costs by charging only during active indexing or searching, not idle periods
  • Per-account regional endpoint (account-id.aoss.region.on.aws) routes all collections through single hostname using headers
  • Collection-per-tenant model provides full data and workload isolation between tenants with independent scaling
  • Single OpenSearch client manages all collections using x-amz-aoss-collection-name header for routing
  • Hash tenant IDs to collection names for privacy, staying within 64-character limits, and supporting schema migrations
  • Cold start latency (~10 seconds) occurs when collection group scales to zero; use warmup queries for latency-sensitive tenants

The next-generation architecture makes collection-per-tenant practical by combining scale-to-zero economics with operational simplicity through unified endpoint management.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 8
2026
Amazon OpenSearch Serverless now supports Agentic Search
May 28
2026
The next generation of Amazon OpenSearch Serverless: Built from the ground up for agents
Feb 26
2026
Amazon OpenSearch Serverless introduces collection groups to optimize cost for multi-tenant workloads
Aug 5
2025
Build a multi-tenant healthcare system with Amazon OpenSearch Service

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.