# Best Practices for production scale deployment of keycloak

**URL:** <https://forum.keycloak.org/t/best-practices-for-production-scale-deployment-of-keycloak/10140>\
**Category:** Miscellanaeous\
**Created:** [July 20, 2021, 1:15pm UTC](https://forum.keycloak.org/t/best-practices-for-production-scale-deployment-of-keycloak/10140 "2021-07-20T13:15:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashishtchaudhari](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/ashishtchaudhari/32/6518_2.png) [@ashishtchaudhari](https://forum.keycloak.org/u/ashishtchaudhari)\
**Post date:** [July 20, 2021, 1:15pm UTC](https://forum.keycloak.org/t/best-practices-for-production-scale-deployment-of-keycloak/10140/1 "2021-07-20T13:15:41Z")

</div>

Hi,  
Can someone please help me with best practices for deployment of keycloak ? We are planning to deploy Keycloak on AWS using EC2 instances and planning to use auto-scaling functionality on the same.

We anticipate having about 15-20 million end users who would use the platform for authentication. Hence, we are looking for best practices for  
a. Scaling considerations and High availability.  
b. Performance Tuning  
c. Security Hardening

Any guidance would be very helpful.

Thanks and Regards,  
Ashish

---

<div class="post-metadata">

**Author:** ![thebrijpatel](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/thebrijpatel/32/11391_2.png) [@thebrijpatel](https://forum.keycloak.org/u/thebrijpatel)\
**Post date:** [October 8, 2024, 12:13pm UTC](https://forum.keycloak.org/t/best-practices-for-production-scale-deployment-of-keycloak/10140/2 "2024-10-08T12:13:30Z")

</div>

Damn, I’m looking for a similar thing. Since this was asked in 2021, can I know how did your setup look like ?

---

<div class="post-metadata">

**Author:** ![embesozzi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/embesozzi/32/12390_2.png) [@embesozzi](https://forum.keycloak.org/u/embesozzi)\
**Post date:** [October 8, 2024, 7:03pm UTC](https://forum.keycloak.org/t/best-practices-for-production-scale-deployment-of-keycloak/10140/3 "2024-10-08T19:03:01Z")

</div>

Easy answer here:  
[1] [Guides - Keycloak](https://www.keycloak.org/guides#high-availability)  
[2] [GitHub - keycloak/keycloak-benchmark: Keycloak Benchmark](https://github.com/keycloak/keycloak-benchmark)
