Skip to main content

From Legacy SOAP to Modern gRPC for Identity Verification

Migrating identity verification microservices from legacy SOAP to modern gRPC offers significant performance, scalability, and developer experience benefits.

From Legacy SOAP to Modern gRPC for Identity Verification

Contents

In this guide

Jump to the part you need.

The Imperative for ModernizationLegacy SOAP-based identity verification systems often struggle with the demands of modern digital services, leading to latency, scalability issues, and complex integrations that hinder innovation and user experience.

gRPC: The Performance PowerhouseMigrating to gRPC provides a substantial upgrade, leveraging HTTP/2 for multiplexing, binary serialization (Protocol Buffers) for efficiency, and strong typing for improved developer productivity and fewer runtime errors.

Streamlined Microservices ArchitecturegRPC's capabilities are perfectly suited for a microservices architecture, enabling faster inter-service communication, real-time data processing for fraud detection, and more resilient, scalable identity verification workflows.

Didit: Accelerating Your Migration and ModernizationDidit's AI-native, modular identity platform, with its clean APIs and orchestratable workflows, simplifies the transition from legacy systems, offering high-performance, developer-first solutions for ID Verification, Liveness, and AML Screening, all while providing a Core KYC tier.

The Challenges of Legacy Identity Verification Systems

In today's fast-paced digital world, identity verification is no longer a static, one-time event. It's a continuous process crucial for onboarding new users, preventing fraud, and ensuring compliance. Many organizations, however, are still tethered to legacy identity verification systems, often built on older technologies like SOAP (Simple Object Access Protocol).

SOAP, while robust in its time, presents significant challenges for modern microservices architectures. Its XML-based messaging is verbose, leading to larger payload sizes and increased network latency. This can be a critical bottleneck for identity verification, where speed and efficiency are paramount. Imagine a user trying to sign up for a new service, only to be met with slow verification times due to a cumbersome backend. This directly impacts conversion rates and user satisfaction. Furthermore, SOAP's tight coupling and complex WSDL (Web Services Description Language) definitions can make integration and maintenance a nightmare for developers, hindering agility and the ability to rapidly deploy new features or adapt to evolving regulatory landscapes.

The lack of native support for modern features like streaming and bi-directional communication also limits the capabilities of these systems, especially when dealing with real-time biometric data for Liveness Detection or continuous AML Screening and Monitoring.

Why gRPC is the Future for Identity Microservices

Enter gRPC, a modern, high-performance RPC (Remote Procedure Call) framework developed by Google. gRPC addresses many of the shortcomings of SOAP, making it an ideal choice for building and migrating identity verification microservices. At its core, gRPC leverages HTTP/2 for its transport protocol and Protocol Buffers (protobuf) for its interface definition language and message interchange format.

The benefits of this architecture are substantial:

  • Performance: HTTP/2 enables multiplexing, allowing multiple concurrent requests over a single connection, significantly reducing overhead. Protocol Buffers provide a compact, binary serialization format, resulting in much smaller message sizes compared to XML or JSON, leading to faster data transfer and lower latency. This is critical for real-time ID Verification and Passive & Active Liveness checks, where every millisecond counts in preventing sophisticated fraud attempts.
  • Efficiency: gRPC's focus on efficiency extends to CPU and network resource utilization, making it highly suitable for high-volume identity verification systems that need to process millions of requests daily without compromising performance.
  • Strong Typing and Code Generation: Protocol Buffers allow you to define your service interfaces and message structures in a language-agnostic way. gRPC then generates client and server code in various programming languages, ensuring strong typing and reducing the potential for runtime errors. This improves developer productivity and simplifies cross-language interoperability, a common requirement in diverse microservices environments.
  • Streaming Capabilities: gRPC natively supports various types of streaming (unary, server-side, client-side, and bi-directional streaming). This is invaluable for identity verification, enabling real-time data flows for continuous monitoring, processing large batches of verification requests, or handling interactive biometric challenges during a Liveness check.

Practical Steps for a Smooth Migration

Migrating from a legacy SOAP system to a modern gRPC-based microservices architecture for identity verification can seem daunting, but a phased approach can make it manageable:

  1. Identify and Isolate Core Services: Start by identifying the most critical and frequently accessed identity verification functionalities. This might include ID Verification (OCR, MRZ, barcodes), 1:1 Face Match, or initial AML Screening. These services are often good candidates for early migration due to their direct impact on user experience and fraud prevention.
  2. Design gRPC Interfaces: Define your new gRPC service definitions (.proto files) for these core services. Focus on clear, concise message structures and RPC methods. Consider how data flows and how you can leverage gRPC's streaming capabilities for enhanced performance, especially for real-time data like biometrics.
  3. Build Proxy Services: To ensure a smooth transition and minimize disruption, consider building a proxy layer. This layer can translate incoming requests from your existing applications (which might still be using SOAP or REST) into gRPC calls to the newly migrated identity microservices. This allows you to gradually update client applications without a big-bang rewrite.
  4. Implement and Test Incrementally: Develop the new gRPC microservices incrementally, thoroughly testing each component. Utilize tools for load testing and performance benchmarking to ensure the new gRPC services meet or exceed the performance of your legacy system.
  5. Monitor and Iterate: Once deployed, closely monitor the performance, reliability, and security of your new gRPC identity microservices. Leverage distributed tracing and logging to identify and resolve any issues quickly. The modular nature of microservices allows for continuous iteration and improvement.

This migration also presents an excellent opportunity to re-evaluate your entire identity verification stack. Perhaps you can integrate advanced features like NFC Verification for ePassports/eIDs for higher assurance, or Age Estimation for age-restricted services, directly into your new gRPC-powered workflows.

How Didit Helps

Didit is purpose-built to accelerate this modernization journey. As an AI-native, developer-first identity platform, Didit provides the open, modular identity layer that businesses need to move beyond legacy systems and embrace high-performance, scalable identity verification. Our platform simplifies the transition to a modern microservices architecture by offering:

  • AI-Native Performance: Didit's core is built on AI, ensuring that our ID Verification, Passive & Active Liveness, and 1:1 Face Match & Face Search capabilities are not only highly accurate but also incredibly fast. This high performance is crucial for real-time fraud prevention and delivering seamless user experiences, aligning perfectly with the benefits of gRPC.
  • Modular Architecture & Clean APIs: Our composable identity primitives are exposed via clean APIs, allowing you to plug-and-play verification checks into your new gRPC-powered microservices. Whether you need OCR for document scanning, AML Screening for compliance, or Proof of Address, Didit offers a modular solution that integrates effortlessly.
  • Orchestrated Workflows: With Didit's no-code Business Console, you can design and orchestrate complex identity verification workflows with ease. This means you can define the exact sequence of checks, including ID Verification, Liveness, and database checks, without extensive coding, and then integrate these workflows into your gRPC services.
  • Developer-First Experience: Didit provides an instant sandbox, comprehensive public documentation, and developer-friendly tools to make integration straightforward. This significantly reduces the development effort required for your migration, allowing your teams to focus on core business logic rather than identity plumbing.
  • Core KYC: Didit offers a Core KYC tier with pay-per-use pricing, so you can start verifying identities without upfront investment. Our pay-per-successful check model and no setup fees further reduce the financial barriers to adopting a modern identity solution.
  • Global by Design: With support for a vast array of document types and global data sources, Didit ensures your identity verification processes are ready for international markets, a critical advantage for businesses with global ambitions.

By leveraging Didit, you can rapidly replace outdated SOAP services with high-performance, gRPC-friendly identity verification components, ensuring your microservices architecture is robust, scalable, and future-proof.

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.