multiple subdomains #138
-
A common trick to have the browser issue more download requests is to use multiple subdomains for the source tiles. Is this possible with pmtiles? Something like
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The domain-sharding trick is only effective for HTTP/1, and not HTTP/2. If you are using http://protomaps.com/docs/cdn the CDN edge endpoints will be using HTTP/2. If you are accessing PMTiles on static storage, it's possible that it uses HTTP/1 (AWS S3 is the big one). However, I don't know of a straightforward way to assign {a,b,c,d} DNS entries to an S3 bucket and that seems like a fairly niche use case. |
Beta Was this translation helpful? Give feedback.
-
Thank you, I just checked and the VPS I am running is using http/3 for the client I tested, so I guess it would not make a difference for loading times if I activated sharding? Generally for low to medium traffic websites, do you think there is a benefit in running a tileserver on the webserver (e.g. have the server unpack and send individual tiles from prerendered vector tiles in an mbtiles or pmtiles file) compared to range requests on a big file? |
Beta Was this translation helpful? Give feedback.
The domain-sharding trick is only effective for HTTP/1, and not HTTP/2. If you are using http://protomaps.com/docs/cdn the CDN edge endpoints will be using HTTP/2.
If you are accessing PMTiles on static storage, it's possible that it uses HTTP/1 (AWS S3 is the big one). However, I don't know of a straightforward way to assign {a,b,c,d} DNS entries to an S3 bucket and that seems like a fairly niche use case.