apigatewaycost.com
SHEET 01 / API GATEWAY COST REFERENCE
Updated 9 April 2026

Self-Hosted vs Managed API Gateway: True Cost Comparison

Running Kong OSS or Traefik on Kubernetes can eliminate per-request charges, but adds infrastructure costs and significant engineering overhead. Here is an honest cost analysis at different traffic volumes, including the engineering time most comparisons ignore.

The hidden cost of self-hosting

Most cost comparisons only count cloud infrastructure. The real cost of self-hosting an API gateway is 8 to 16 hours of engineering time per month for maintenance, security updates, capacity planning, and incident response. At a fully-loaded engineer cost of $100/hour, that is $9,600 to $19,200 per year in engineering overhead before you factor in infrastructure.

Monthly Cost Comparison by Volume

SolutionTypeAt 10M req/moAt 100M req/moAt 500M req/moEng. Time
Managed (infrastructure + request fees)
AWS API GatewayManaged$35$280$900~2 hrs/month
Cloudflare API GatewayManaged$3$20$55~2 hrs/month
Kong KonnectManaged SaaS$9$54$175~4 hrs/month
Self-hosted (infrastructure only, excludes engineering time)
Kong OSS (Kubernetes)
3x m5.large nodes, NLB, persistent storage, monitoring
Self-hosted$250$350$6008-16 hrs/month
Traefik OSS (Kubernetes)
2x m5.xlarge nodes, NLB, Prometheus/Grafana stack
Self-hosted$200$280$4506-12 hrs/month
NGINX Plus (VMs)
NGINX Plus license $3,500/year + 2x c5.xlarge + ALB
Self-hosted$450$500$70010-20 hrs/month

Break-Even Analysis

Low traffic (10M req/mo)

Managed: $35 (AWS) or $3 (Cloudflare)
Self-hosted infra: $200-450

Use managed. Self-hosted costs 10x more.

Medium traffic (100M req/mo)

Managed: $280 (AWS) or $20 (Cloudflare)
Self-hosted infra: $280-500

Cloudflare wins at this volume. AWS approaches break-even with Kong OSS.

High traffic (500M req/mo)

Managed: $900 (AWS) or $55 (Cloudflare)
Self-hosted infra: $450-700

Self-hosted can beat AWS at this volume. Cloudflare still wins outright.

Very high traffic (1B+ req/mo)

Managed: $1,500 (AWS) or $100 (Cloudflare)
Self-hosted infra: $600-1,000

Self-hosted vs AWS: worth evaluating. Cloudflare still competitive.

Annual Engineering Overhead for Self-Hosted Gateways

Based on a fully-loaded engineer cost of $100/hour. These costs apply regardless of traffic volume.

Engineering TaskTime EstimateAnnual Cost ($100/hr)
Initial setup and configuration40-80 hrs$4,000-8,000
Ongoing maintenance and upgrades8-16 hrs/month$9,600-19,200
Incident response and on-call4-8 hrs/month$4,800-9,600
Security patches and CVE monitoring4 hrs/month$4,800
Total annual engineering overhead180-360 hrs/year$23,000-42,000

The honest recommendation

Use managed API gateway if:

  • +Your monthly gateway spend is below $2,000
  • +You do not have dedicated platform engineering capacity
  • +You are on a single cloud and want native integrations
  • +High availability is critical and you cannot afford downtime incidents

Consider self-hosted if:

  • +Monthly managed costs exceed $2,000 and you are on AWS (not Cloudflare)
  • +You have an existing Kubernetes platform team
  • +You need features not available in managed gateways (custom Lua plugins, etc.)
  • +Data sovereignty or compliance prevents using cloud-managed services

Before deciding, model your total cost using the API gateway cost calculator. Add the engineering overhead from the table above to any self-hosted option to get a true apples-to-apples comparison.

Frequently Asked Questions

When is self-hosting an API gateway worth it?
When your managed gateway bill exceeds $2,000/month AND you have an existing platform engineering team. The engineering overhead (8-16 hrs/month) makes self-hosting impractical for small teams. Cloudflare at $0.15/million often beats self-hosted costs even at very high volumes.
How much engineering time does a self-hosted gateway require?
8-16 hours per month for ongoing maintenance: security patches, upgrades, capacity planning, and incident response. Plus 40-80 hours for initial setup. At $100/hour fully-loaded cost, that is $23,000-42,000/year in engineering overhead before infrastructure costs.
Is Kong OSS or Traefik OSS cheaper?
Traefik OSS is typically $50-150/month cheaper on infrastructure because it is lighter weight and does not require a database. Kong OSS needs PostgreSQL or Cassandra. However, Kong has a larger plugin ecosystem (250+ plugins) which may reduce custom development costs.
Can I self-host and use managed together?
Yes. A common hybrid pattern: self-hosted gateway for internal service-to-service traffic (zero per-request cost), managed gateway for external-facing APIs (simpler ops, WAF, DDoS protection). This optimizes cost while maintaining operational simplicity for the public surface area.

Updated 2026-04-27