

要获得与亚马逊 Timestream 类似的功能 LiveAnalytics，可以考虑适用于 InfluxDB 的亚马逊 Timestream。适用于 InfluxDB 的 Amazon Timestream 提供简化的数据摄取和个位数毫秒级的查询响应时间，以实现实时分析。点击[此处](https://docs.aws.amazon.com//timestream/latest/developerguide/timestream-for-influxdb.html)了解更多信息。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 端点发现模式的工作原理
<a name="Using-API.endpoint-discovery.how-it-works"></a>

 Timestream 使用[蜂窝架构](architecture.md#cells)进行构建，以确保更优的扩展性和流量隔离特性。由于每个客户账户都映射到区域中的特定单元格，因此应用程序必须使用与账户映射对应的正确单元格专用端点。使用时 SDKs，系统会为您透明地处理此映射，您无需管理单元特定的端点。然而，直接访问 REST API 时，您需要自行管理和映射正确的端点。此过程，即*端点发现模式*，如下所述：

1.  端点发现模式从调用 `DescribeEndpoints` 操作开始（如 [https://docs.aws.amazon.com/timestream/latest/developerguide/API_Reference.html](https://docs.aws.amazon.com/timestream/latest/developerguide/API_Reference.html) 部分所述）。

1.  应在返回的 time-to-live (TTL) 值 (the) 指定的时间内缓存和重复使用该[https://docs.aws.amazon.com/timestream/latest/developerguide/API_Endpoint.html#timestream-Type-Endpoint-CachePeriodInMinutes.html](https://docs.aws.amazon.com/timestream/latest/developerguide/API_Endpoint.html#timestream-Type-Endpoint-CachePeriodInMinutes.html)端点。可在 TTL 持续时间内调用 Timestream LiveAnalytics API。

1.  TTL 过期后， DescribeEndpoints 应重新调用以刷新终端节点（换句话说，从步骤 1 重新开始）。

**注意**  
 `DescribeEndpoints` 操作的语法、参数及其他用法信息，详见 [API 参考](https://docs.aws.amazon.com/timestream/latest/developerguide/API_DescribeEndpoints.html)。请注意，该`DescribeEndpoints`操作可通过两者使用 SDKs，并且每种操作都相同。

有关端点发现模式的实施，请参阅[实施端点发现模式](Using-API.endpoint-discovery.describe-endpoints.implementation.md)。