Mobile payment systems are changing how the world transacts, and no country has adopted digital payments more rapidly and on a larger scale than India. PhonePe leads that paradigm shift.
With a user base of nearly one in every four Indian citizens, PhonePe is a clear leader in the Indian digital payment space and in India’s premier mobile payment platform in every metric, consistently outperforming competitors.
Scaling to meet their rapid growth — PhonePe has over 435 million registered users and processes over 3.6 billion transactions monthly. Given the scale the company operates at, PhonePe was under pressure to provide secure, frictionless and quick service.
With their peak periods defining their network requirements, PhonePe sought a content delivery network (CDN) with the elasticity to absorb every daily traffic surge. More importantly, that solution had to handle dynamic traffic without introducing any latency that might undermine the user experience.
“Each transaction should take three seconds to complete — as that time increases, people lose patience. Once a transaction reaches 12 seconds, our users assume we are having problems, and volumes drop to zero as they turn to our competitors,” says Burzin Engineer, PhonePe Co-founder and Chief Reliability Officer.
Because the quality of their customer experience is so significant to customer retention, PhonePe also needed a way to manage and efficiently deliver their static image and video content.
Next, as a fintech platform partnering with banks, PhonePe wanted a single solution to provide real-time protection against threats like DDoS, malicious bots, and SQL injections. It also had to ensure instantaneous financial transactions on a massive scale.
“Over 33 million merchants depend on PhonePe to fulfill their transactions, and we are under attack 24/7, 365 days a year,” says Engineer. “We needed the right partner and security tooling to thrive.”
PhonePe selected Cloudflare as their security solution and content delivery partner based on a shared commitment to providing modern solutions and exceptional customer service.
“The Cloudflare tech stack interested us. Compared to the other vendors, it wasn’t carrying the baggage of 20-year-old technologies,” says Engineer. “Cloudflare was newer and had a modern API-driven CDN purpose-built from the ground up.”
The company leadership was also banking on Cloudflare’s commitment to developing relationships in India and improving the topology of its content delivery infrastructure nationwide.
PhonePe began with the Cloudflare core security portfolio. With all of PhonePe’s business conducted domestically, the Cloudflare Web Application Firewall (WAF), managed rulesets, and the ability to geo-block traffic resulted in immediate security benefits.
“Using the Cloudflare WAF, we cut off more than 90% of malicious attacks by restricting traffic to sources within India,” says Engineer. “It gives us peace of mind to know that because everything flows through Cloudflare, we can protect our ingress and egress and keep our customers' data and money safe.”
Cloudflare plays a key role in ensuring PhonePe maintains that critical uptime. Monthly, it detected and neutralized 180 million threats to the PhonePe application layer.
In addition to protecting PhonePe’s applications, Cloudflare simplifies the security auditing process and helps the platform meet its compliance requirements. The announcement that Cloudflare will comply fully with India’s incoming data localization and data residency requirements by the end of 2022 further eased PhonePe’s regulatory needs.
With their security and compliance concerns addressed and their applications and networks protected, PhonePe concentrated on further enhancing their user experience using Workers and the API-first Cloudflare global network.
Initially, PhonePe optimized their millions of source images locally to ensure they were responsive on any device and to improve performance at the point of service. The resizing process required over 50 bare-metal origin servers — Cloudflare Workers eliminated the need for those machines.