AWorld implements a fully serverless cloud-native architecture on Amazon Web Services (AWS), designed to guarantee unlimited scalability and high availability. The architecture is organized in functional layers that separate responsibilities and facilitate platform evolution:
Account & user layer: identity management, permissions, authentication (AWS Cognito), and server-to-server integration
Catalog layer: distribution and organized management of training content
The multi-tenant architecture guarantees rigorous data isolation between clients, with each workspace operating in complete logical independence while sharing the underlying physical infrastructure for operational efficiency.
Tenant-scoped keys: each record includes workspaceId as part of the primary key
Automatic query filtering: queries are automatically filtered by workspace
Row-level isolation: physical impossibility of accessing data from different workspaces in the same query
At API Gateway level:
AWS Lambda Authorizer validates every request
The JWT token contains the workspaceId claim critical for isolation
Cross-workspace access blocked before business logic execution
At Cognito level:
Shared user pool with workspace-isolated credentials
Dedicated Cognito app client per workspace
Workspace-scoped JWT tokens
⚠️ Critical security note: The workspaceId in the JWT token is the fundamental mechanism for multi-tenant isolation. Each API request validates that the workspaceId in the token matches the workspace of the requested resources, preventing cross-tenant access at the API Gateway level before the request reaches the backend.
To guarantee high availability and disaster recovery, the AWorld infrastructure is distributed across multiple AWS regions in active-active configuration.