Skip to main content

Build a Fault-Tolerant Identity Verification Gateway with NGINX & Didit

Discover how to build a robust, fault-tolerant identity verification gateway using NGINX as a reverse proxy and Didit's AI-native platform. This guide covers load balancing, caching, and secure API integration for seamless.

Build a Fault-Tolerant Identity Verification Gateway with NGINX & Didit

Contents

In this guide

Jump to the part you need.

Optimize Performance with NGINXImplement NGINX as a reverse proxy to manage traffic, load balance requests, and cache responses for your identity verification services, ensuring high availability and speed.

Enhance Security and ReliabilityUtilize NGINX features like SSL/TLS termination, rate limiting, and redundant configurations to protect your verification gateway and prevent service disruptions.

Seamlessly Integrate Didit's APIConnect your NGINX gateway to Didit's robust, AI-native identity verification APIs, leveraging its modular building blocks for comprehensive and accurate checks.

Didit's Role in Fault ToleranceDidit's globally distributed infrastructure and AI-native platform provide inherent reliability, complementing your NGINX setup for an end-to-end resilient identity verification solution.

In today's digital landscape, identity verification is a critical component for businesses across all sectors. From financial services and e-commerce to social media and gaming, ensuring the authenticity of users is paramount for security, compliance, and fraud prevention. However, building an identity verification system that is not only accurate but also fault-tolerant and highly available presents significant challenges. This is where combining the power of NGINX as a robust gateway and Didit's AI-native identity verification platform becomes a game-changer.

Why a Fault-Tolerant Gateway is Essential for Identity Verification

Identity verification services are often external, API-driven solutions. Any disruption in connectivity, an overloaded server, or a sudden spike in verification requests can lead to service outages, frustrating users, delaying onboarding, and potentially exposing your business to risks. A fault-tolerant gateway acts as a crucial intermediary, shielding your application from these issues and ensuring a continuous, reliable verification process.

NGINX, a high-performance web server and reverse proxy, is an ideal choice for building such a gateway. Its event-driven architecture allows it to handle a large number of concurrent connections efficiently, making it perfect for managing API traffic to external services like Didit. By placing NGINX in front of your identity verification API endpoints, you gain unparalleled control over traffic flow, security, and reliability.

Leveraging NGINX for High Availability and Performance

Configuring NGINX as a reverse proxy for your identity verification requests offers several key advantages:

  1. Load Balancing: If you're leveraging multiple instances or regions of an identity verification service (or have fallback services), NGINX can distribute incoming requests across them. This prevents any single server from becoming a bottleneck, improving response times and ensuring continuous service even if one backend fails. For example, you could configure NGINX to route requests to primary Didit endpoints and fall back to secondary ones if needed.
  2. Caching: While identity verification is a real-time process, certain attributes or results might be cached for a short period to reduce redundant API calls, especially for repeated checks on the same user within a defined timeframe. NGINX can serve cached responses, significantly reducing the load on the backend and speeding up subsequent requests.
  3. SSL/TLS Termination: NGINX can handle SSL/TLS encryption and decryption, offloading this CPU-intensive task from your application servers and ensuring secure communication with Didit's APIs. This centralizes certificate management and simplifies your application stack.
  4. Rate Limiting: Protect your backend identity verification services from abuse or unintentional overload by configuring rate limits in NGINX. This ensures fair usage and prevents denial-of-service attacks, maintaining the stability of your verification pipeline.
  5. Health Checks: NGINX can be configured to periodically check the health of its upstream servers. If a Didit API endpoint (or any other backend service) becomes unresponsive, NGINX can automatically stop sending requests to it, rerouting traffic to healthy instances until the issue is resolved.

A typical NGINX configuration for an identity verification gateway might involve defining an upstream block for Didit's API endpoints and then routing requests to this upstream, applying caching, and security policies.

Integrating with Didit: The AI-Native Advantage

Once your NGINX gateway is in place, integrating with Didit's identity verification platform is straightforward and highly beneficial. Didit offers a comprehensive suite of AI-native tools designed for robust and accurate identity verification, including ID Verification (OCR, MRZ, barcodes), Passive & Active Liveness, 1:1 Face Match & Face Search, AML Screening & Monitoring, Proof of Address, and Age Estimation. These modules can be orchestrated into custom workflows, accessible via clean APIs.

For instance, an NGINX-protected endpoint could forward requests to Didit's API for ID Verification. Didit processes the document, performs Liveness Detection, and returns a decision. Your NGINX gateway ensures that this communication is fast, secure, and resilient to network fluctuations or backend issues.

Didit's developer-first approach means that its APIs are easy to integrate, providing instant sandboxes and public documentation. This allows you to quickly configure your NGINX gateway to interact with specific Didit endpoints for different verification needs, such as:

  • Routing requests for Age Estimation to a dedicated endpoint, ensuring compliance for age-restricted content or services.
  • Directing requests for AML Screening to another endpoint for financial crime prevention.

By using NGINX, you can also implement advanced routing logic, for example, directing specific types of verification requests (e.g., high-risk transactions) to different Didit workflows or even to different regional Didit instances for optimal latency.

How Didit Helps

Didit provides the AI-native, developer-first identity platform that complements your fault-tolerant NGINX gateway. Our modular architecture allows for plug-and-play identity checks, enabling you to compose verification workflows that are precisely tailored to your needs. With Didit, you benefit from:

  • Pay per use: Get started with essential identity verification features without upfront costs.
  • AI-Native Accuracy: Our platform uses advanced AI to ensure high accuracy and reduce false positives/negatives across all verification types, including ID Verification, Passive & Active Liveness, and Face Match.
  • Global Reach: Didit is designed to operate globally, providing reliable verification in diverse regions and supporting a wide range of document types.
  • Orchestrated Workflows: Design custom verification journeys with our no-code engine, streamlining complex compliance requirements and enhancing user experience.
  • No Setup Fees: Integrate seamlessly without worrying about hidden costs, allowing you to focus on building a robust solution.

By combining NGINX's gateway capabilities with Didit's powerful identity verification modules, businesses can build an identity solution that is not only secure and compliant but also highly available, performant, and resilient to the unpredictable nature of the internet.

Ready to Get Started?

Ready to see Didit in action? Get a free demo today.

Start verifying identities for free with Didit's free tier.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.