# On AWS

> How Sypnia Cloud runs Learn on AWS: the services, where each part runs, and how it scales.

Applies to: Sypnia Cloud (paid service).  
Source: https://learn.docs.sypnia.com/architecture/reference-implementation-aws/

For agents: Sypnia Cloud reference: CloudFront (learn.api.sypnia.com, mcp.learn.sypnia.com) → Lambda (Node 22: API, MCP, renderer, binder) in us-east-1; schema sypnia_learn on the shared RDS Postgres through RDS Proxy; SQS check queue + DLQ → check orchestrator Lambda → Sypnia Agent sandbox API (ECS Fargate tasks, no public IP); results callback signed; EventBridge bus receives product events for offers; course files and videos in a Sypnia Files bucket (learn-media) served through its CloudFront with signed URLs for org courses; Sypnia AI for explanations; account memory API for notes; spans to Telemetry; secrets in SSM/KMS. Deployed with Sypnia Run.

| Part                              | AWS service                                                                                                                                                         |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| API, MCP server, renderer, binder | Lambda (Node 22) behind CloudFront at `learn.api.sypnia.com` and `mcp.learn.sypnia.com`, in `us-east-1`                                                             |
| State                             | the schema `sypnia_learn` on Sypnia's shared Postgres (RDS), through RDS Proxy                                                                                      |
| Check jobs                        | an SQS queue with a dead-letter queue, read by the check orchestrator (Lambda)                                                                                      |
| Running checks                    | [Sypnia Agent](https://agent.docs.sypnia.com/)'s sandboxes: ECS Fargate tasks with no public address                                                                |
| Product events for offers         | an EventBridge bus that Cases, Agent, Run, Telemetry and Design publish to                                                                                          |
| Course files and videos           | a bucket `learn-media` in [Sypnia Files](https://files.docs.sypnia.com/), served through its CDN; videos of an organization's private courses with signed addresses |
| Explanations and hints            | [Sypnia AI](https://ai.docs.sypnia.com/)                                                                                                                            |
| Memory notes                      | the memory of the Sypnia account                                                                                                                                    |
| Secrets                           | SSM Parameter Store and KMS                                                                                                                                         |

Learn is deployed with [Sypnia Run](https://run.docs.sypnia.com/), like every Sypnia product, and watched with Telemetry.

## How it scales

Opening lessons is many small, cacheable reads: Lambda scales with them, and what the binder found is cached for 10 minutes. Checks are the heavy part; they go through the queue, so a burst (a class of thirty checking at once) waits its turn instead of failing, and each learner can have three checks running at a time.
