存储和检索文件的最佳方法 - 巴斯或者S3巴斯、文件、方法

2023-09-11 09:39:55 作者:孤,不可无你

我们正面临以下困境:

我们的移动客户端应用程序将用户认证通过巴斯(后端作为一种服务),然后将需要的文件发送到云 - 特别是亚马逊EC2服务器的主处理会发生。由于文件以后可能发生的处理时,有必要对存储文件(和也有保持他们的档案作为由用户将来使用的前景)。现在的问题是你会建议从下面的preferred方式: 一)将文件发送到直接在EC2服务器,会发出一个Amazon S3的要求,将文件保存有 或 B)将文件存储到巴斯(这在我们的例子是parse.com它使用S3作为其数据存储),后来由EC2服务器检索

Our mobile client application will be user-authenticating through a BaaS (Backend-as-a-Service) and will then need to send a file to the cloud - specifically an Amazon EC2 server where the main processing will take place. Since the time of processing of the file might take place later, there is a need to store the files (and there is also a prospect of keeping an archive of them for future use by the users). The question is what would you suggest as the preferred way from the following: a) send the file to the EC2 server directly which will then issue an Amazon S3 request to save the file there OR b) store the file to the BaaS (which in our case is parse.com which uses S3 as its data-storage) and retrieve it later by the EC2 server

传送从EC2文件到S3和逆的成本为0,只要​​两者在相同的区,其在两个a)和b)的情况下是真实的。的问题是,有必要进行映射的每个用户的文件,他有权访问和a)和b)的不同之很多在这种情况下。

The cost of transferring a file from EC2 to S3 and inverse is 0 as long as both are on the same region which in both a) and b) cases is true. The problem is that there is a need for mapping each user to the files that he has access to and a) and b) differ a lot in this case.

推荐答案

所以基本上你发送文件到EC2 - EC2正在处理,并将其保存到S3,或者只是将其保存到S3 ??我用了一个很从EC2将数据传输到S3的简单方法。即s3fuse: - 你基本上可以安装EC2驱动器,S3,所以当你的东西存放在EC2上,它会自动存储在S3也。可能是方便为您服务。

So basically you are sending file to EC2 - EC2 is processing it and saving it to S3 or it is just saving it to S3 ??.I used a very easy way of transferring data from Ec2 to S3. i.e. s3fuse :- you can basically mount EC2 drive with S3 , so when you store something on EC2, it will automatically be stored in S3 also. Might be handy for you.

 
精彩推荐
图片推荐