Account Broker
/
Micro service architecture
Glossary
Sequence Diagram
Decision Tree
Micro service architecture
1

Architecture

1.1

Account Broker Service Resilience

Application Load Balancer

plus

Routes incoming traffic to the Account Broker Service Microservices

plus

Ensures high availability and failover support

1.2

Account Broker Service Microservices

Registration Server

plus

A&A Service (OAuth2.0)

plus

Account Broker Endpoint

1.3

Platform Resilience Layer

Application Load Balancer

1.4

Core Platform Microservices

A&A Service (OAuth2.0)

plus

Account Consent Service

plus

Account Redirect URI Service

plus

Account Separated Services

1.5

Analytics Layer

Log Data Lake

plus

Reporting

plus

Alarms

2

AWS environment

2.1

Accounting Broker VPC

Account Broker Services

TPP onboarding

plus

TPP authentication and authorization

plus

Routing requests to downstream consent and data services

Key Components

Public Subnets

plus

NAT Gateway

plus

Bastion Host

Private Subnets

Load Balancer

plus

ECS Fargate Services

plus

Aurora DB Cluster

2.2

Accounting Platform VPC

Account Aggregation Services

Consent handling

plus

Token validation

plus

Data access to account/balance/transaction services

Key Components

Public Subnets

plus

NAT Gateway

plus

Bastion Host

Private Subnets

App Load Balancer

plus

ECS Fargate Services

plus

Amazon Aurora

2.3

Security & Secrets Management

AWS Secrets Manager

Stores sensitive configuration like DB passwords, tokens, API keys

AWS IAM (Identity and Access Management)

Role-based access control across services

AWS Shield / WAF (implied)

Protects from DDoS (likely integrated with API Gateway)

2.4

Monitoring & Notification

Amazon CloudWatch

Monitors ECS health, API latency, error rates

plus

Collects logs and custom metrics

Amazon SNS

Triggers alerts for failures (e.g., service down, consent failures)

2.5

Key Services by Functional Domain

Broker Services

plus

Consent Handling

plus

Data Services

plus

Infra & Support

3

List of Services

Registration

Onboards Third Party Providers (TPPs) into the system

Authentication and authorisation

Issues and validates OAuth2.0 tokens for all TPP interactions

Account Broker Service

Acts as an intermediary API layer between external clients (TPPs) and backend microservices

4

Security

4.1

Protocol & Standards

OAuth2.0

Used for secure token-based authentication between services, TPPs, and the platform

plus

TLS 1.2 and above

All service communications are encrypted using TLS (Transport Layer Security)

4.2

Access Control

RBAC (Role-Based Access Control)

Access to services and data is permissioned based on user or system roles

plus

Limits exposure and adheres to the principle of least privilege

4.3

Infrastructure-Level Security

Private Subnet Deployment

Microservices are deployed inside private subnets of the Virtual Private Cloud (VPC)

4.4

Secrets and Certificate Management

AWS KMS (Key Management Service)

Manages encryption keys for secure data handling and token signing

plus

Enables centralized control over key access and rotation policies

AWS Secrets Manager

DB passwords

plus

OAuth2.0 client secrets

plus

TLS certificates

5

API Gateway

5.1

Gateway Role in Architecture

API Gateway

Traffic routing

plus

Request transformation

plus

Security enforcement

5.2

Platform Used

You can use either

AWS API Gateway

plus

Or another cloud-native API gateway (e.g., Azure API Management, Kong, Apigee)

5.3

Security Features

Built-in Security (AWS API Gateway)

OAuth2.0 & JWT validation

plus

HTTPS TLS 1.2 encryption

plus

Resource-level IAM policies

Access Control

API Key + Password for premium user access

plus

Custom authorizers can be used for fine-grained access control using Lambda or Cognito

5.4

Monitoring & Logging

Integrated with AWS CloudWatch

Logs requests and responses

plus

Tracks usage per TPP or endpoint

plus

Enables alerting on anomalies or failure patterns

Optionally connect to

X-Ray for end-to-end request tracing

plus

SNS/Email for notification-based alerts

5.5

Integration with Backend

The API Gateway routes traffic to

Application Load Balancers for microservices

plus

Lambda functions for lightweight workflows

plus

VPC private integrations for secure, isolated services