Clerk.io

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

  1. Public APIs – REST endpoints consumed by merchant storefronts.
  2. Search & Recommendation Engine – Real-time ranking pipeline.
  3. Admin Dashboard – Merchant management UI.
  4. 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

  1. Shopper triggers search on merchant site.
  2. Request hits AWS Application Load Balancer (ALB) ⇒ Search service.
  3. The service returns results. Click events associated with a visitor ID are sent to Kafka.
  4. Stream processor updates behavioural dataset in Amazon Redshift.
  5. 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

6. Deployment History and Recovery


Version 1.0