获取特定S3对象的下载计数 [英] Getting the download count of a specific S3 object

查看:185
本文介绍了获取特定S3对象的下载计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有许多可供客户使用的S3对象.由于我想按使用量向客户收费,所以我想知道是否有任何聪明的方法来获取给定文件的下载次数?

I've got a number of S3 objects that are available to my customers. Since I'd like to bill my customers by usage, I wondered if there is any smart kind of way to get the number of times a given file has been downloaded?

或者,我想我可以解析S3提供的日志文件,但是每位客户要抓取10m +次,这可能是一件艰巨的任务.

Alternatively, I suppose I could parse the log files provided by S3, but with 10m+ fetches per customer this might be bit of a task.

有什么想法吗?

推荐答案

如果让他们通过HTTP下载,则可以使用URL缩短程序服务重定向到您的文件(如goo.gl).我想他们可以处理负载,并且在总点击次数旁边还提供了一些不错的统计信息.

If you let them download via HTTP then you could use a URL shortener service to redirect to your file (like goo.gl). I suppose they can handle load and they also provide some nice stats next to total clicks.

这篇关于获取特定S3对象的下载计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆