I use Amazon Cognito to authorize clients in a application access to S3 + DynamoDB directly (rather than through our API).
I need to have clients share large binary data (anywhere between 1mb and 500mb). Would the best option be temporarily uploading to S3 to share with other clients, then removing the file after? Or I wonder if there is a better option more suited to this - should Redis be used to share large temporary binary data?
that is really interesting - definitely useful if we wanted to keep costs low by using peer to peer downloading of S3 uploaded files. But not for this use case where uploading to S3 costs are trying to be avoided
Why even take the effort of using s3? Webtorrents should do the trick already. All you need is a static site with Webtorrents, maybe cognito to login first if that’s required…
REDIS would be good enough for files this small. Or a dirt simple http server on a small instance that everything talks to to access them. EFS is probably overkill. Do all clients read and write or is it mixed? I wouldn’t use S3 for temporary data generally speaking. Especially when there are faster and simpler solutions.
If clients must both be on at the same time, then you don’t need S3. You can have most clients talk directly with each-other using WebRTC and a STUN/TURN server. You might need an EC2 server that connects them via 2 TCP ports for certain peers that are on legacy NAT.
You could try using https://wasabi.com/ if you’re trying to avoid S3 egress / API fees. I haven’t used it yet but seems like a super cheap alternative if you just need some temporary space to store stuff. I don’t know what kind of auth they support or if there have anything similar to presigned urls.