> **Source:** https://knowledge.leegality.com/document-execution/esign-type/aadhaar/esp-auto-switch > **Site:** Leegality Knowledge Base — https://knowledge.leegality.com > **About:** Leegality is a document execution platform covering eSigning, stamps, NeSL, workflows, and REST API integration. > **Navigation:** Every article on this site has a plain-text version at `.txt` (this format). To get an index of all articles with their `.txt` links, read: https://knowledge.leegality.com/llms.txt > **AI Guide:** For instructions on how to navigate this knowledge base as an AI agent, read: https://knowledge.leegality.com/ai-readable.txt --- # ESP Auto Switch ESP Auto Switch is an intelligent backend feature that automatically switches between Aadhaar eSign Service Providers (ESPs) based on real-time performance monitoring. This ensures signers are always routed to the best-performing ESP, eliminating customer drop-offs due to ESP downtime and maintaining business continuity without manual intervention. ### Key Benefits - **Automatic ESP prioritisation** based on real-time success rates - **Multiple backup ESPs** for maximum reliability - **Reduced turnaround time** for transactions ### The Problem: ESP Downtime #### What is ESP Downtime? ESP downtime occurs when an eSign Service Provider experiences technical issues, outages, or performance degradation that prevents users from completing their eSign transactions. This can happen due to: - Server maintenance or upgrades - Technical failures or system crashes - Network connectivity issues - High traffic loads exceeding capacity - Third-party service dependencies ### How ESP Auto Switch Works ESP Auto Switch operates as an intelligent backend system that continuously monitors ESP performance and automatically adjusts routing priorities to ensure optimal signing success rates. #### Continuous Monitoring Leegality continuously monitors the health and performance of all connected ESPs: - **Check frequency**: Every 10 minutes - **Success rate tracking**: Real-time monitoring against predefined thresholds - **Automatic evaluation**: Compares performance across all available ESPs - **Smart prioritisation**: Automatically adjusts ESP priority order when performance drops #### Intelligent Routing Logic The system uses different routing strategies for OTP and Biometric authentication: ##### OTP-Based Authentication - Auto-switching applies to all OTP-based transactions - ESP priority adjusts automatically based on success rate monitoring - Organisations with custom ESP configurations need to manage priorities manually ##### Biometric Authentication (Fingerprint) - Auto-switching extends to biometric (fingerprint) flows - **Device-based routing**: ESP selection considers device compatibility with ESPs - Example: If a device supports only NSDL and CDSL, the signer is routed accordingly, skipping incompatible ESPs like Verasys #### NSDL as Super Priority NSDL (Protean) is set as the default first-priority ESP due to its consistently high success rate: - **Maintains priority** as long as success rate remains above 40% - **Automatically de-prioritized** if success rate falls below 40% - **Regains priority** automatically once performance is restored above the threshold ### Signing Experience ESP Auto Switch operates primarily in the background, making the process seamless for signers while ensuring they always interact with the best-performing ESP. #### For the Signer When a signer clicks on the eSign link: 1. **Automatic routing**: The signer is automatically directed to the ESP webpage that is performing best at that moment. 2. **Streamlined process**: The signer sees no indication of auto-switching—they simply land on the ESP authentication page. 3. **Standard signing flow**: The signer proceeds with OTP or biometric authentication as usual. #### If Authentication Fails If a signer encounters an error during the authentication process: 1. The signer needs to **start the signing journey again** by clicking the eSign link. 2. On the next attempt, the system routes them to the **next best-performing ESP** in the priority order. > **Tip — For Signers** > > If you encounter an error during signing, simply click on the eSign link again to retry. The system will automatically route you to an alternative ESP to help ensure successful completion. --- ### Frequently Asked Questions #### 1. Why is my ESP (E-Sign Service Provider) auto-switching not happening? If your ESP is not automatically switching during a low-success period, it is likely due to one of the following configuration settings: **Potential Causes for Auto-Switch Failure:** * **Manual Priority Configuration:** If your organisation has a **Manual ESP Order** configured, it takes precedence over the global auto-switch logic. * *Example:* If you have manually set CDSL as P1 and NSDL as P2, the system will **always** attempt CDSL first for every invitee, even if CDSL’s success rate is currently low. The performance-based "Auto-switch" will not trigger because the manual rule is being enforced. * **Single ESP Setup:** The system requires at least two providers to perform a switch. * *Example:* If your organisation has only one ESP configured (e.g., only NSDL), the invitee will land on that same ESP every time. Since there is no secondary provider available, a switch cannot occur regardless of the ESP's status. * **First-Attempt Logic:** The auto-switch system functions as a performance-based rerouting. * *Note:* Even with auto-switching enabled, the system will still attempt your primary (P1) provider on the first try. It cannot bypass a hard-coded manual sequence for the initial landing unless that sequence is removed from your settings. **How to Resolve:** If you are experiencing issues with ESP switching, you can take the following steps depending on your needs: * **To Enable Performance-Based Switching:** If you want the system to automatically choose the best-performing provider, you must request to have **Performance-Based Auto-Switching** enabled for your organisation. * **To Monitor Downtime:** If you prefer to stay with your current configuration, you can wait for your primary ESP to recover. You can monitor real-time service status at any time here: [**Leegality Aadhaar Tracker**](https://www.leegality.com/aadhaar-tracker). * **To Change Your Configuration:** Since ESP priority and switching logic are managed at the system level, please contact [support@leegality.com](mailto:support@leegality.com). Our team can: * Provide details on your organisation's specific ESP configuration. * Update your ESP priority order. * Transition your account from a Manual Priority to an Auto-Switching setup.