Architectural Specification Registry
Lingrada utilizes an Enterprise WebRTC Hybrid pipeline. Highly optimized for Next.js 16 and Vercel! To minimize cold-starts and client complexity, browser signals are routed straight to automated private AWS ECS Fargate tasks running our Puppeteer translation transcoder.
AWS CDK v2Path: infra/cdk/lib/worker-stack.ts
Der kostenoptimierte AWS-CDK-Stack (TypeScript) für den Fargate-Worker — pro Stage (dev/staging/prod) instanziiert. 0,00 USD Leerlauf-NAT-Kosten durch Public-Subnet-Platzierung in der Default VPC, 1 vCPU / 2 GB RAM auf ARM64/Graviton, desiredCount 0 (per Next.js-API ad-hoc auf 1 skaliert) und sichere, stage-spezifische SSM-Secret-Bindung für den GEMINI_API_KEY.
// infra/cdk/lib/worker-stack.ts — pro Stage instanziiert (dev | staging | prod).
// Fargate Backend Service: idelt bei 0, die Next.js-Route skaliert ad-hoc auf 1.
const vpc = ec2.Vpc.fromLookup(this, 'DefaultVpc', { isDefault: true });
const cluster = new ecs.Cluster(this, 'Cluster', {
clusterName: `translator-${stage}`, vpc,
});
const taskDef = new ecs.FargateTaskDefinition(this, 'TaskDef', {
cpu: 1024, memoryLimitMiB: 2048,
// Graviton: nativer Build auf Apple Silicon, günstigere Runtime
runtimePlatform: {
cpuArchitecture: ecs.CpuArchitecture.ARM64,
operatingSystemFamily: ecs.OperatingSystemFamily.LINUX,
},
});
taskDef.addContainer('worker', {
image: ecs.ContainerImage.fromAsset(repoRoot, {
file: 'infra/Dockerfile', platform: Platform.LINUX_ARM64,
}),
environment: { NODE_ENV: 'production', AWS_REGION: 'eu-central-1', STAGE: stage },
// GEMINI_API_KEY als SecureString aus SSM (nur per ARN referenziert)
secrets: { GEMINI_API_KEY: ecs.Secret.fromSsmParameter(geminiParam) },
logging: ecs.LogDriver.awsLogs({ streamPrefix: 'worker', logGroup }),
});
// NAT-frei: Public Subnet + Internet Gateway -> 0,00 USD Leerlaufkosten
new ecs.FargateService(this, 'Service', {
cluster, taskDefinition: taskDef,
serviceName: `translator-${stage}-worker`,
desiredCount: 0, assignPublicIp: true,
vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC },
});Translation Cluster Live Sandbox
AWS Status
OFFLINE
Fargate Nodes
0 Instances
Model Latency
---
Transcoder CPU
0.0%