System Description
1. Overview
Clerk.io is a multi-tenant, cloud-native e-commerce personalisation platform that provides Search, Recommendations, Audience, Email and Chat services to merchants world-wide.
The System in scope for SOC 2 Type II covers all production services used to collect, process, store and transmit customer data, together with supporting infrastructure and personnel processes.
| Component | Technology | Location | Notes |
| Core application | Python on Amazon EC2 | AWS Frankfurt | Public API and background processing, deployed with AWS CodeDeploy |
| API v3 and Sales Assistant | Amazon ECS on AWS Fargate | AWS Frankfurt | API and processor services for the Go API and storefront Chat |
| Processing jobs | Amazon EKS | AWS Frankfurt | Includes the email sending pipeline |
| Databases | Self-managed MariaDB on Amazon EC2 | eu-central-1 | Customer catalogue & behavioural events |
| Supporting services | Amazon EC2 | AWS Frankfurt | Database proxy, cache, search and static web services |
| Object Storage | Amazon S3 | eu-central-1 (replica eu-west-1) | Media, backups, model artefacts |
| CI/CD | GitHub Actions and AWS CodeDeploy | EU/US | Build and deployment workflows |
| Monitoring | Datadog and Better Stack | Varies by service | Datadog collects metrics, logs and traces and generates alerts. Better Stack checks external availability and routes pages to the on-call team. See the Logging & Monitoring Policy. |
| Workforce authentication | Google Workspace sign-in where supported. Other systems use their own sign-in. | Varies by system | See the Access Control Policy. |
1.1 Production Workloads
graph TD
Platform["Clerk.io production platform"] --> EC2["EC2: core Python application, MariaDB, search and supporting services"]
Platform --> Fargate["ECS Fargate: API v3 and Sales Assistant"]
Platform --> EKS["EKS: processing jobs, including email sending"]
2. In-Scope Services
- Public APIs – REST endpoints consumed by merchant storefronts.
- Search & Recommendation Engine – Real-time ranking pipeline.
- Admin Dashboard – Merchant management UI.
- Data Processing Jobs – Batch ETL and ML model training.
Out-of-scope: Corporate marketing websites, staging environments, and internal dev tooling not connected to production.
Staging is for code testing only. When development work requires access to production data, that access is authorised and managed separately under our Access Control Policy.
3. Boundaries & Interfaces
All external traffic terminates at AWS Application Load Balancer (ALB) protected by AWS WAF and TLS 1.3. Internal service-to-service traffic is encrypted via mTLS (Istio).
Data ingress occurs via: * HTTPS API requests (port 443) * SFTP ingest for catalogue files
Data egress occurs via: * HTTPS responses & Webhooks * Managed exports to Amazon Redshift or S3 (opt-in)
4. Data Flow Summary
- Shopper triggers search on merchant site.
- Request hits AWS Application Load Balancer (ALB) ⇒ Search service.
- The service returns results. Click events associated with a visitor ID are sent to Kafka.
- Stream processor updates behavioural dataset in Amazon Redshift.
- Daily ML job retrains ranking model; artefacts stored in S3.
4.1 Sequence Diagram
sequenceDiagram
participant Shopper
participant ALB as AWS ALB
participant API as Public API
participant Search
participant DB as MariaDB on EC2
Shopper->>ALB: Search request
ALB->>API: Forward
API->>Search: Query
Search->>DB: SQL SELECT
DB-->>Search: Results
Search-->>API: JSON
API-->>ALB: Response
ALB-->>Shopper: Products
Note over Search,Kafka: Click event emitted
Search->>Kafka: Publish click
Kafka->>StreamProc: Stream processing
StreamProc->>Redshift: Store metrics
5. Supporting Processes
- Secure SDLC anchored in mandatory Pull Requests with automated CI gates (tests, SAST, SCA); peer review is optional and exercised by engineer judgment, with mandatory security review for changes touching authentication, cryptography, or PII flows.
- Continuous deployment with canary percentage rolls.
- 24×7 on-call rotation with Better Stack.
6. Deployment History and Recovery
- API v3 moved to ECS Fargate in February 2024. The Sales Assistant API followed in April 2024 and its processor followed in July 2024. The core Python application continues to run on EC2.
- Production runs in Frankfurt. We replicate backups to Ireland and can provision a recovery environment there on demand. See the Business Continuity & Disaster Recovery Plan.
Version 1.0