Deployment Architecture
TruePortAI is deployed as a set of independently scalable services across AWS (primary cloud) and On-Premise/VPC (for the ML analytics engine). All services are stateless; state is held in MongoDB Atlas and Redis.
Deployment Topology
Lambda Function Configuration
platform-backend Lambda
Setting |
Value |
|---|---|
Runtime |
|
Handler |
|
Memory |
512 MB |
Timeout |
30 seconds |
Concurrency |
100 (reserved) |
VPC |
No (public subnet — Atlas IP allowlist) |
Environment |
|
trueportai-services Lambda
Setting |
Value |
|---|---|
Runtime |
|
Handler |
|
Memory |
512 MB |
Timeout |
30 seconds |
Concurrency |
200 (reserved) |
VPC |
Yes (private subnet with ElastiCache access) |
Environment |
|
CloudFront Distribution
CloudFront Settings:
SSL/TLS: ACM certificate —
*.trueportai.comHTTP/2: Enabled
Compression: Gzip + Brotli
Cache Policy: TTL 0 for API paths; 86400s for static assets
Security Headers: HSTS, X-Frame-Options, CSP via Lambda@Edge
CI/CD Pipeline
Analytics Engine — On-Premise Deployment
Model Repository Layout (Triton)
/models/
├── pii-ner-roberta/
│ ├── config.pbtxt # Triton model config
│ └── 1/
│ └── model.pt # Serialized PyTorch model
├── bias-deberta-v3/
│ ├── config.pbtxt
│ └── 1/
│ └── model.pt
├── injection-distilbert/
│ ├── config.pbtxt
│ └── 1/
│ └── model.pt
└── exfil-regex-entropy/
├── config.pbtxt
└── 1/
└── model.py # Python script backend
MongoDB Atlas Configuration
Atlas Settings:
Tier: M10 (production), M2 (staging/dev)
Region:
us-east-1(primary),eu-west-1(replica for EU customers)Backup: Continuous cloud backup enabled
Encryption: Encryption-at-rest enabled
Network: IP Access List — only Lambda NAT gateway IPs and analytics engine IPs
Environment Configuration
Variable |
Service |
Description |
|---|---|---|
|
Both |
MongoDB Atlas connection string |
|
platform-backend |
|
|
trueportai-services |
|
|
Both |
HS256 JWT signing key (32+ bytes random) |
|
trueportai-services |
|
|
platform-backend |
SMTP server hostname |
|
platform-backend |
|
|
platform-backend |
SMTP username |
|
platform-backend |
SMTP password |
|
platform-backend |
Allowed origin pattern |
|
platform-backend |
|
|
platform-backend |
IAM key for S3 access |
|
platform-backend |
IAM secret for S3 access |
|
platform-backend |
Tenant log archive bucket |
|
platform-backend |
|
Scaling Strategy
Service |
Scale Trigger |
Mechanism |
|---|---|---|
platform-backend |
Request volume |
Lambda auto-concurrency |
trueportai-services |
Request volume |
Lambda auto-concurrency (max 1000) |
MongoDB |
Data volume / IOPS |
Atlas auto-scaling |
Redis (ElastiCache) |
Memory usage |
Manual tier upgrade |
Analytics Engine |
Processing queue depth |
Horizontal — add GPU nodes |
CloudFront |
Automatic |
AWS-managed globally |
Disaster Recovery
Component |
RPO |
RTO |
Strategy |
|---|---|---|---|
MongoDB Atlas |
0s |
< 5 min |
Replica set auto-failover |
Lambda |
0s |
< 1 min |
Multi-AZ by default |
S3 Logs |
0s |
N/A |
Multi-AZ durable storage |
Analytics Engine |
1h |
4h |
Manual failover to backup node |
Redis |
Minutes |
< 15 min |
ElastiCache Multi-AZ |