3 ms·
Really love the work here. Any thoughts about pre-generating all of the tiles instead of serving them from the static PMTiles via Lambda? There must be levels
by tony_cannistra 5y ago
Really love the work here.
Any thoughts about pre-generating all of the tiles instead of serving them from the static PMTiles via Lambda? There must be levels of traffic at which Lambda is more expensive? Even an agressively-cached one?
It seems like the serverless implementation's worst-case is having to generate a planet's worth of uncached tiles, and the compute is a lot more expensive per tile than just generating them all + putting them behind a CDN.
- bdon 5y agoThe tiles in the PMTiles on static storage are already pre-generated. However, most storage solutions work in a single region, and don't offer great latency guarantees. Lambda/Workers performs the computation to populate the edge cache with some vendor specific optimizations, which gets data closer to end users. There's also space to do more advanced filtering or data combination at lambda time that I'm exploring. Agreed that the pure serverless pricing model may not be the best for all use cases. Future options I'm looking at are Fly.io and Cloud Run, I can help evaluate these for customers. There's a lot of competition and emerging products in this space.