Hacker News new | ask | show | jobs
by aclelland 1730 days ago
Really interesting, will R2 support lifecycle rules like S3 does? We write around 90 million files per month to S3, if we could replace that with R2 and have the files automatically expire after 30 days that'd be a pretty amazing price reduction for us.
2 comments

Hey, I'm the PM for R2.

We support per-object TTLs, so this should work!

The full lifecycle support s3 has is really powerful. One use case we have for ugc content is disallowing online serving systems the ability to permanently delete an object. Instead the object is marked as deleted and then automatically cleaned up after 30 days.
Yeah that'd work for us! Just signed up for access :)
They appear to be focused on an automatic version:

> Behind the scenes, R2 automatically and intelligently manages the tiering of data to drive both performance at peak load and low-cost for infrequently requested objects. We’ve gotten rid of complex, manual tiering policies in favor of what developers have always wanted out of object storage: limitless scale at the lowest possible cost.

GP isn't mentioning lifecycle to change storage tier, but to delete the files after some time.
You're quite right — I think I was primed by a different mention of S3's intelligent tiering in this thread.