Rate limits

The limits are set far above normal use. Hitting one usually means a reconnect loop or a subscription that is opened and closed too often.

Limits

LimitValueWhen exceeded
New lane connections per IP30 per minuteNOTICE rate-limited: …, then closed (1008)
Messages per connection (any type)240 per minuteNOTICE rate-limited: …, then closed (1008)
Events per key120 per minuteOK false rate-limited: …
Open subscriptions per connection16CLOSED rate-limited: …

Messages include REQ and CLOSE. A client that re-opens its subscriptions every few seconds reaches the message limit long before the event limit.

Event rules

  • created_at must be no more than 15 minutes in the future and no more than 2 days and 1 hour in the past.
  • The same event id is refused as duplicate: within one hour.
  • At most 128 tags, of which at most 16 p tags.
  • At most 256 KB per event (32 KB for addressable events on lanes); at most 384 KB per WebSocket message.