【发布时间】:2020-08-08 06:22:50
【问题描述】:
计划是从 aws 数据交换中获取数据,将其移动到 s3 存储桶,然后由 aws athena 查询数据 api。一切正常,只是感觉有点慢。
无论是数据集还是查询,我的雅典娜响应时间都不能低于 2 秒。这对于 API 来说意义重大。我检查了最佳实践,但似乎也超过 2 秒。
所以我的问题: athena 的最短响应时间是 2 秒吗?
如果是这样,那么我必须切换到 postgres。
【问题讨论】:
-
我们使用athena查询一些访问日志,自定义日志调试一些应用。我不确定它是否适合生产端点。如文件所述;
query services like Amazon Athena make it easy to run interactive queries against data directly in Amazon S3 without worrying about formatting data or managing infrastructure. For example, Athena is great if you just need to run a quick query on some web logs to troubleshoot a performance issue on your site. -
aws.amazon.com/athena/faqs/…你可以在这里查看。
-
Amazon Athena 的惊人之处在于它能够查看大量数据而无需将其加载到数据库中。但是,如果您正在寻求快速响应时间,那么您将希望使用数据库,而不是查询引擎。
-
没有看到任何地方提到它,但 Athena 的并发执行限制相当低。软限制从 25 个并发查询开始,但可以增加。最重要的是,StartExecution 的软限制为 20 r/s,最高可达 80 r/s(因此,如果您正在为超过 20 个请求/秒提供服务,其中包括 Athena 查询,那么您可能会在尝试启动查询时遇到问题)
标签: amazon-web-services amazon-athena