Usage & Enterprise Capabilities
Key Benefits
- Ultimate Developer Freedom: Use any frontend technology (Next.js, Vue, mobile) to build your storefront.
- Lightning Fast Performance: GraphQL and a optimized Python core ensure rapid response times even under heavy load.
- Global Ready: Native support for multiple regions, currencies, and languages out of the box.
- Elastic Extensibility: Extend Saleor with your own microservices or third-party apps via webhooks.
- Future-Proof Stack: Built on modern technologies like Django, Graphene, and React.
Production Architecture Overview
- PostgreSQL: The primary database for all commerce data.
- Redis: Used for caching and as a task broker for Celery.
- Celery Workers: Handle asynchronous tasks like sending emails or processing uploads.
- Dashboard: A static React application for management.
- Storefront: A decoupled frontend (e.g., Next.js or Saleor's starter storefront).
- Persistent Storage: For media uploads and logs.
Implementation Blueprint
Implementation Blueprint
Prerequisites
sudo apt update && sudo apt upgrade -y
sudo apt install docker.io docker-compose -y
sudo systemctl enable docker
sudo systemctl start dockerDocker Compose Production Setup
saleor-platform repository for easier orchestration.version: '3'
services:
api:
image: ghcr.io/saleor/saleor:latest
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgres://saleor:saleor@db:5434/saleor
- REDIS_URL=redis://redis:6379/1
depends_on:
- db
- redis
db:
image: library/postgres:15-alphine
ports:
- "5434:5432"
environment:
- POSTGRES_USER=saleor
- POSTGRES_PASSWORD=saleor
volumes:
- saleor-db:/var/lib/postgresql/data
redis:
image: library/redis:7-alpine
volumes:
- saleor-redis:/data
volumes:
saleor-db:
saleor-redis:docker-compose up -dKubernetes Production Deployment (Recommended)
helm repo add saleor https://saleor.github.io/saleor-helm/
helm install saleor saleor/saleor --namespace e-commerce --create-namespace- Stateless Scaling: Scale core API pods horizontally to handle traffic.
- High Availability: Built-in redundancy for services and workers.
- Resource Management: Precise control over CPU and memory for different components.
Scaling Strategy
- Separate Core and Workers: Scale Celery workers independently of the GraphQL API.
- Database Optimization: Use managed PostgreSQL services with read replicas for catalog browsing.
- Cached GraphQL: Implement persistent query caching or use an API gateway like Apollo Router.
- Asset Offloading: Use S3 or GCS for all product images and media.
Security & Maintenance
- GraphQL Security: Enable query complexity limits and depth limiting to prevent DOS.
- Regular Updates: Saleor iterates quickly; keep your Core and Dashboard versions in sync.
- Backup: Perform regular PostgreSQL dumps and state backups.
- Audit Logs: Monitor dashboard activity for sensitive configuration changes.
Recommended Hosting for Saleor Commerce
For systems like Saleor Commerce, we recommend high-performance VPS hosting. Hostinger offers dedicated setups for open-source tools with one-click installer scripts and 24/7 priority support.
Get Started on HostingerExplore Alternative Tools Infrastructure
Kubernetes
Kubernetes is a production-grade, open-source platform for automating deployment, scaling, and operations of application containers.
Supabase
Supabase is the leading open-source alternative to Firebase. It provides a full backend-as-a-service (BaaS) powered by PostgreSQL, including authentication, real-time subscriptions, and storage.