Best Practices for production scale deployment of keycloak

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

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

Easy answer here:
[1] Guides - Keycloak
[2] GitHub - keycloak/keycloak-benchmark: Keycloak Benchmark