3 ms·
The latency for small files and ranges of large files is pretty similar on most storage platforms, but there are some exceptions like Cloudflare R2. The main r
by bdon 2y ago
The latency for small files and ranges of large files is pretty similar on most storage platforms, but there are some exceptions like Cloudflare R2.
The main reason PMTiles is one file and not two or more files is that it enables atomic updates in-place (which every mature storage platform supports) as well as ETag content change detection in downstream caches. All of the server and serverless implementations at http://github.com/protomaps http://github.com/protomaps support this now for AWS, S3-compatible storage, Google Cloud, and Azure.
- wcedmisten 2y agoNow I'm curious, what causes the latency for range requests with R2?
- bdon 2y agoI don't have any insight into this other than observing how their storage system works, but here's some scripts I made last year to test: https://github.com/bdon/cloudflare-r2-latency https://github.com/bdon/cloudflare-r2-latency
- mannyv 2y agoRange requests means work and logic. Getting a file requires no logic. Also, I'm pretty sure range requests are going to be difficult to cache. That implies going to origin every request which is bad.