Skip to content
Putting technology to work.
Insights to guide decisions and action.

Search articles

Can Cloudflare replace AWS? — Infrastructure technology selection and contract migration

Table of contents · 11 items

The article titled Can Cloudflare Replace AWS? A Technology Selection Guide for Experienced Infrastructure Engineers (Zenn) attracted wide attention. Aimed at engineers who understand AWS fundamentals like VPCs, load balancers, Lambda, S3, and RDS but lack experience with Cloudflare's developer platform, it emphasizes the importance of determining whether Cloudflare fits your project based on design philosophies rather than memorization.

From our perspective supporting system development and infrastructure in custom development, we view this not as a binary question of Cloudflare vs. AWS, but as an architectural challenge of determining which platform to favor, how far to go, and how to migrate based on latency requirements, costs, data residency, and operational structure. Whether you need edge-first, globally fast, low-cost delivery, or full-stack managed services with an extensive ecosystem—making the wrong choice makes future rebuilds expensive. Connecting with the edge implementations covered in Hono + Cloudflare Workers Edge API Development for Clients (GH Media), the cloud selection criteria covered in Cloud Selection in the Age of Cloudflare and AI Agents (GH Media), and the single-dependency risks covered in Business Continuity Design Lessons from Railway and GCP Outages (GH Media), this article organizes our approach to delivering “infrastructure technology selection and migration” in custom development.

Why selecting between Cloudflare and AWS matters right now

DimensionAWS (full-stack)Cloudflare (edge-first)
Design philosophyRegion-centric, rich service ecosystemEdge-distributed, single global network
ComputeLambda / ECS / EC2Workers (edge execution)
StorageS3 + egress billingR2 (zero egress fees)
DBRDS / Aurora / DynamoDBD1 / Durable Objects
StrengthsEcosystem and existing assetsLow latency and transfer costs
LearningBroad and deepRequires a shift in design philosophy

Ultimately, this question is not about “which feature set is superior,” but rather “how to apply differing design philosophies to project requirements.” In custom development, providing suitability assessments and phased migrations enables an optimal cost structure while avoiding over-investment and rewrites.

Three structural changes beneficial to custom development projects

Structure 1: Moving from trend-driven choices to project-driven decisions

Choosing a platform simply because “everyone uses it” invites failure. In custom development, we evaluate projects against latency requirements, transfer volumes, data residency, and operational structures to recommend the optimal platform for each project backed by clear rationale.

Structure 2: Moving from full migrations to right-tool-for-the-job hybrid setups

You don't have to move everything. In custom development, we allocate workloads by putting static delivery and edge APIs on Cloudflare while keeping heavy compute and existing assets on AWS, designing hybrid architectures that maximize the strengths of both.

Structure 3: Moving from unmanaged vendor lock-in to built-in exit strategies

Relying deeply on vendor-specific proprietary features makes future migrations difficult. Drawing on insights from Business Continuity Design Lessons from Railway and GCP Outages (GH Media), we deliver designs that clearly define degrees of lock-in and exit costs.

The 5 phases of infrastructure technology selection and migration delivered in custom development

Phase 1: Suitability assessment (1–2 weeks)

  • Audit current configuration, costs, and operational effort
  • Organize requirements for latency, transfer volume, and data residency
  • Evaluate lock-in degree and exit costs
  • Score platform suitability

Phase 2: Architecture design (1–2 weeks)

  • Placement design (edge / region / hybrid)
  • Data tier design (R2 / S3 / D1 / RDS)
  • Authentication, networking, and security design
  • Cost estimates (transfer, compute, operations)

Phase 3: Migration setup (3–6 weeks)

  • Make infrastructure reproducible using IaC (Terraform / Wrangler / CDK)
  • Phased migration (parallel runs → weighted routing cutover)
  • Establish CI/CD, monitoring, and logging
  • Benchmark performance and actual costs

Phase 4: Validation & cutover (1–2 weeks)

  • Comparative validation of performance, latency, and costs
  • Fault tolerance and failover testing
  • Phased traffic switching and rollback testing

Phase 5: Operational optimization (ongoing)

  • Cost monitoring and optimization
  • Review multi-cloud and redundancy strategies
  • Track platform updates

Standard technology stack set for custom development

LayerFavoring CloudflareFavoring AWS
ComputeWorkersLambda / ECS Fargate
Static deliveryPages + CDNCloudFront + S3
StorageR2 (zero egress fees)S3
DBD1 / Durable ObjectsAurora / DynamoDB
IaCWrangler / TerraformCDK / Terraform
PerimeterWAF / Zero TrustWAF / various managed services

Which projects suit Cloudflare vs. AWS

Suited for CloudflareSuited for AWS
Global low-latency deliveryHeavy compute and large-scale batch jobs
High transfer volumes and heavy egress costsSubstantial existing AWS assets
Centered on static assets + edge APIsHeavy use of managed databases and analytics
Need to launch small and fastComplex enterprise requirements
Desire to keep operations as lean as possibleDedicated infrastructure team in place

Six clauses to include in client contracts

ClauseDetailsWhat the client should verify
Selection rationaleEvaluation axes and scoresAgreement on prerequisites
Target scopeMigration scope / number of environmentsHandling of peripheral systems
Cost premisesTransfer and compute estimatesSurge caps and alerts
Exit designDegree of lock-inMigration cost to another provider
Cutover approachPhased cutover / rollbackDowntime tolerance
HandoverIaC / runbooks / trainingInternal operational continuity

Client-side ROI estimate (assuming high-traffic web service / partial edge migration)

ItemCurrent (AWS standalone)Needs-based hybridDifference
Monthly transfer and delivery costs¥220,00090,000 yen-130,000 yen
Global responseRegion-dependentAccelerated at the edgeImproved experience
Operational workload (monthly)36 hours18 hours-18 hours
Blast radius during outagesSingle point of dependencyDistributed and redundantEnhanced business continuity
Annual benefitApprox. 1.56 million yen delivery cost reduction + improved UX and continuity

Even factoring in upfront migration costs and ongoing operational expenses, the savings in delivery costs and reduced operational overhead provide ample justification in many cases.

Five common pitfalls

Pitfall 1: Migrating entirely just because it's “fast and cheap”

Architectural differences will force rewrites. Allocate workloads appropriately based on project characteristics.

Pitfall 2: Placing heavy workloads without considering edge constraints

You will hit execution limits. Offload heavy compute to regional architectures.

Pitfall 3: Neglecting data residency and compliance

This risks regulatory violations. Confirm data residency during early design stages.

Pitfall 4: Overlooking vendor lock-in

Exiting will become impossible. Design with explicit exit costs in mind.

Pitfall 5: Failing to implement cost caps and monitoring

Transfer and execution spikes can inflate bills. Cost alerts must be mandatory.

90-day action plan

WeekAction
Week 1〜2Suitability assessment + requirement definition + cost estimation
Week 3〜4Architecture design + exit design
Week 5〜10IaC setup + phased migration + parallel runs
Week 11〜12Performance / cost validation + cutover
Week 13Monitoring setup + start of maintenance

Conclusion — Moving from a binary choice to the right tool for the job based on project characteristics

The essence of whether Cloudflare can replace AWS lies in how you map differing design philosophies to your specific project. In custom development, supporting infrastructure by evaluating fit across latency, cost, data residency, and operations, assembling a right-tool-for-the-job hybrid architecture, and delivering it with exit strategies included via “infrastructure technology selection and migration” serves as the realistic answer to avoid over-investment and costly rework.

Whether you want to “determine if shifting to Cloudflare makes sense,” “lower transfer and operational costs,” or “mitigate dependency on a single cloud provider,” our approach adapts to the scale of your current setup and migration scope. We provide tailored estimates upon discussing your requirements, so please feel free to start by reaching out via our contact form.

Sources

Share this articleXFacebook
Kakeru Suzuki

Fascinated by the possibilities of technology, has had a deep interest in programming and digital art since student days

Turn this article's theme into your company's next step

Concrete steps forward for your organization.

We organize your desired architecture, legacy systems, and operational requirements to formulate your next steps toward execution.

  • Desired architecture
  • Integration with existing environments
  • Operational requirements
Consult on development & operations initiatives

You can consult with us from the initial conceptual stage. Details from this article will be carried over to the inquiry form.

Receive the latest articles by email