stwmbm
stwmbm

Reputation: 61

How can I simultaneously read and write a file in S3?

I'm planning to create a podcast app in Java using S3. I plan to have my audio be placed in S3, live, as I talk while also letting users be able to listen to the audio while I'm talking.

I've searched through documentation but can't seem to find any concrete info on if this is possible, and if so how.

Any help would be appreciated, thanks!

Upvotes: 3

Views: 4710

Answers (2)

user1832464
user1832464

Reputation:

S3 is not a good solution for this application. S3 only provides eventual consistency in US Standard, and read-after-write consistency for PUTS of new objects in other regions. You cannot stream a file into S3 and have it erad like a conventional filesystem.

The better option would be to upload and stream from an EC2 instance to do exactly the same thing.

Upvotes: 0

Matt Houser
Matt Houser

Reputation: 36053

Amazon S3 can be used to stream content out, but the object must be there and complete. It's not possible to stream content into S3.

When adding or updating an object in S3, the object is not available to be read until the upload (add or update) is complete.

Upvotes: 3

Related Questions