How India’s National Stock Exchange Builds Its Critical IT Infrastructure
Technology leaders are often drawn into addressing the quintessential organizational needs of reliability, availability, scalability, and security among other critical features in their IT infrastructure and applications. While these challenges are prevalent across various industries, evolving business imperatives can shift the emphasis on industry-specific requirements. National Stock Exchange (NSE) is an interesting example of the same. It uses information technology to deliver services that meet both the stringent regulatory standards and also investor needs. And if you’re building for India, these needs require remarkable efficiency and scale.
Who is NSE?
NSE is one of the world’s largest stock exchanges. It is based in India and also runs India’s largest trading platform. It is globally #1 in terms of derivative contracts traded for last five consecutive years. According to the World Federation of Exchanges, NSE ranks third globally in the equity segment by volume of trades. Very recently, it created a world record in terms of the number of transactions in a single day.
Since its inception in 1994, the market capitalization for companies listed on NSE has increased 100 times, to a staggering USD $4.6trillion. NSE has built a highly versatile trading hub with a world-leading multi-asset class exchange. NSE has always prided itself on investing in tech ahead of time. For example, it introduced APIs over two decades ago when no one even talked about them. Likewise, it implemented a T+1 settlement cycle across all sectors without the need for pre-funding. In comparison, T+2 is the norm across the globe, barring a limited T+1 segments in China that require pre-funding. Now it’s aiming to offer same-day settlement and in early 2024 already achieved T+0 cycle for a few select stocks.
Technology leadership is key for NSE
NSE’s business leadership necessitates investments in advanced technology to operate its systems and maintain their modernity. I recently had the opportunity to speak with Mr. Sampath Manickam, the Chief Technology Officer (CTO) of Technology Infrastructure at NSE. Our discussion began with the topic of technical debt and strategies for its effective management. And very quickly it evolved into an exploration of NSE’s dynamic requirements, its state-of-the-art infrastructure and pursuit of High-Performance IT strategy. Sampath remarked, “Capital markets in India are distinctive, and NSE is in a league of its own”. After speaking to Sampath, I concur with him, and I’m confident that you will too once you read the following.
NSE has fairly unique business needs
NSE’ IT strategy must enable its highly complex and critical business. To that end, it must stay at the forefront of technological innovation and needs a highly robust technology infrastructure. Its business and regulatory demands are unique in many ways:
- Unmatched availability: NSE must offer an uninterrupted service, ensuring zero downtime during trading hours to prevent financial losses. It has built its core trading systems on fault-tolerant architectures, allowing them to operate at five-9s availability or higher. The exchange employs extensive redundancy at every layer of its technology stack. For example, it has a 4:1 ratio for critical telecom links for persistent connectivity.
- Ultra-Low latency: NSE’s operations demand near-zero latency, with latency measured in microseconds. In a stark contrast, other Industries typically measure it in milliseconds. Its systmes must process millions of transactions per second. It has fine-tuned them for rapid response, with some of the component clocking nanoseconds latencies.
- Resilient operations: NSE’s resilience must extend beyond standard Disaster Recovery (DR) practices. It has to maintain performance parity even if the primary Data Center (DC) fails. It supports a switchover time of less than 45 minutes. Additionally, it utilizes a SaaS based trading platform to allow it to continue and settle trades. And regulations demand that this trading platform must run in the DC of (hold your breath) BSE, the other major exchange within India.
- Scalability: NSE has to be adept at handling fluctuating loads. These can vary throughout the day, month, and or any day in the quarter- or year based on the market event. It has primed its infra for sudden market shifts triggered by major events. It maintains a design capacity at 1.5 times the peak load at any given point in time. It monitors its system loads in real-time, and has pegged its capacity at a level based on the global maxima, i.e., peak of the peaks.
Now, most organizations typically have to meet at most one or two of these needs at various points. But not NSE. In must meet all of the above stringent resiliency, scalability, availability and latency requirements at all times. It has to do it all in a highly regulated environment. For example, cloud has resolved many such challenges, it is not yet an viable option for the exchange. NASDAQ recently implemented AWS (Amazon Web Services) Outposts for one of its options trading platforms and was able to achieve low two-digit microsecond latency. NSE has to achieve an even lower latency, utilizing an in-house DC, DR, and NDR setup.
So how does NSE do it?
To plan, build and manage it IT infrastructure, NSE adheres to certain design principles and best practices that can serve as lessons for anyone with similar needs. I have outline a few of them below.
- Proactive modernization: NSE’s technology infrastructure teams are relentless in their pursuit of excellence. They are continuously modernizing and optimizing their systems to stay ahead of the curve. The team meticulously monitors the load every minute, hour, day, week, and month, ensuring the system is able to handle peak demands. This ongoing process includes adding capacity, rigorous load testing, fine-tuning, and systematic upgrades, to ensure unparalleled scale and capacity.
- Architectural mastery: At the heart of the exchange’s operations are its homegrown applications, crafted by their expert application teams for ultra-low latency. These bespoke solutions offer significant architectural control and seamlessly integrate with the hardware layer to minimize overhead and achieve the critical low-latency thresholds essential for trading operations.
- Latency innovation: The quest for even lower latency is relentless. NSE constantly scouting for cutting-edge technologies and novel approaches to shave off precious microseconds, striving for the fastest transaction speeds in the financial world.
- Infrastructure-as-Code (IaC): Embracing the future, NSE embarked on its IaC journey a year ago and has already reached the halfway mark. Today, most of its infrastructure is ‘software-provisioned’ and ‘configurable’. IaC significantly reduces the need for manual hardware configurations and propels NSE towards a more agile and responsive technological ecosystem.
- Advanced automation: Automation is the cornerstone of NSE’s operational efficiency. It encompasses everything from DC to DR switchover, system patching, server provisioning, and storage lifecycle management across three datacentres, to workflow automation. They are also looking at applying AI into both, application releases and firewall management for making automation ubiquitous. Extensive automation ensures that the DR and NDR remain in perfect sync with the primary DC, courtesy of automated configuration drift analysis. This comprehensive automation strategy empowers NSE to enhance its infrastructure capacity rapidly and impeccably, thereby reducing manual intervention and the associated risks of human error.
In summary
NSE is doing a remarkable job, isn’t it? Particularly, among other things, their capability to process 1mn transactions per second during trading hours is noteworthy. NSE has even handled peak of over 15 billion transactions in a single day. For context, Google handles approximately 100,000 searches per second. While it is not a direct comparison, it still highlights NSE’s undeniably impressive processing power.
It was a fun and an enlightening experience to speak to Sampath. The great work that he and his team at NSE are doing is claerly worth sharing. I am excited to share more such inspiring dialogues with you on this platform. If you have a similarly compelling story, please feel free to reach out to me.