Skip to content

pmtiles load time through Cloudflare worker vs direct access through ol-pmtiles lib #294

Answered by bdon
kbatchu asked this question in Q&A
Discussion options

You must be logged in to vote

Yes - it is almost certainly faster, because the round-trips to fetch the header and directories happen between the worker in a Cloudflare datacenter and R2, which goes over Cloudflare's network. Loading it directly means those round-trips are between your physical location and r2.

It will also depend on your physical location relative to the r2 bucket. If you did not provide a location when creating the bucket it should have defaulted to the closest one to you: APAC, Eastern Europe, Western Europe, Eastern NA, Western NA.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kbatchu
Comment options

Answer selected by kbatchu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants