# LenderLink infrastructure High Level Design

Infrastructure

### LenderLink Infrastructure High Level Design

**1. Solution HLD diagram**

Option 1 - The contributor opens an API endpoint for Lenderlink, allowing LenderLink to connect directly.

<figure><img src="/files/kKznxxark0UVymltgwyR" alt=""><figcaption></figcaption></figure>

Option 2 - LenderLink provides a Docker container to be deployed on the contributor’s infrastructure. The contributor will upload their data into the container using GUI.

<figure><img src="/files/VvNbYddUkE2WoynjA1hm" alt=""><figcaption></figcaption></figure>

**2. Data flow diagram**

Option 1 - The contributor opens an API endpoint for Lenderlink.

<figure><img src="/files/ubV9Wj0L8MbU5azDu5h3" alt=""><figcaption></figcaption></figure>

Option 2 - LenderLink provides a Docker container to be deployed on the contributor’s infrastructure. The contributor will upload their data into the container using GUI.

<figure><img src="/files/l0SEX28RrH2QBivYSbRp" alt=""><figcaption></figcaption></figure>

**3. Data flow for queries**

For data queries, LenderLink requires each contributor to provide a regularly updated SHA512 list of all phone numbers from their database.  For more information, see [Submitting Phone Numbers](/product-guides/submitting-phone-numbers.md)

As shown on the diagrams below when a phone number search query is received, LenderLink will first hash it and then compare it to the SHA512 phones list received from the contributor. If there is a match LenderLink will identify which contributor has this information and  query them via their endpoint (Option 1), or via our Docker container (Option 2), depending on the integration method chosen.  If there is no match, LenderLink will return that information to the consumer who made the query.

<figure><img src="/files/90nBQQlMQmb1qbAi53zJ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/rXw0174AuCK1vKnPm9HH" alt=""><figcaption></figcaption></figure>

**4. Easy Integration**

LenderLink offers two primary integration methods for contributors:

* Preferred Method: API Endpoint: The contributor can open an API endpoint.
* Alternative Method: Docker Container: LenderLink provides a Docker container, which can be deployed on the contributor's infrastructure, containing a local database and microservice. The local DB will be updated by the contributor via a GUI (this could be automated depending on the contributor\`s setup) and the microservice will be used by the LenderLink platform to securely make queries to the local DB. This ensures that the contributor will always have control over their data and the data will always be resident in their data center infrastructure. The docker container will be easy to deploy in existing docker infrastructure and will be maintenance free for the contributors.

**5. Data Control**

The data stays at the contributor\`s data center in the local DB on our docker container.

**6. Secure Encrypted Connection**

The LenderLink microservice at the contributor\`s site will communicate with the platform in the AWS cloud via HTTPS in an encrypted dedicated VPN tunnel embedded in the docker container that LenderLink provides. That ensures a high level of secure and encrypted connection. When consumers query data from LenderLink, they connect directly to the main LenderLink API, hosted in the AWS cloud, via HTTPS.

**7. Availability, Security, Scalability of the LenderLink Platform**

The main LanderLink platform is hosted in the AWS Cloud. Particularly in the AWS\`s Manila local zone. This will ensure single-digit millisecond latency on the connection to the cloud. The platform will reside also in a second AWS zone for availability and redundancy. High level of security and DoS protection will be implemented via the AWS native services. Scalability is also provided by AWS services which ensures that the platform can scale rapidly in size and connect as much as needed by contributors and consumers.

**8. Monitoring**

LenderLink includes a monitoring service that will monitor the status of the Docker containers and the main platform. This will let us proactively resolve any issues and keep the solution up and running. The monitoring services includes:

* Docker container status – Regular checks to confirm the container is up and running with good connection to AWS.
* Data quality –Continuous monitoring to ensure that the data that is uploaded to the Docker container is in the correct format.
* Data upload – Verifying that the data is regularly uploaded.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lenderlink.ph/overview/fundamentals/lenderlink-infrastructure-high-level-design.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
