All posts
AWS Architecture

Realtime Pricing Compared: Vercel WebSockets, API Gateway WebSocket APIs and AppSync Events

By

November 2, 2026

6 min read

The same workload priced three ways: 1,000 users connected through the workday, 48 million messages a month. On AWS, API Gateway and AppSync Events charge about $1 per million messages and differ mostly in connection minutes and in who does the fan-out. Vercel charges almost nothing per message but bills memory for every instance holding connections. Where each one wins.

WebSockets
Realtime
API Gateway
AWS AppSync
Vercel

The workload: 1,000 users connected 8 hours a workday for 22 days. Each sends 200 messages and receives 2,000 a day, all small. That is 10.56 million connection minutes and 48.4 million messages a month (4.4 million in, 44 million out). US East prices on AWS, iad1 on Vercel Pro, November 2026.

API Gateway WebSocket API

AppSync Events

Vercel Functions

Per message

$1.00 per million, metered in 32 KB units

$1.00 per million operations, inbound and outbound

No per-message charge; Active CPU at $0.128 an hour while handling one

Per connection

$0.25 per million connection minutes

$0.08 per million connection minutes

$0.60 per million invocations, one per connection, plus memory while connected

Messages, this workload

About $48.40

About $48.40

About $1.72 of CPU at 1 ms each

Connections, this workload

About $2.64

About $0.84

About $0.48 of invocations, plus $3.73 of memory per instance holding connections

Your compute

Lambda (or another integration) per inbound message, plus your fan-out code

Optional handlers; fan-out to subscribers is built in

Your function is the server

Fan-out across clients

You loop over connection IDs (usually stored in DynamoDB) and post to each

Publish once to a channel; subscribers receive it

Redis or another shared channel across instances

Connection lifetime

2 hours maximum; 10 minutes idle timeout

Not covered here

300 to 800 seconds by plan (1,800 in beta)

Free tier

1 million messages and 750,000 connection minutes a month for 12 months

250,000 real-time updates and 600,000 connection minutes a month for 12 months

Hobby includes 4 CPU-hours, 360 GB-hours and 1 million invocations

Prices from the API Gateway, AppSync and Vercel Fluid compute pricing pages. Workload costs are our arithmetic and exclude data transfer.

What the numbers say

  • On AWS, messages dominate. At 48 million a month either service is about $50; at 480 million it is about $500. Batching small updates into fewer messages is the biggest lever.

  • AppSync Events is the cheaper AWS option when connections are many and idle, and it does fan-out for you. API Gateway gives you full control of routing with your own Lambda code, and 32 KB metering matters if messages are large.

  • Vercel turns the bill around: messages are nearly free, and the cost is memory for each instance holding connections. Busy connections are cheap. Thousands of quiet ones spread across many instances are not, and Vercel doesn't publish how many connections share an instance.

  • None of these prices include the engineering: reconnects, catch-up, authorization over long connections, and load testing. That is usually larger than the bill.

Want this worked out for your traffic?

Bring your user counts and message rates. In 30 minutes we'll tell you which of these fits and what it will cost at today's usage and at ten times it.

Choosing

If

Lean towards

Your app already runs on Vercel and connections are busy

Vercel Functions, with Redis for shared state

Many clients subscribe to channels and mostly listen

AppSync Events

You need custom routing logic per message, on AWS

API Gateway WebSocket API with Lambda

Connections must last hours and you run containers already

Your own WebSocket server on ECS or EKS behind an ALB

Collaborative editing, or presence across many rooms

A managed service built for it

hoolco Monthly Review

Once a month: what changed in tech that month and what it means for you, from cloud and AI to security and the tools you build with. Every item links to its source. No sales pitch, unsubscribe in one click.

As of November 2, 2026. Provided as is, for general information, and accurate to the best of our knowledge on the date shown. Not legal, compliance, tax, financial or other professional advice. Prices, limits and vendor services change; check current vendor documentation before relying on anything here. Terms of use.