Ory Hydra Powers OAuth at Cloudflare Scale; and It's Just Getting Started
Discover how Cloudflare used Ory Hydra to scale OAuth for all users, slashing API response times by 45% and memory use by 40% with zero user downtime.

When Cloudflare decided to bring OAuth to every single one of its users, they didn't build their own identity engine from scratch. They turned to Ory Hydra; the same OAuth 2.0 and OpenID Connect server trusted by some of the most demanding infrastructure teams on the planet.
From "Good Enough" to Global Scale
Cloudflare provides services that help run 20% of the web, but in their words “...we don’t do it alone.” To support this massive scale Cloudflare has been running Hydra for years to power OAuth under the hood. It worked well when their usage was limited. But as Cloudflare's platform grew into one of the world's largest network infrastructure providers, "good enough" had to become exceptional. The mission: extend OAuth to all Cloudflare users, without a moment of meaningful downtime.
What followed was a masterclass in large-scale infrastructure migration…and a testament to how Hydra is engineered for exactly these moments.
The numbers tell the story:
- 132.5 million rows updated
- 114.7 million rows inserted
- 136.97GB of temporary storage consumed
- 22,200 transaction commits
All executed with no revocations lost and no user sessions silently broken. Cloudflare used a blue-green deployment, extended token expiry windows, and a Cloudflare Queues-backed replay system to make the migration invisible to their users.
The Performance Speaks for Itself
After upgrading to Ory Hydra 2.X, Cloudflare saw immediate, dramatic gains:
- API response times dropped 45%; from 185ms to 101ms at P95
- Memory consumption fell up to 40% on heap allocation
- CPU usage down 37%
This isn't a minor tuning win. This is what happens when software is built with the right architecture from the ground up…and when it keeps getting better with every release.
The Company Behind Ory Hydra Knows Scale
This kind of outcome is no accident. Ory Hydra is built to handle authentication workloads that would break conventional identity systems. Case in point: OpenAI relies on Ory for login infrastructure serving nearly 900 million users per week; one of the most trafficked authentication systems in existence.
From AI's most recognized platform to the backbone of global internet infrastructure, Ory Hydra is where the world's most serious engineering teams land when they need identity solutions that must handle agent scale and simply cannot fail.
With Roots in Open Source… Always Enterprise Ready
Cloudflare's "OAuth for all" initiative is a landmark moment. It is proof that identity infrastructure has reached a certain level of maturity and reliability upon which global-scale enterprises can bet their security posture.
What makes Hydra exceptional isn't just the performance numbers, it's the philosophy. Hydra comes from open source roots, is standards-compliant (OAuth 2.0, OpenID Connect, PKCE, token introspection), and built to be operated at any scale without vendor lock-in. Whether you're handling thousands of logins or hundreds of millions, the same engine powers it all
That engine is Ory Hydra.
Learn more at ory.com or read the full Cloudflare engineering post at blog.cloudflare.com/oauth-for-all.
Further reading

Ory OSS 25.4.0 brings OAuth 2.0 device authorization flow, SMS login, token chain revocation and more — giving developers and IAM builders a solid foundation for IAM.

Open-source Ory Hydra v25.4.0 addresses agentic authentication with Device Authorization Grant, OAuth 2.1 discovery, and token chain revocation for AI, smart devices, and IoT.

The Ory OSS v25.4.0 release rollout is underway. Discover how Ory’s new unified, calendar-based versioning streamlines upgrades and compatibility across Hydra, Kratos, Keto, and Oathkeeper.

As your ecosystem of apps and services expands, simple authentication fails to scale, creating significant security risks and development challenges. Learn why enterprises must adopt the OAuth2 standard and how combining a robust identity system like Ory Kratos with an authorization server like Ory Hydra builds the secure, future-proof architecture needed for growth.


