使用Firebase和S3 [英] Using Firebase and S3
问题描述
我正在使用firebase和ionic(Angular JS)创建一个应用程序,并且我想知道是否有可能使用amazon s3来托管照片,并将url(来自s3)存储在firebase中,并将其提供给用户。
我想这样做,因为firebase可以得到pricy。
- 这是s3的适当使用吗?
- 另外当从s3使用它的url加载一个文件时,这是否算作一个请求?
- 如果我只用s3来托管,从?我只需要支付存储费用,还是需要其他费用?
- 这是安全的吗?
我强烈建议你看看这,因为它讨论了一些关于你的问题重要的一点,说。让我们来看看你的问题:
lockquote
这是s3的一个恰当的用法吗?
亚马逊的这个 pdf 经历了一些普通的用于S3的用例,从文档多媒体对象将驻留在Amazon S3中,而SimpleDB将负责维护不断更新的
状态订阅源
$ b
另外,当从s3使用它的URL加载一个文件时,这个计数是否为一个请求?
据我所知,它被视为一个获取请求,这取决于你如何在你的应用程序中实现查询,值得注意的是,最初,当你使用Amazon S3注册时,你将会收到5 GB的标准存储空间,以及20,000个获取请求和2,000个请求。
至于其余的问题,我认为你应该把它们分别提出来,并提供更多的细节。
I'm creating an app using firebase and ionic (Angular JS), and I would like to know if its possible to use amazon s3 to host photos, and store the url (from s3) in firebase, and serve it to the user. I would like to do this because firebase can get pricy.
- Would this be an appropriate use of s3?
- Also when loading a file from s3 using its url, does this count as a request?
- If I use s3 for hosting only, where would the cost come from? Would I just be paying fore storage or are there other cost involved?
- Is this secure?
I highly advise you to take a look at this as it discusses a few important points about your question, that being said. let's get to your question:
Would this be an appropriate use of s3?
This pdf by Amazon goes through a number of general use cases for S3, looking at scenario 4 from the document "Multimedia objects will reside in Amazon S3 while SimpleDB will be tasked with maintaining the continually updated status feeds"
Also when loading a file from s3 using its URL, does this count as a request?
As far as I know yes it counts as a get request and it depends on how you implement the query in your application tho it's worth noting that initially, when you sign-up with Amazon S3, you will receive 5 GB of standard storage, together with 20,000 Get Requests and 2,000 Put Requests.
As for the rest of your enquiries, I think you should move them to separate questions and provide more details as they spawn over a number of topics.
这篇关于使用Firebase和S3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!