🍋 Yuzu

Dashboard

Getting Started

The Yuzu Platform

Guides

Creating API Keys

Rate Limits

Usage with Apollo React/React Native

Recipes

Build a live-updating stock price badge

Show the latest exchange rates for your product

Streaming API

Subscription and Authorization

Available streams

Message reference

GraphQL API

Introduction to GraphQL

Making GraphQL Requests

Authorization

Pagination

Errors

Schema Reference

Guides

Rate Limits

Overview

Yuzu rate-limits API users based on their plan. For an overview of plans with pricing, you can visit our pricing page.

If you're on a Scale plan, not to worry! You'll never run into a rate limit. If you're on a Community or Starter plan, you might encounter the following rate limits:

  • Community
    • 1 request/second for GraphQL requests (up to 3 requests/second in bursts)
    • 10 concurrent streaming connections
  • Starter
    • Unlimited GraphQL requests
    • 100 concurrent streaming connections

How we implement rate limits


GraphQL Rate Limits

Rate limits on community plans are implemented per API token. In the GraphQL API, we use a lazy-fill token bucket to calculate and enforce rate limits.

A TokenBucket is an implementation that stores a maximum number of requests (the burst size), and refills itself at a known rate. The bucket starts full and the internal count is decremented as requests are received. This allows you to temporarily exceed your rate limit for short bursts.

This implementation is the same that Coinbase uses to enforce rate-limits on its API. You can read more about how TokenBuckets work in their docs.

Streaming rate limits

The Streaming API rate-limits consumers in a first in, first out pattern.

For example, if you're on a rate-limited plan with 10 concurrent connections, you can connect up to 10 clients to the API. When you try to connect an 11th client, however, the oldest client in the pool will be disconnected.


Sign up for a Yuzu account today to get started!

Sign up


Creating API Keys

Usage with Apollo React/React Native