/plushcap/analysis/cloudflare/upgrading-cloud-infrastructure-with-workers-kv

Upgrading Cloud Infrastructure Made Easier and Safer Using Cloudflare Workers and Workers KV

What's this blog post about?

The text discusses a project undertaken by Timely to migrate their web applications from legacy Azure services to a modern PaaS offering. They started with their webhooks, which were grouped into four categories. To ensure a smooth migration of traffic, they considered three options: changing the CNAME to point to the new hosting infrastructure, using a traffic manager to shift a percentage of traffic, and using Cloudflare Workers and Workers KV. The latter option was chosen as it allowed them to migrate traffic one endpoint at a time, starting with low-risk endpoints and progressively moving up. They wrote a Cloudflare Worker script that detected the path, checked Workers KV for settings, and redirected requests if necessary. Using Workers KV enabled any team member to enable or disable endpoints using the Cloudflare API. They faced some issues during the live migration but were able to resolve them with proper debugging and rate limiting measures. The text concludes by stating that they have successfully transitioned all traffic, and will now move on to their new web application.

Company
Cloudflare

Date published
Jan. 10, 2019

Author(s)
Guest Author

Word count
1115

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.