{
  "apiVersion": "1.1",
  "schemaVersion": 1,
  "engineVersion": 1,
  "asOf": "2026-11-24",
  "currency": "USD",
  "pair": {
    "slug": "railway-vs-cloudflare-workers",
    "canonicalSlug": "cloudflare-workers-vs-railway",
    "isCrossCategory": false,
    "categoryA": {
      "id": "hosting",
      "name": "App hosting"
    },
    "categoryB": {
      "id": "hosting",
      "name": "App hosting"
    }
  },
  "citationUrl": "https://costroast.com/vs/cloudflare-workers-vs-railway?usage=%7B%22cpuMs%22%3A10%2C%22deployments%22%3A20%2C%22egressGb%22%3A100%2C%22memoryGbHours%22%3A100%2C%22requests%22%3A1000000%7D",
  "canonicalUrl": "https://costroast.com/vs/cloudflare-workers-vs-railway",
  "markdownUrl": "https://costroast.com/vs/cloudflare-workers-vs-railway.md?usage=%7B%22cpuMs%22%3A10%2C%22deployments%22%3A20%2C%22egressGb%22%3A100%2C%22memoryGbHours%22%3A100%2C%22requests%22%3A1000000%7D",
  "calculationUrl": "https://costroast.com/api/v1/calculate?a=railway&b=cloudflare-workers&usage=%7B%22cpuMs%22%3A10%2C%22deployments%22%3A20%2C%22egressGb%22%3A100%2C%22memoryGbHours%22%3A100%2C%22requests%22%3A1000000%7D",
  "verdict": {
    "summary": "Cloudflare Workers costs $1.47 less per month than Railway at this workload. This compares modeled charges, not overall product quality.",
    "cheaperProduct": "B",
    "costDeltaMonthlyUsd": 1.47,
    "costPercentDelta": 23,
    "crossoverSummary": "Holding other usage fields fixed, Railway becomes the lower-cost option near 11,801,325 requests / month. This is a modeled price transition, not a migration payback calculation."
  },
  "crossCategoryBridge": null,
  "productA": {
    "id": "railway",
    "name": "Railway",
    "planId": "railway-hobby",
    "planName": "Hobby",
    "eligible": true,
    "monthlyCostUsd": 6.47,
    "billingInterval": "month",
    "annualCommitmentUsd": null,
    "sourceUrl": "https://railway.com/pricing",
    "checkedAt": "2026-11-09",
    "warnings": [
      "Hobby has a $5 monthly minimum including $5 usage credit. Enter total active CPU and provisioned memory for the service, including background work. Aggregate monthly usage does not establish per-service capacity eligibility.",
      "USD monthly container-service plan, metered by the second. Memory input must represent measured billable memory use over running time and CPU input must include all billed CPU work. Builds are free. The included usage credit resets every cycle and never accumulates; cancellation retains the plan through the billing period and remaining usage is billed."
    ],
    "exclusions": [
      "Volume storage, object storage, sandboxes and optional services. Hobby is a single-developer workspace.",
      "Railway VMs and sandboxes use a different tariff and are excluded. The cited security docs do not establish the category requirement of automated unmetered DDoS defense; manual Under Attack Mode is not that capability and can block API traffic."
    ],
    "usage": {
      "requests": 1000000,
      "cpuMs": 10,
      "memoryGbHours": 100,
      "egressGb": 100,
      "deployments": 20
    },
    "workloadFields": [
      {
        "id": "requests",
        "label": "Dynamic requests",
        "unit": "requests / month",
        "min": 0,
        "max": 1000000000,
        "step": 1000,
        "integer": true,
        "defaultValue": 1000000
      },
      {
        "id": "cpuMs",
        "label": "CPU time per request",
        "unit": "milliseconds / request",
        "min": 0,
        "max": 300000,
        "step": 1,
        "integer": false,
        "defaultValue": 10
      },
      {
        "id": "memoryGbHours",
        "label": "Provisioned memory",
        "unit": "GB-hours / month",
        "min": 0,
        "max": 10000000,
        "step": 1,
        "integer": false,
        "defaultValue": 100
      },
      {
        "id": "egressGb",
        "label": "Data sent to visitors",
        "unit": "GB / month",
        "min": 0,
        "max": 1000000,
        "step": 1,
        "integer": false,
        "defaultValue": 100
      },
      {
        "id": "deployments",
        "label": "Production deployments",
        "unit": "deployments / month",
        "min": 0,
        "max": 10000,
        "step": 1,
        "integer": true,
        "defaultValue": 20
      }
    ],
    "scope": "A commercial web API with uncached dynamic requests, US compute, one deploying developer and standard builds. Runtime compatibility, concurrency and performance must be assessed separately. No databases, image transformations, middleware, premium logs or other add-ons.",
    "lineItems": [
      {
        "label": "Monthly subscription",
        "quantity": 1,
        "unit": "month",
        "rate": 5,
        "amount": 5
      },
      {
        "label": "Active CPU time",
        "quantity": 2.7777777777777772,
        "unit": "vCPU-hours",
        "rate": 0.027792,
        "amount": 0.0772
      },
      {
        "label": "Provisioned RAM",
        "quantity": 100,
        "unit": "GB-hours",
        "rate": 0.013896,
        "amount": 1.3896
      },
      {
        "label": "Network egress",
        "quantity": 100,
        "unit": "GB",
        "rate": 0.05,
        "amount": 5
      },
      {
        "label": "Included monthly usage credit",
        "quantity": 1,
        "unit": "credit",
        "rate": -5,
        "amount": -5
      }
    ],
    "priceVersionId": "railway-hobby:7a80b0de673c8a3b4981dc5bfa35266d66b96e71f6195f161e1a41c34944b43c",
    "modelHash": "95d3b090757ab7b8edd5cb9bd26b9efc66da7c882816764677c4031c06c752d3",
    "modelSnapshot": {
      "schemaVersion": 1,
      "engineVersion": 1,
      "category": {
        "id": "hosting",
        "name": "App hosting",
        "description": "Requests, compute and bandwidth. See how hosting changes with traffic.",
        "scope": "A commercial web API with uncached dynamic requests, US compute, one deploying developer and standard builds. Runtime compatibility, concurrency and performance must be assessed separately. No databases, image transformations, middleware, premium logs or other add-ons.",
        "primaryField": "requests",
        "fields": [
          {
            "id": "requests",
            "label": "Dynamic requests",
            "unit": "requests / month",
            "description": "Every request invokes server code and reaches the CDN. Static asset requests are outside this scenario.",
            "defaultValue": 1000000,
            "min": 0,
            "max": 1000000000,
            "step": 1000
          },
          {
            "id": "cpuMs",
            "label": "CPU time per request",
            "unit": "milliseconds / request",
            "description": "Active CPU time, excluding network waits. Benchmark each runtime; the same input is a planning assumption.",
            "defaultValue": 10,
            "min": 0,
            "max": 300000,
            "step": 1
          },
          {
            "id": "memoryGbHours",
            "label": "Provisioned memory",
            "unit": "GB-hours / month",
            "description": "Memory multiplied by instance lifetime, including waits. Fluid concurrency can reduce this. Set it from measured usage.",
            "defaultValue": 100,
            "min": 0,
            "max": 10000000,
            "step": 1
          },
          {
            "id": "egressGb",
            "label": "Data sent to visitors",
            "unit": "GB / month",
            "description": "Uncached response traffic to visitors. Also used as origin traffic for this uncached scenario.",
            "defaultValue": 100,
            "min": 0,
            "max": 1000000,
            "step": 1
          },
          {
            "id": "deployments",
            "label": "Production deployments",
            "unit": "deployments / month",
            "description": "Publishes to production. Local or external CI builds are assumed for Cloudflare. Vercel standard builds without paid concurrency.",
            "defaultValue": 20,
            "min": 0,
            "max": 10000,
            "step": 1
          }
        ],
        "capabilities": [
          {
            "id": "edge_compute",
            "label": "Edge compute",
            "description": "Runs on distributed edge points of presence close to users."
          },
          {
            "id": "custom_domain",
            "label": "Custom domains",
            "description": "SSL/TLS termination on your own custom domain."
          },
          {
            "id": "ddos_protection",
            "label": "DDoS mitigation",
            "description": "Automated unmetered DDoS defense."
          }
        ],
        "presets": [
          {
            "id": "api_starter",
            "name": "API Starter",
            "description": "Low-traffic backend API or webhook receiver",
            "usage": {
              "cpuMs": 15,
              "deployments": 10,
              "egressGb": 20,
              "memoryGbHours": 25,
              "requests": 500000
            }
          },
          {
            "id": "saas_scale",
            "name": "High-Traffic SaaS",
            "description": "Production web application with regular traffic",
            "usage": {
              "cpuMs": 25,
              "deployments": 40,
              "egressGb": 1000,
              "memoryGbHours": 2500,
              "requests": 25000000
            }
          },
          {
            "id": "compute_heavy",
            "name": "Compute Heavy",
            "description": "Longer execution times and larger memory allocations",
            "usage": {
              "cpuMs": 250,
              "deployments": 25,
              "egressGb": 200,
              "memoryGbHours": 5000,
              "requests": 5000000
            }
          }
        ]
      },
      "product": {
        "id": "railway",
        "name": "Railway",
        "categoryId": "hosting",
        "vendorId": "railway",
        "tagline": "Instant infrastructure platform with per-second execution and pay-per-use billing.",
        "website": "https://railway.com/",
        "pricingUrl": "https://railway.com/pricing",
        "color": "#0b0d0e",
        "plans": [
          {
            "id": "railway-hobby",
            "name": "Hobby",
            "billing": {
              "currency": "USD",
              "interval": "month"
            },
            "basePrice": 5,
            "meters": [
              {
                "label": "Active CPU time",
                "quantity": {
                  "terms": [
                    {
                      "fields": [
                        "requests",
                        "cpuMs"
                      ],
                      "factor": 2.7777777777777776e-7
                    }
                  ]
                },
                "unit": "vCPU-hours",
                "included": 0,
                "unitSize": 1,
                "rate": 0.027792
              },
              {
                "label": "Provisioned RAM",
                "quantity": {
                  "field": "memoryGbHours"
                },
                "unit": "GB-hours",
                "included": 0,
                "unitSize": 1,
                "rate": 0.013896
              },
              {
                "label": "Network egress",
                "quantity": {
                  "field": "egressGb"
                },
                "unit": "GB",
                "included": 0,
                "unitSize": 1,
                "rate": 0.05
              }
            ],
            "limits": [],
            "warnings": [
              "Hobby has a $5 monthly minimum including $5 usage credit. Enter total active CPU and provisioned memory for the service, including background work. Aggregate monthly usage does not establish per-service capacity eligibility.",
              "USD monthly container-service plan, metered by the second. Memory input must represent measured billable memory use over running time and CPU input must include all billed CPU work. Builds are free. The included usage credit resets every cycle and never accumulates; cancellation retains the plan through the billing period and remaining usage is billed."
            ],
            "exclusions": [
              "Volume storage, object storage, sandboxes and optional services. Hobby is a single-developer workspace.",
              "Railway VMs and sandboxes use a different tariff and are excluded. The cited security docs do not establish the category requirement of automated unmetered DDoS defense; manual Under Attack Mode is not that capability and can block API traffic."
            ],
            "source": {
              "url": "https://railway.com/pricing",
              "checkedAt": "2026-11-09",
              "title": "Railway App Platform Pricing"
            },
            "usageCredit": 5,
            "capabilities": [
              "custom_domain"
            ]
          }
        ]
      }
    },
    "evidence": {
      "kind": "catalog_assertion",
      "observedAt": "2026-11-09",
      "sourceUrl": "https://railway.com/pricing"
    }
  },
  "productB": {
    "id": "cloudflare-workers",
    "name": "Cloudflare Workers",
    "planId": "workers-standard",
    "planName": "Standard",
    "eligible": true,
    "monthlyCostUsd": 5,
    "billingInterval": "month",
    "annualCommitmentUsd": null,
    "sourceUrl": "https://developers.cloudflare.com/workers/platform/pricing/",
    "checkedAt": "2026-11-01",
    "warnings": [
      "Workers runtime compatibility must be checked. This model assumes no Workers Cache feature and no paid build service. The $5 account subscription also covers paid D1 access."
    ],
    "exclusions": [
      "KV, D1, R2, Durable Objects, queues, paid logs and build-service charges. Free plan daily limits are not modeled."
    ],
    "usage": {
      "requests": 1000000,
      "cpuMs": 10,
      "memoryGbHours": 100,
      "egressGb": 100,
      "deployments": 20
    },
    "workloadFields": [
      {
        "id": "requests",
        "label": "Dynamic requests",
        "unit": "requests / month",
        "min": 0,
        "max": 1000000000,
        "step": 1000,
        "integer": true,
        "defaultValue": 1000000
      },
      {
        "id": "cpuMs",
        "label": "CPU time per request",
        "unit": "milliseconds / request",
        "min": 0,
        "max": 300000,
        "step": 1,
        "integer": false,
        "defaultValue": 10
      },
      {
        "id": "memoryGbHours",
        "label": "Provisioned memory",
        "unit": "GB-hours / month",
        "min": 0,
        "max": 10000000,
        "step": 1,
        "integer": false,
        "defaultValue": 100
      },
      {
        "id": "egressGb",
        "label": "Data sent to visitors",
        "unit": "GB / month",
        "min": 0,
        "max": 1000000,
        "step": 1,
        "integer": false,
        "defaultValue": 100
      },
      {
        "id": "deployments",
        "label": "Production deployments",
        "unit": "deployments / month",
        "min": 0,
        "max": 10000,
        "step": 1,
        "integer": true,
        "defaultValue": 20
      }
    ],
    "scope": "A commercial web API with uncached dynamic requests, US compute, one deploying developer and standard builds. Runtime compatibility, concurrency and performance must be assessed separately. No databases, image transformations, middleware, premium logs or other add-ons.",
    "lineItems": [
      {
        "label": "Monthly subscription",
        "quantity": 1,
        "unit": "month",
        "rate": 5,
        "amount": 5
      },
      {
        "label": "Dynamic requests (10,000,000 included)",
        "quantity": 0,
        "unit": "million requests",
        "rate": 0.3,
        "amount": 0
      },
      {
        "label": "Active CPU (30,000,000 included)",
        "quantity": 0,
        "unit": "million CPU-ms",
        "rate": 0.02,
        "amount": 0
      }
    ],
    "priceVersionId": "workers-standard:e4a4aa84e48686a44126a58a28f246e36b0744767632817f3679409442b4a94d",
    "modelHash": "f1b70b0195f8d1124b1ffb57e7d9d0578a5339a0ab34f9db876b0544b9f54839",
    "modelSnapshot": {
      "schemaVersion": 1,
      "engineVersion": 1,
      "category": {
        "id": "hosting",
        "name": "App hosting",
        "description": "Requests, compute and bandwidth. See how hosting changes with traffic.",
        "scope": "A commercial web API with uncached dynamic requests, US compute, one deploying developer and standard builds. Runtime compatibility, concurrency and performance must be assessed separately. No databases, image transformations, middleware, premium logs or other add-ons.",
        "primaryField": "requests",
        "fields": [
          {
            "id": "requests",
            "label": "Dynamic requests",
            "unit": "requests / month",
            "description": "Every request invokes server code and reaches the CDN. Static asset requests are outside this scenario.",
            "defaultValue": 1000000,
            "min": 0,
            "max": 1000000000,
            "step": 1000
          },
          {
            "id": "cpuMs",
            "label": "CPU time per request",
            "unit": "milliseconds / request",
            "description": "Active CPU time, excluding network waits. Benchmark each runtime; the same input is a planning assumption.",
            "defaultValue": 10,
            "min": 0,
            "max": 300000,
            "step": 1
          },
          {
            "id": "memoryGbHours",
            "label": "Provisioned memory",
            "unit": "GB-hours / month",
            "description": "Memory multiplied by instance lifetime, including waits. Fluid concurrency can reduce this. Set it from measured usage.",
            "defaultValue": 100,
            "min": 0,
            "max": 10000000,
            "step": 1
          },
          {
            "id": "egressGb",
            "label": "Data sent to visitors",
            "unit": "GB / month",
            "description": "Uncached response traffic to visitors. Also used as origin traffic for this uncached scenario.",
            "defaultValue": 100,
            "min": 0,
            "max": 1000000,
            "step": 1
          },
          {
            "id": "deployments",
            "label": "Production deployments",
            "unit": "deployments / month",
            "description": "Publishes to production. Local or external CI builds are assumed for Cloudflare. Vercel standard builds without paid concurrency.",
            "defaultValue": 20,
            "min": 0,
            "max": 10000,
            "step": 1
          }
        ],
        "capabilities": [
          {
            "id": "edge_compute",
            "label": "Edge compute",
            "description": "Runs on distributed edge points of presence close to users."
          },
          {
            "id": "custom_domain",
            "label": "Custom domains",
            "description": "SSL/TLS termination on your own custom domain."
          },
          {
            "id": "ddos_protection",
            "label": "DDoS mitigation",
            "description": "Automated unmetered DDoS defense."
          }
        ],
        "presets": [
          {
            "id": "api_starter",
            "name": "API Starter",
            "description": "Low-traffic backend API or webhook receiver",
            "usage": {
              "cpuMs": 15,
              "deployments": 10,
              "egressGb": 20,
              "memoryGbHours": 25,
              "requests": 500000
            }
          },
          {
            "id": "saas_scale",
            "name": "High-Traffic SaaS",
            "description": "Production web application with regular traffic",
            "usage": {
              "cpuMs": 25,
              "deployments": 40,
              "egressGb": 1000,
              "memoryGbHours": 2500,
              "requests": 25000000
            }
          },
          {
            "id": "compute_heavy",
            "name": "Compute Heavy",
            "description": "Longer execution times and larger memory allocations",
            "usage": {
              "cpuMs": 250,
              "deployments": 25,
              "egressGb": 200,
              "memoryGbHours": 5000,
              "requests": 5000000
            }
          }
        ]
      },
      "product": {
        "id": "cloudflare-workers",
        "name": "Cloudflare Workers",
        "categoryId": "hosting",
        "vendorId": "cloudflare",
        "tagline": "Edge compute with no data-transfer fee.",
        "website": "https://workers.cloudflare.com/",
        "pricingUrl": "https://developers.cloudflare.com/workers/platform/pricing/",
        "color": "#f6821f",
        "plans": [
          {
            "id": "workers-standard",
            "name": "Standard",
            "basePrice": 5,
            "meters": [
              {
                "label": "Dynamic requests",
                "quantity": {
                  "field": "requests"
                },
                "unit": "million requests",
                "included": 10000000,
                "unitSize": 1000000,
                "rate": 0.3
              },
              {
                "label": "Active CPU",
                "quantity": {
                  "terms": [
                    {
                      "fields": [
                        "requests",
                        "cpuMs"
                      ],
                      "factor": 1
                    }
                  ]
                },
                "unit": "million CPU-ms",
                "included": 30000000,
                "unitSize": 1000000,
                "rate": 0.02
              }
            ],
            "limits": [],
            "warnings": [
              "Workers runtime compatibility must be checked. This model assumes no Workers Cache feature and no paid build service. The $5 account subscription also covers paid D1 access."
            ],
            "exclusions": [
              "KV, D1, R2, Durable Objects, queues, paid logs and build-service charges. Free plan daily limits are not modeled."
            ],
            "source": {
              "url": "https://developers.cloudflare.com/workers/platform/pricing/",
              "checkedAt": "2026-11-01",
              "title": "Workers Standard pricing"
            },
            "sharedSubscription": {
              "id": "workers-paid",
              "amount": 5,
              "assumption": "Workers, D1, and Vectorize share one Cloudflare account subscription."
            },
            "capabilities": [
              "custom_domain",
              "ddos_protection",
              "edge_compute"
            ]
          }
        ]
      }
    },
    "evidence": {
      "kind": "catalog_assertion",
      "observedAt": "2026-11-01",
      "sourceUrl": "https://developers.cloudflare.com/workers/platform/pricing/"
    }
  },
  "scenarios": [
    {
      "name": "API Starter",
      "description": "Low-traffic backend API or webhook receiver",
      "costA": 5,
      "costB": 5,
      "winner": "tie"
    },
    {
      "name": "High-Traffic SaaS",
      "description": "Production web application with regular traffic",
      "costA": 89.57,
      "costB": 21.4,
      "winner": "B"
    },
    {
      "name": "Compute Heavy",
      "description": "Longer execution times and larger memory allocations",
      "costA": 89.13,
      "costB": 29.4,
      "winner": "B"
    }
  ],
  "reproducibility": "Replay the selected public model snapshots with schema1/engine1 and the returned effective usage and asOf. This response is not a persisted historical receipt.",
  "calculationId": "6b647c34aec7cbe16d8ffec862e68af61c6a9c6aa7ac4e7440d91aa6fa7b1784"
}