How it helps your business
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.
How we deploy this for you
Security Hardened
Firewalls, SSL, and hardened kernels out of the box.
Performance Tuned
Optimized for speed with cache and DB fine-tuning.
Automated Backups
Daily off-site backups so you never lose your data.
Private Cloud
You own the server and the data. No middleman.
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.
Includes Security & performance standards
Best place to host Saleor Commerce
We recommend Hostinger for its reliability and low cost. It's the perfect home for your new apps, featuring easy setup and 24/7 support.
Get Started on HostingerCompare Similar Tools
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.