Architect Solution for Loan Origination System

Abdul Aziz Al Basyir
4 min readMay 22, 2024

--

Hi, mediumers! I'm very excited to share with you guys solution architect of Load Origination System

Use Case

Make Load Origination app that can be used in multiplatform which means for mobile and web (no desktop need)

Photo by micheile henderson on Unsplash

What is Load Origination?

Before we carry this, we have to get mind in the same page, so

Loan origination is the process by which a borrower applies for a new loan, and a lender processes that application. Origination generally includes all the steps from taking a loan application up to disbursal of funds (or declining the the application)

see: https://en.wikipedia.org/wiki/Loan_origination

I think you all know it now, so let's deep dive to make a solution for this

Photo by Yancy Min on Unsplash

because I’m human, if you have any thoughts please lemme know by comment this article

also if you like it, please applause as much as you can ok? hahaha

Architect Goals

The goals of this architect

  • Achieve business goals
  • Easy to be scaled as needed (Codebase and Infra)
  • Cost Efficient (Team and Infra)
  • DX is priority

Architecture Overview

https://github.com/albasyir/open-architech/tree/main/Loan%20Origination%20System

let’s see how we implement this solution
(I think layers need to be updated however this is still relevant, I will update soon!)

Architecture Layers

We need to explain all layers including the reason

User Interface (UI) Layer

for efficiency, we develop cross-platform applications only in a single codebase but will make the cross-platform output

  • Web Application:
    Developed a responsive, interactive user experience.
  • Mobile Application:
    Carryout Web App Project to develop with Web Application

Application Layer

Frontend

Backend:

Business Logic Layer

  • Loan Processing Engine
    Handles the core loan origination logic.
  • Workflow Automation
    Orchestrates various steps like application submission, document verification, credit scoring, and approval.
  • Rule Engine
    Manages business rules for loan eligibility, risk assessment, and compliance.

Integration Layer

Data Layer

  • MySQL
    Primary relational database with replication for high availability.
  • Redis
    For caching frequently accessed data to improve performance.

Security Layer

  • Authentication
    Using OAuth2 and JWT for secure user authentication.
  • Authorization
    Role-based access control (RBAC) to manage user permissions. (ex: user:read, user:delete)
  • Data Encryption
    Encrypting sensitive data at rest and in transit using SSL/TLS.

DevOps Layer

  • CI/CD Pipeline
    GitHub Actions for continuous integration and delivery.
  • Infrastructure as Code
    AWS CloudFormation for managing infrastructure, and we can commit YMAL file on git if needed
  • Logstash
    transform any log from service to elastic search within structured data, also log stash is supported by many protocols
    see https://www.elastic.co/logstash
  • Elastic Agent
    to get all logs from K8s to Elasticsearch
    see https://www.elastic.co/elastic-agent
  • Elasticsearch
    Semi-structured and document-oriented database for fast and complex logging finder many Log visualization can support it like Kibana, Gravana and more so when we have done with Kibana because some reason, we can change it
  • Kibana
    for log visualization, Kibana is “priority support” that makes sure Kibana can give us the best performance and is easy to start with, my recommendation is to use this when wanna get started without any requirements like: “Our businessman wanna see log dashboard”

Architecture Service

for this solution we use AWS Cloud as our cloud service, here’s a list of products that we use for this case

Conclusion

(in progress)

Photo by Ben White on Unsplash

Please give applause if you like it and comment to let me know if this article is useful for you also we can discuss it!

--

--

Abdul Aziz Al Basyir

I’m Senior Software Engineer, Solution Architect Enthusiast and Cross-platform Enthusiast , see https://www.linkedin.com/in/albasyir/ for more