Boosting Performance and Scalability with Ory Network Edge Sessions
Tags: orynetwork, authentication, webdev
Published: 2023-07-18 11:12:08

In today's digital world, where users demand fast and responsive applications, optimizing performance and scalability is paramount. This also includes a fast and scalable delivery of personal information and session data.

One effective technique that can enhance the performance of an application and by that also the user experience is the use of Ory Network Edge Sessions. By enabling Edge Sessions, Ory Network takes advantage of Cloudflare's global network infrastructure, utilizing smart caching strategies to validate sessions at a node which is milliseconds away from virtually every Internet user, thereby reducing latency.

## Benefits of using Ory Edge Sessions

Ultra Low Latency: In the realm of identity management and access control, every millisecond matters. Edge Sessions provide critical user session information at the node with the closest geographical proximity to the requesting client, rather than repeatedly fetching session data from a datacenter that may be hundreds or even thousands of miles away. This approach drastically reduces response times, enabling swift authentication processes, fostering a frictionless user experience.

> When leveraging Edge Sessions with Ory Network, you can expect a P95 latency of ~60ms and a P99 latency of ~70ms across the globe. (*1)

### Scalability for Growing Demands

As businesses expand and user bases grow, scalability becomes a paramount concern. Our Ory Network and Ory Edge Sessions have been designed with scalability in mind, allowing organizations to effortlessly handle increasing traffic and concurrent user sessions. By distributing session information across multiple nodes, Ory Networkgu ensure optimal performance and eliminate bottlenecks. This supports the evolving needs of organizations to thrive and expand.

### Fortifying Security Measures

Security is at the core of our products and edge sessions play a vital role in strengthening data protection. By smart caching session data in a secure and encrypted manner, we minimize the need for frequent database or server access, reducing the attack surface and potential vulnerabilities. Additionally, Edge Sessions are equipped with robust expiration and invalidation mechanisms, ensuring that session data is automatically cleared after a specified time or updated when a user updates their profile. This proactive approach to managing sessions enhances security by preventing unauthorized access and mitigating the risk of session hijacking.

### Optimized Resource Utilization

Edge Sessions not only enhance performance and security but also optimize resource utilization within Ory Network. With session data stored in an edge node, the load on servers and databases is significantly reduced. This efficient resource allocation translates to improved overall system performance, enabling Ory Network to handle larger user volumes without sacrificing speed or compromising user experiences. Organizations can rely on Ory Network to deliver exceptional performance consistently, even during peak usage periods.

## Conclusion

With Ory Network, we prioritize delivering a comprehensive identity management and access control solution that excels in performance, scalability, and security. By leveraging the power of Edge Sessions, we enhance the user experience by providing the lowest possible latency and seamless scalability. Trust in our commitment to delivering excellence as you leverage Ory Network to streamline user management and access control with optimal efficiency and peace of mind.

[Get in touch with the Ory team](https://meetings-eu1.hubspot.com/aeneas/contact) to learn more about how our solution can empower your organization.

> The Edge Sessions feature is a available on all Ory Network paid plans. You can find more information on how to facilitate Edge Sessions in the Ory Network [here](https://www.ory.sh/docs/concepts/cache).


(*1) Results can vary depending on the geographical proximity to the closest node