Rendered at 21:00:36 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
nater5000 22 hours ago [-]
This is huge. At my last job, this would have increased our perceived performance tremendously. Users' multi-TB files could be fully processed by the time the upload was complete instead of needing to wait for the full upload to complete before even starting the processing task.
MisterMunchkin 6 hours ago [-]
That explains why someone would need this feature, that makes a lot of sense.
ByteOfWood 18 hours ago [-]
Was something preventing your team from building this yourself? I'd think it would be trivial to send files as 1GB chunks and simply save those chunks in S3.
WJW 10 hours ago [-]
Not OP, but at a previous company I worked at we generated presigned PUT urls for each upload so the users could upload their file parts directly to S3. The uploads never touched our servers. Then when the upload was complete it would be pulled down from S3 into an EC2 instance for postprocessing etc.
Obviously you could do it another way, such as letting the users upload to the EC2 instance and then forwarding the files onward once the upload is complete. Then you can do the "post"processing while the upload progresses. There are significant downsides to that approach though, such as needing to maintain the uploads-in-progress in memory or on disk. You'd also need to limit the amount of uploads in progress per server to prevent running out of space. Then you need to handle and clean up uploads that fail in the middle, and also set up specialized deploy procedures for long-running uploads. Users on slow connections might take hours to upload a big file chunk, so if you kill the server for a new release you'll ruin their experience. All in all it's trivial if you have 10 users but it gets quite tricky when you have 10 million.
This new S3 feature presents a nice middle ground, allowing one to start postprocessing while the upload is still ongoing.
taeric 5 hours ago [-]
For those that haven't done this, it is hard to state how much better this is than having the file go through your compute layer on the way to storage.
This was obviously more complicated for any multipart uploads. But still far easier than trying to manage it through other methods.
zbjornson 7 hours ago [-]
Interesting points, but this new S3 feature seems like it'd still be affected by many of the same issues you listed. E.g., if the user has a slow connection that takes hours to upload over, you're still going to have to wait for that total latency and deal with restarting post-processing if you kill your server during the upload.
taeric 5 hours ago [-]
The kinds of wins you can get on latency on looking at partial uploads are typically the kind you can persist and just pick up on the rest of the file later. For videos, you could have already gotten the initial frames to start selecting thumbnails. For anything else, you are probably calculating stats that are windowed anyway.
So, yeah, there is no magic win to make uploads fast for people on a slow connection. There are still wins you can get.
Amusingly, this also somewhat encourages you to work on partials for post processing. Which is something you have to do to protect yourself from choking on surprisingly large files, anyway.
arbor-group 6 hours ago [-]
[dead]
nater5000 2 hours ago [-]
>Was something preventing your team from building this yourself?
Complexity. We were able to implement various versions of this, but, as always, the devil was in the details and we just couldn't warrant that level of complexity in the app we were building.
>I'd think it would be trivial to send files as 1GB chunks and simply save those chunks in S3.
You can do this, but you end up with a lot of downstream issues if you don't do this well. By the time you implement this in a way "done well," you're basically recreating S3's multipart upload system with a ton of additional overhead that is hard to scale.
I'm sure larger teams have done this, but it was just not feasible for us. This new feature directly out of S3, though, would be mostly "plug and play" and it'd get us a ton of value with minimal effort.
trollbridge 6 hours ago [-]
This is such a trivial feature it should obviously be implemented in the core system, not hacked into it
80fj0348i 17 hours ago [-]
Wouldn't that increase your S3 costs since you'd be paying for 1000 separate API calls instead of one?
electroly 16 hours ago [-]
Multi-part uploads are already an API call per part. PutObject vs. UploadPart, they're both "tier 1" calls that cost the same. A single PutObject call has a 5GB limit, so you have to do multi-part to upload a terabyte like OP describes.
steve_adams_86 13 hours ago [-]
1000 extra calls in exchange for users perceiving your product more positively seems like a great exchange to me. Isn't that something like $0.005?
jfyi 10 hours ago [-]
They want your data, the place they get you is on the downloads.
felixmarlowe 6 hours ago [-]
[dead]
InsidiousWombat 9 hours ago [-]
that seems architectural problem. Sending something both to S3 and to a processing pipeline isn't exactly super complex problem to solve
taeric 5 hours ago [-]
Agreed that it is doable. It still increases your failure scenarios quite heavily. Consider the case where it succeeds going to S3, but failed going to the processing pipeline. Now the reverse. You can start threading it so that it only goes to your processing pipeline from the client, but then you have to worry about the failure to S3 from that pipeline.
And to be clear, the failure from S3 to your pipeline still exists. But you have offloaded a lot of worrying about that to S3's concern.
nater5000 2 hours ago [-]
No, it's not. We were able to put together PoCs of this relatively quickly. But, as is often the case with these things, issues start to emerge at scale, both technologically and from a management perspective. At the end of the day, we just couldn't warrant the additional complexity given the list of other features we had to build and manage. If we had nothing else on our plate, we certainly could have built it. But our plate was full and the ROI just wasn't there. With S3's new feature here, we'd basically get a decent amount of value "for free".
mmillin 18 hours ago [-]
Sounds similar to Backblaze’s B2 live read feature.
Nice! So many workflows for media processing, streaming and other chunks are dependent on S3 triggers. Now everything can start executing much quicker, granted they handle part-based processing.
matt-attack 2 days ago [-]
I’m struggling to think of media workflows where processing some arbitrary chunk of a much larger file is ever useful. Examples?
duskwuff 2 days ago [-]
Playback and conversion of partially uploaded audio/video streams.
gopher_space 22 hours ago [-]
Exactly how arbitrary is the chunk and how much control do I have over packing the object? How large is the file and what are our costs around bandwidth and storage? What's the smallest machine I can use to run our transformations on the fly?
It seems like an interesting tool to know about when you're looking at an infrastructure spreadsheet.
giancarlostoro 23 hours ago [-]
Presumably you could start processing as it comes in.
nkozyra 24 hours ago [-]
Live transcription
dabinat 2 days ago [-]
Thumbnail generation only needs to happen on one frame of the file.
But I think the idea behind this feature is to get a head start on long-running operations like encoding.
scheme271 23 hours ago [-]
True but with a lot of modern high performance codecs, you may need to go back a bit to reconstruct a given frame. Certainly something that can be worked around though.
ZeWaka 23 hours ago [-]
> you may need to go back a bit to reconstruct a given frame
Presumably you'd be streaming in-order.
RKearney 23 hours ago [-]
How far is a bit? Don't most codecs have keyframes every 1-4 seconds?
vlovich123 22 hours ago [-]
It's not a function of the codec - it's a function of how the encoder is configured by the application. For example, you can configure the encoder to never emit I frames, emit I frames every 30 frames, etc etc. For wired Oculus Link we used 0 I frames since it was a reliable in-order transport there.
thibaut_barrere 24 hours ago [-]
Trimming comes to mind
shermantanktop 22 hours ago [-]
CVML on video frames - e.g. object detection.
pyrolistical 23 hours ago [-]
Latency is reduced
QuercusMax 23 hours ago [-]
You could do basic sanity checks based on the file headers with all kinds of different data. You could also do things like early-reject bad uploads. For things like tabular data, you could scrape just the column names from a CSV or something. There are tons of possible use cases. Start labeling that particular upload with metadata source from the in-process stream, and show it to the user instantly.
markus_zhang 22 hours ago [-]
We don’t have large s3 files but this is still a very interesting feature. What could be the internal of this feature? Like reading into blocks and send a signal once X blocks have been processed? Sorry just thinking about traditional FS I read in textbooks 40 years ago.
stingraycharles 22 hours ago [-]
You can start processing data before it’s fully uploaded. I can think of media transcoding as one use case.
InsidiousWombat 9 hours ago [-]
That's kinda icky scenario as you'd also need right encoded video to be sent; by default most videos in mp4 container have required metadata at the end, need to use so-called fast start.
mkv, the superior container format, generally does not have that problem, you could stream mkv for encoding and then stream it back to S3 upload with no temporary files; I've found that out when I was writing encoder infra for one of our customers, first test was on bunch of mkv files and it worked beautifully, then I added more test files and mp4 just didn't worked in that setup without fussing
DJBunnies 7 hours ago [-]
Adding fast start takes trivial time/effort though, it can be done ahead of time.
stingraycharles 8 hours ago [-]
Hehe I knew someone would mention this, and yes you’re right maybe not the best example. Having said that, streaming transcoding absolutely exists, I implemented this whole pipeline on top of ffmpeg maybe a decade ago, and it worked when it was the right format.
(I worked for a video CDN in the past and was tasked with replacing Elastic Transcoder)
everfrustrated 7 hours ago [-]
You can upload the video trailer part first - multipart allows for uploading parts out of order. Then any earlier pieces have the metadata they need for decoding.
markus_zhang 22 hours ago [-]
Yeah I get this, but I’m curious what’s the internal implementation of this. I never did any professional filesystem gig so just second guessing.
stingraycharles 21 hours ago [-]
You mean how multipart uploads are implemented? It’s really quite simple, it’s uploaded as multiple (hidden) s3 files, one by one, and then a final “commit” or “merge” which atomically concats all these files into a single final file.
The change here is that now these files are not hidden anymore.
markus_zhang 21 hours ago [-]
Thanks, oh that’s simpler than I thought. I thought it’s something embedded in the filesystem.
stingraycharles 21 hours ago [-]
There are probably some optimizations in place, such as ensuring all objects arrive on the exact same node and whatnot, but yeah it’s really simple.
It’s also a bit of a leaky abstraction: if you cancel a multipart upload, all those “hidden” files remain. As such, you need to set an S3 lifecycle rule to clean up all those invisible files periodically.
markus_zhang 19 hours ago [-]
Thanks. That’s an interesting observation that I didn’t think about. When the user cancel a multiparty upload, why can’t the server simply remove those parts? Is it because they are being read?
stingraycharles 19 hours ago [-]
Because it’s all distributed, and the server is “simple”, it’s not inherently aware of a client canceling. Well, it could, but then that would make the backend logic (much) more complicated, and you can’t differentiate between a client temporarily disrupted and retrying the upload later vs actually never going to finish, etc.
Basically these types of systems are designed to be simple, because that’s a great way to keep things stable.
markus_zhang 9 hours ago [-]
Gotcha, thanks. Yeah it makes sense to simplify the logic for distributed system.
amirathi 19 hours ago [-]
It's conceptually simple but at S3's scale, everything that can go wrong does go wrong.
Thaxll 7 hours ago [-]
Will it be possible to do have S3 pre signed URL with multi part upload?
shikhar 15 hours ago [-]
Note that each part but the last needs to be at least 5 MB
mococa 5 hours ago [-]
Can I use elastic transcoder and, while uploading is on progress it get transcodified?
davidkwast 23 hours ago [-]
"Amazon S3 now makes each part of a multipart upload readable as soon as it arrives, before the object upload completes. Your applications can begin downstream processing as each part lands, and run uploads and processing in parallel. This helps you accelerate processing pipelines such as media ingest, transcoding, analytics, and AI transcription."
bilalq 22 hours ago [-]
Could someone more familiar with the way compute-storage separated databases work today (like Neon, Clickhouse, Cursor's Continuity git storage, etc) chime in and share if we could expect benefits to those systems thanks to this feature?
xyzzy_plugh 21 hours ago [-]
Hello! Yes, it could. Often times these systems have mixed bundles of records at ingest, and sort and compact them later. Compacting into large sorted objects is necessary for cold access to be performant not to mention cost effective. Being able to read those large objects before they are completed could, in theory, reduce costs and improve performance of reads during query or hydrating warm caches -- bringing nodes online, rebalancing, etc.
It is unlikely to be a significant change, though, and the economics only make sense for certain workload shapes and sizes (most likely very large).
The biggest benefit I see is in log appending systems that can write large objects without needing compaction.
Kalanos 24 hours ago [-]
Genomics
bigbuppo 22 hours ago [-]
So... they're finally catching up to zmodem?
qurren 23 hours ago [-]
Seems like it is getting bloated. So I guess we can now build videoconferencing on S3, SQlite-over-s3, and a bunch of other things that are not supposed to happen
atonse 23 hours ago [-]
Don't agree on "not supposed to happen" - S3 was always about being "blob storage" which was a superb abstraction rather than "file storage" - and it has now seemed to become the storage layer of a whole set of tools.
Can't comment on the costs (transaction costs, etc) cuz I haven't run S3 that way at any scale, but others could comment on that. But it seems to be a great options for many sets of solutions where you need to quickly read and write bytes in a durable way.
QuercusMax 23 hours ago [-]
Yup, this is just one step closer to making S3 and similar blob storage systems more like real filesystems. Reading an in-progress upload is super easy if you are working with traditional filesystems.
codesnik 20 hours ago [-]
super easy? you probably have to store some temporary metadata somewhere, so that readers would be blocked if they try to get ahead of the writer. And the blocking mechanism itself. And what to do if upload is canceled. It feels like there're a lot of small details like that.
QuercusMax 15 hours ago [-]
Of course there are small details to be worked out in any system, just like when working with normal files. That doesn't change the fact that this allows a lot of new interesting features to be developed (or old ones to be ported to S3).
echelon 23 hours ago [-]
It's a tool and utility, and this unblocks a large class of new functionality. Lowers latency on broad classes of apps too.
It'd be great if we could reinvent the whole of hyperscaler infra as open source though.
senderista 21 hours ago [-]
> It'd be great if we could reinvent the whole of hyperscaler infra as open source though.
Ceph has been around for a while.
jorgeacf 5 hours ago [-]
[dead]
juyeam 20 hours ago [-]
[dead]
dropdropteam 20 hours ago [-]
[dead]
minfazhai 18 hours ago [-]
[dead]
charan345 3 days ago [-]
[dead]
amelius 10 hours ago [-]
Sounds like a trivial bit of plumbing to me. An AI could implement and test this in like 15 minutes.
tdstt 9 hours ago [-]
The reality is after "AI writes the code" they're spending 2 weeks+ getting that change through security review, pentesting, audits, ORR, and more before release.
curt15 9 hours ago [-]
Why not also "AI security review", "AI pentesting", ...? Are execs all stuck in this intermediate state where they trust but don't quite trust the machine?
elevation 9 hours ago [-]
“It’s an older code sir, but it checks out.”
InsidiousWombat 9 hours ago [-]
It's extremely ignorant take to say that without knowing how it is built.
Yes, if you were writing S3 server from scratch it's trivial because you know requirements outright, but existing code might be designed in a way where that takes a lot of refactoring to add it.
my-huge-pony 10 hours ago [-]
Plunging for who? Workaround on the developer side?
I hope you're not seriously suggesting a feature like this would take 15 minutes for AWS. This sounds off by several orders of magnitude.
nyc_pizzadev 22 hours ago [-]
Read after write is a pretty important usecase for filesystems. However, I personally avoid these kinds of snowflake S3 calls since they tend to lock you in. On another note, FiberFS is an FS built on S3 and it supports read after write and works with all S3 vendors (fiberfs.io)
Symbiote 21 hours ago [-]
You appear to be one of the developers of FiberFS, so you should mention this rather than posting it in vaguely related discussions every few days.
Obviously you could do it another way, such as letting the users upload to the EC2 instance and then forwarding the files onward once the upload is complete. Then you can do the "post"processing while the upload progresses. There are significant downsides to that approach though, such as needing to maintain the uploads-in-progress in memory or on disk. You'd also need to limit the amount of uploads in progress per server to prevent running out of space. Then you need to handle and clean up uploads that fail in the middle, and also set up specialized deploy procedures for long-running uploads. Users on slow connections might take hours to upload a big file chunk, so if you kill the server for a new release you'll ruin their experience. All in all it's trivial if you have 10 users but it gets quite tricky when you have 10 million.
This new S3 feature presents a nice middle ground, allowing one to start postprocessing while the upload is still ongoing.
This was obviously more complicated for any multipart uploads. But still far easier than trying to manage it through other methods.
So, yeah, there is no magic win to make uploads fast for people on a slow connection. There are still wins you can get.
Amusingly, this also somewhat encourages you to work on partials for post processing. Which is something you have to do to protect yourself from choking on surprisingly large files, anyway.
Complexity. We were able to implement various versions of this, but, as always, the devil was in the details and we just couldn't warrant that level of complexity in the app we were building.
>I'd think it would be trivial to send files as 1GB chunks and simply save those chunks in S3.
You can do this, but you end up with a lot of downstream issues if you don't do this well. By the time you implement this in a way "done well," you're basically recreating S3's multipart upload system with a ton of additional overhead that is hard to scale.
I'm sure larger teams have done this, but it was just not feasible for us. This new feature directly out of S3, though, would be mostly "plug and play" and it'd get us a ton of value with minimal effort.
And to be clear, the failure from S3 to your pipeline still exists. But you have offloaded a lot of worrying about that to S3's concern.
https://www.backblaze.com/blog/announcing-b2-live-read/
It seems like an interesting tool to know about when you're looking at an infrastructure spreadsheet.
But I think the idea behind this feature is to get a head start on long-running operations like encoding.
Presumably you'd be streaming in-order.
mkv, the superior container format, generally does not have that problem, you could stream mkv for encoding and then stream it back to S3 upload with no temporary files; I've found that out when I was writing encoder infra for one of our customers, first test was on bunch of mkv files and it worked beautifully, then I added more test files and mp4 just didn't worked in that setup without fussing
(I worked for a video CDN in the past and was tasked with replacing Elastic Transcoder)
The change here is that now these files are not hidden anymore.
It’s also a bit of a leaky abstraction: if you cancel a multipart upload, all those “hidden” files remain. As such, you need to set an S3 lifecycle rule to clean up all those invisible files periodically.
Basically these types of systems are designed to be simple, because that’s a great way to keep things stable.
It is unlikely to be a significant change, though, and the economics only make sense for certain workload shapes and sizes (most likely very large).
The biggest benefit I see is in log appending systems that can write large objects without needing compaction.
Can't comment on the costs (transaction costs, etc) cuz I haven't run S3 that way at any scale, but others could comment on that. But it seems to be a great options for many sets of solutions where you need to quickly read and write bytes in a durable way.
It'd be great if we could reinvent the whole of hyperscaler infra as open source though.
Ceph has been around for a while.
Yes, if you were writing S3 server from scratch it's trivial because you know requirements outright, but existing code might be designed in a way where that takes a lot of refactoring to add it.
I hope you're not seriously suggesting a feature like this would take 15 minutes for AWS. This sounds off by several orders of magnitude.