Cloudflare

Mapping Factorio with Leaflet

Oct 10, 2018Guest Author
Mapping Factorio with Leaflet
SummaryAI, from the source post

This post details the implementation of a multi-tier object storage strategy using Cloudflare Workers to serve Leaflet maps. It describes how Workers can be used to race requests against Google Cloud Storage (for higher-zoom levels) and Backblaze B2 (for lower-zoom levels), returning the fastest successful response. It also covers sending request stats to a third-party service (StatHat) to track which storage provider served requests and the effectiveness of Cloudflare caching. Finally, it explains how Cloudflare Argo is used to reduce latency for non-US/CA users accessing Backblaze B2 by routing their requests through an Argo-enabled domain.

More from the Cache Management trail