The Migration of Legacy Applications to Workers
Jul 28, 2020Kirk Schwenkler

Summary
This post details the migration of a legacy Node.js application to Cloudflare Workers. It demonstrates how to: 1. Keep existing business logic intact by directly porting JavaScript assets. 2. Build a new preprocessing layer in Workers to replace the Node.js HTTP module. 3. Use Cloudflare Access for zero-trust authentication and Argo Tunnels for secure origin connections, providing a 'quick win' security upgrade before migrating the compute. 4. Utilize Wrangler tooling to bundle the new preprocessing layer with the existing business logic into a Workers application. The post highlights the benefits of serverless platforms like Workers, including instant scaling, simplified credential management, and reduced operational costs.