Re:Overture Maps Foundation Releases Its First World-Wide Op...
by joshstrange on Thursday July 27, 2023 @09:11AM
(#36892898)
I just wanted to say thank you for everything you've done for Protomaps. It was very easy to get started with and other than a small Vue/ES6-related issue I was able to get it integrated into my codebase very quickly.
Re:Overture Maps Foundation Releases Its First World-Wide Op...
by yencabulator on Thursday July 27, 2023 @07:54PM
(#36901631)
> Unfortunately, the demo is slow because I'm hosting it on Cloudflare R2 which has no outgoing bandwidth fees.
Can you expand on this a little? Cloudflare is supposed to be pretty competent as CDN and with caching.
Re:Overture Maps Foundation Releases Its First World-Wide Op...
by bdon on Friday July 28, 2023 @12:39AM
(#36903156)
This is Cloudflare's new blob storage product R2. Putting the free Cloudflare CDN and cache infront of R2 doesn't work with HTTP Range headers, likely for product differentiation from their Video CDN. The latency of R2 is also much higher than S3 or GCP, but I know the R2 team is working hard on improving this.
Re:Overture Maps Foundation Releases Its First World-Wide Op...
by yencabulator on Friday July 28, 2023 @11:26AM
(#36908268)
FWIW you can add your own caching logic with Workers, if the CDN for some reason doesn't do Range. The Cache API exposed to Workers is quite useful.
Re:Overture Maps Foundation Releases Its First World-Wide Op...
by bdon on Friday July 28, 2023 @12:22PM
(#36909229)
That is exactly how the open source Workers integration works:
https://protomaps.com/docs/cdn/cloudflare
However, it is an optional acceleration layer on top of the PMTiles access pattern; and it doesn't make a compelling demo, it's just a Z/X/Y layer which is how map tiles have worked for the past 20 years.
It's important to me that I showcase the system working as advertised - you are free to download the 110GB file from that static storage with no restrictions. Unfortunately, the demo is slow because I'm hosting it on Cloudflare R2 which has no outgoing bandwidth fees. Before, it was on DigitalOcean Spaces, which is low latency but would cost me $1-2 out of my own pocket each time someone clicked the link.
The Lambda/Workers integration as described in the other comment is the preferred solution to this for developers operating this at planet scale. Of course, the static storage solution is perfect for small to medium-sized areas, even on GitHub Pages.