Skip to content
CloudDIFFICULTY: AdvancedSTATUS: Prototype

Cloud-Native Serverless Architectures

Multi-Cloud Auto-Scaling Compute & Data Layers

GitHub Repository
Client / ScopeR&D Lab Initiative
My RoleCloud Architect
Duration3 Months
Completion Date2025-09-10

1. SYSTEM OVERVIEW

Executive Summary

A multi-cloud serverless deployment leveraging AWS Lambda, DynamoDB, and Azure Functions to build scalable pipelines that minimize operational overhead.

Business Problem

Traditional server hosting requires heavy maintenance and creates high fixed costs, particularly for services with erratic, seasonal workloads.

Business Impact Value

Drastically reduced infrastructure overhead, aligning costs directly with actual system usage and scaling to zero when inactive.

Key Engineering Goals
  • Establish consistent serverless API structures across multiple clouds
  • Model compute scaling behavior under burst request workloads
  • Deliver interactive dashboards to preview serverless auto-scaling events
My System Responsibilities
  • Designed Infrastructure-as-Code setups to provision AWS and Azure serverless stacks
  • Developed simulation tools visualizing instance scaling rates
  • Configured NoSQL table schemas optimized for high concurrency

2. SYSTEM FEATURES

Auto-Scaling SimulatorComplexity: Low

Interactive widget illustrating how serverless functions scale up to meet request workloads.

Impl:React calculations mapping input parameters to concurrent instance rates.
Multi-Cloud API routingComplexity: Medium

Consistent API endpoints deployed across both AWS and Azure using unified handlers.

Impl:Decoupled routing templates in Node.js.
DynamoDB Scaling ConfigurationComplexity: Medium

Optimized database parameters utilizing on-demand capacity to match compute loads.

Impl:Terraform configurations mapping table partition keys.

3. SYSTEM ARCHITECTURE

Parallel serverless deployments. Inbound HTTP routes map to cloud-native gateways, triggering serverless handlers that access scalable NoSQL backends.

Topology Vector Diagram
Request Workload ──> AWS API Gateway ──> Lambda (Auto-Scale) ──> DynamoDB
                 ──> Azure API Gateway ──> Functions (Auto-Scale) ──> CosmosDB
Pipeline flow sequences
Client requests scale (simulated via concurrent slider)
Gateway receives requests and handles authentication checks
Serverless platform spins up concurrent compute instances
Compute instances access database partition keys concurrently
API responds, scaling down automatically as workloads decrease
Repo directory structure
serverless-architecture/
├── serverless.yml             # Framework config
├── handler-aws.js             # AWS handler
├── handler-azure.js           # Azure handler
└── package.json

4. INTERACTIVE SIMULATOR WIDGET

Run active operations audits utilizing the custom sandbox telemetry receiver widget below.

Adjust concurrent HTTP request volumes below to monitor serverless scale behaviors.

Concurrent HTTP Inbound120 Requests/sec
Compute instances
2 Functions
Capacity Load
6%

5. ENGINEERING ARCHITECTURE DECISIONS (ADRs)

Decision ProfileSelect data provisioning capacity (On-Demand vs Provisioned Capacity)
Context

We need to support high burst workloads without paying for idle server power.

Alternatives Checked
  • Provisioned IOPS tables
  • On-Demand DynamoDB billing
  • Managed SQL clusters
Selected Decision

On-Demand DynamoDB billing

Advantages
  • Zero database costs when there are no active requests
  • Accommodates high request spikes without throttling configurations
  • Eliminates maintenance overhead for scaling configurations
Disadvantages
  • Slightly higher cost per million reads compared to flat provisioned capacity
Trade-off details

Accepted slightly higher unit request costs in return for complete scaling capability and zero base running costs.

Future Scaling direction

Implement Redis caching layers to reduce database queries and control costs under consistent heavy workloads.

6. DETAILED TECHNOLOGY STACK

cloud
• AWS Lambda• Azure Functions• AWS Gateway
database
• DynamoDB• CosmosDB
infrastructure
• Serverless Framework• Terraform
monitoring
• AWS CloudWatch• Azure Monitor

7. SECURITY REVIEW & POSTURE

Scoped Function Permissions

Compromised function handlers could lead to full database access.

Mitigation StrategyApplies granular IAM execution roles granting access only to specific tables and keys.

8. PERFORMANCE METRICS TELEMETRY

Average Warm Latency18ms

Optim:Lightweight JS bundle structures and memory optimizations.

Scaling Response Time<1s

Optim:Cold start optimization, using runtime bundling and minimal packages.

9. ENGINEERING CHALLENGES & RESOLUTIONS

Vulnerability Bottleneck

AWS Lambda cold starts caused high latency spikes on initial executions, degrading API performance.

Root Cause:Bulky npm package structures required long import times during container initialization.

System Investigation

Traced execution times using AWS X-Ray, noting that loading heavy AWS SDK modules consumed 80% of startup time.

Engineering Solution

Configured bundle packaging with ESBuild to exclude default SDK modules and bundle only local files.

Trade-offs accepted

Increased code compilation times during deployment pipelines.

Lessons Derived

Serverless code must remain minimal; keep dependencies slim to optimize cold start latencies.

10. SYSTEM LESSONS LEARNED

Engineering Lessons

Always run build packaging checks to verify that output files remain compact and efficient.

Architecture Lessons

Decoupling core business logic from handler wrappers simplifies deploying to multiple clouds.

Business Lessons

Pay-per-use architectures are highly valuable for teams seeking clear infrastructure budget structures.

System Redesign Plans

I would configure edge functions to process requests closer to users and lower latency.

11. ROADMAP & TECHNICAL DEBT

  • Implement Edge-based functions to reduce latency
  • Integrate Serverless Event queues for queue backup management
  • Configure infrastructure deployment pipelines

12. GITHUB SOURCE EXPLORER

Audit raw repository script configurations directly inside the active terminal workspace.

HarizuAru/Portfoliomain
Open on GitHub
Workspace Files
1
Encoding: UTF-8Lines: 1
Let's discuss your project

Interested in building a secure auto-scaling platform similar to this?

Keep exploring

Related Projects

All projects →
Security · Cloud · DevOpsProduction

CloudTrail Threat Detection Platform

An event-driven cloud security analytics pipeline that ingests AWS CloudTrail records, applies normalization and risk scoring heuristics, and fires alert integrations under 45 seconds to secure distributed multi-tenant AWS accounts.

ArchitectureCloudTrail → S3 → Lambda → EventBridge → SNS

  • aws
  • security
  • lambda
  • eventbridge
  • siem
Cloud · IoTProduction

Cold-Chain Thermal Management Platform

A thermal tracking platform deployed on harizeon.com that captures IoT sensor streams, plots container temperature metrics, and triggers instant alerts for cold-chain compliance.

ArchitectureIoT Sensors → AWS IoT Core → Express → DynamoDB → WebSockets → SNS

  • aws
  • iot
  • react
  • nodejs
  • websockets
Security · DevOpsPrototype

Offensive Security Tooling

A collection of security assessment tools simulating attacks and identifying over-privileged credentials to verify enterprise infrastructure security.

ArchitectureIAM Config → Privilege Analyzer → Severity Dashboard

  • security
  • kali
  • iam
  • audit
  • react