Mapping Factorio with Leaflet
Jacob Hands, creator of FactorioMaps.com, shares his experience building a community site for the game Factorio focused on sharing user creations as interactive Leaflet maps. He chose Backblaze B2 over Amazon S3 and Google Cloud Storage due to its free upload API calls, $0.00/GB egress bandwidth to Cloudflare, and lower storage costs. To improve site speed, Hands added a local SSD cache on the VPS for all except the last 1-3 zoom levels of each map, reducing latency for 66% of requests. He then implemented Cloudflare Workers to run JavaScript path rewrites and redirects, further enhancing performance. By using Google Cloud Storage (GCS) for the first few zoom levels and Backblaze B2 for the rest, Hands achieved a mean latency of <350ms for 66% of requested files while only storing 24% on GCS. He also utilized Cloudflare's Argo to reduce latency by over 50% for non-US/CA users.
Company
Cloudflare
Date published
Oct. 10, 2018
Author(s)
Guest Author
Word count
986
Hacker News points
None found.
Language
English