0%
SupportSubscription API
How Are Websockets Priced?

How Are Websockets Priced?

Written by Author headshotKilliane Menand
Published on October 8, 20241 min read

Webhooks and WebSockets on Alchemy are priced based on the amount of data (bandwidth) delivered as part of each subscription. This means that pricing is determined by the size of the data transmitted during each event.

  • Per Byte Pricing: Each byte of data transmitted in a Webhook or WebSocket subscription is priced at 0.04 Compute Units (CUs).

  • Typical Event Consumption: A typical event in a webhook or WebSocket subscription involves roughly 1,000 bytes of data, which equates to around 40 Compute Units consumed per event.

  • Variability in Data Usage: The amount of data transmitted (and the corresponding CUs consumed) can vary depending on the type and complexity of the event. Larger events with more data will consume more Compute Units.

To ensure an optimal user experience, you can implement retries in your Webhooks and WebSockets subscriptions. This can help manage occasional network issues, even if you’re not hitting rate limits. Learn more about retry strategies in our documentation here

📘 For more detailed information about Webhooks and WebSockets pricing, you can read the full breakdown in our documentation here

Was this article helpful?
Share:
Banner background image

Not finding what you need?