Kick off your book project in 3 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Saturday, June 6, 2026. Learn more…

Leanpub Header

Skip to main content

Shop Performance in 30 Days

Turn "our Shopware store feels slow" into a measurable 30-day plan: one fix a day, each with a before/after metric. Field-tested engineering on caching, Elasticsearch, Redis and CDN — not generic tips.

This book is a translation into English of Shop Performance in 30 Tagen which was originally written in German

Minimum price

$29.00

$49.00

You pay

Author earns

$
PDF
EPUB
About

About

About the Book

A slow shop is a silent revenue leak. This book turns "our store feels sluggish" into a concrete, measurable 30-day program — one focused improvement per day, each with a before/after number you can defend to a client or a CFO.

This isn't a list of generic tips. It's a field-tested path through the parts of Shopware that actually move Core Web Vitals and conversion: HTTP and object caching (Redis backend, invalidation, cache warming), Elasticsearch index and mapping strategy, Redis and phpredis pitfalls, CDN and cookie rules, database and PHP-FPM tuning, and frontend delivery. Every chapter explains what to change, why it works, and how to measure that it did.

Written for the people who own the result — Shopware developers, DevOps engineers, and agency teams who need a store to be fast next month, not "eventually."

By Mehmet Gökçe — IT engineering since 1998, Swiss-based. This is the English edition of the German original, revised, with the worked examples tested on Shopware 6.6.

This book is a translation into English of Shop Performance in 30 Tagen which was originally written in German

Author

About the Author

Mehmet Gökçe

Mehmet Gökçe is an e-commerce & performance specialist with over 27 years of experience. He has worked in IT since 1998; in 1999 he became one of the first developers of booxtra.de (today buecher.de) — a joint venture of T-Online, Weltbild, Holtzbrinck and Axel Springer. Roles at Deutsche Telekom (softwareload.de) and Klassik Radio (the streaming platform for Sony Music, Universal Music and Warner Music) followed, alongside dozens of SME projects on Shopware and Magento Enterprise.

Today he runs MEMOTECH in St. Gallen, Switzerland, advising companies across the DACH region. His focus: measurable performance optimization — without agency overhead and without vendor lock-in.

Website: memotech.ch | LinkedIn: linkedin.com/in/mehmetgoekce

Translations

Translations

Languages

Contents

Table of Contents

Foreword

  1. August 1999: When E-Commerce Was Uncharted Territory
  2. 2010: Back to Deutsche Telekom
  3. From Pioneers to Enterprise Standard
  4. Why This Book?
  5. Who Is This Book For?
  6. What to Expect
  7. After 30 Days

Chapter 1: The Performance Imperative

  1. Introduction
  2. The Business Case for Performance
  3. The Hidden Costs of Slow Stores
  4. Core Web Vitals: The New Rules of the Game
  5. The Performance Pyramid
  6. Case Study: Enterprise E-Commerce — Surviving Peak Traffic
  7. Checklist: Before You Start
  8. Summary
  9. References

Chapter 2: Performance Audit — Where Do You Stand?

  1. Introduction
  2. The 7 Performance Dimensions
  3. Tools for Your Audit
  4. Establishing a Baseline: The Audit Record
  5. Identifying Performance Killers
  6. Practice: Running an Audit
  7. Case Study: Auditing a Swiss Fashion Shop
  8. Summary
  9. References

Chapter 3: Measuring and Optimizing Core Web Vitals

  1. Introduction
  2. The Three Core Web Vitals
  3. Step 1: Collecting Field Data
  4. Step 2: Lab Data with Chrome DevTools
  5. Step 3: Implementing Quick Wins
  6. Step 4: Documenting Your Results
  7. Advanced: Automated Monitoring
  8. Checklist Days 1-2
  9. Summary
  10. References

Chapter 4: Image Optimization

  1. Introduction
  2. 4.1 The Shopware 6 Thumbnail System
  3. 4.2 The sw_thumbnails Function
  4. 4.3 Using Lazy Loading Correctly
  5. 4.4 Enabling WebP and AVIF
  6. 4.5 Optimizing Thumbnail Configuration
  7. 4.6 Optimizing Images Before Upload
  8. 4.7 Performance Measurement
  9. Checklist: Day 3-4
  10. Advanced Tips
  11. Summary

Chapter 5: Optimizing CSS and JavaScript

  1. Introduction
  2. 5.1 Understanding the Problem
  3. 5.2 CSS Optimization
  4. 5.3 JavaScript Optimization
  5. 5.4 Controlling Third-Party Scripts
  6. 5.5 Optimizing Shopware Theme Compilation
  7. 5.6 Performance Measurement
  8. Checklist: Days 5–7
  9. Summary
  10. Sources

Chapter 6: HTTP Caching — The Fastest Request Is the One That Never Happens

  1. Introduction
  2. 6.1 Understanding HTTP Caching
  3. 6.2 Activating Shopware’s HTTP Cache
  4. 6.3 Cache Strategies for Different Page Types
  5. 6.4 Stale-While-Revalidate: The Performance Booster
  6. 6.5 Varnish: The Turbo for High-Traffic Shops
  7. 6.6 Edge Side Includes (ESI)
  8. 6.7 Cache Invalidation
  9. 6.8 Cache Debugging
  10. 6.9 Performance Measurement
  11. Checklist: Days 8-10
  12. Summary
  13. References

Chapter 7: Mastering Shopware’s Application Cache

  1. Introduction
  2. 7.1 Understanding Cache Architecture
  3. 7.2 Understanding the Default Configuration
  4. 7.3 Redis as Cache Backend
  5. 7.4 Sessions in Redis
  6. 7.5 Cache Invalidation
  7. 7.6 Cache Warming
  8. 7.7 Troubleshooting
  9. 7.8 Performance Measurement
  10. Checklist: Days 11-12
  11. Summary
  12. References

Chapter 8: Database Optimization for Shopware

  1. Introduction
  2. 8.1 Shopware’s Database Architecture
  3. 8.2 MySQL/MariaDB Configuration
  4. 8.3 Slow Query Analysis
  5. 8.4 Index Optimization
  6. 8.5 Optimizing the Shopware DAL
  7. 8.6 Query Caching in the DAL
  8. 8.7 Shopware Storage Optimization
  9. 8.8 Database Maintenance
  10. 8.9 Replication and Read Replicas
  11. 8.10 Troubleshooting
  12. Checklist: Day 13-14
  13. Summary
  14. References

Chapter 9: Optimizing PHP Performance

  1. Introduction
  2. Goal of This Chapter
  3. Prerequisites
  4. Step 1: Check and Update PHP Version
  5. Step 2: Configure OPcache
  6. Step 2.5: Enable OPcache Preloading
  7. Step 3: Evaluate the JIT Compiler
  8. Step 4: Size PHP-FPM
  9. Step 5: Optimize php.ini for Shopware
  10. Step 6: Connect Nginx with PHP-FPM
  11. Step 7: FrankenPHP Outlook
  12. Troubleshooting
  13. Checklist: Day 15-16
  14. Summary
  15. More Complex Scenario?
  16. References

Chapter 10: Redis for High Availability

  1. Introduction
  2. Goals for This Chapter
  3. Prerequisites
  4. Step 1: Understanding the Problem — Single Point of Failure
  5. Step 2: Choosing the Right Solution — Sentinel vs. Cluster
  6. Step 3: Building the Redis Sentinel Architecture
  7. Step 4: Testing Failover
  8. Step 5: Configuring Shopware for Sentinel
  9. Step 6: Setting Up Monitoring and Alerting
  10. Troubleshooting
  11. Checklist: Day 17-18
  12. Summary
  13. More Complex Scenarios?
  14. References

Chapter 11: CDN Integration for Global Performance

  1. Introduction
  2. Prerequisites
  3. 11.1 How a CDN works
  4. 11.2 CDN Provider Comparison
  5. 11.3 Setting up Cloudflare (Recommended)
  6. 11.4 Configuring Shopware for CDN
  7. 11.5 Setting Cache Headers Correctly
  8. 11.6 Cache Invalidation
  9. 11.7 CDN for Dynamic Content
  10. 11.8 Image Optimization at the Edge
  11. 11.9 Security: DDoS and WAF
  12. 11.10 Measuring Performance
  13. 11.11 Optimizing Costs
  14. 11.12 Troubleshooting
  15. Checklist: Day 19-21
  16. Summary
  17. References

Chapter 12: Real User Monitoring (RUM)

  1. Introduction
  2. Prerequisites
  3. 12.1 RUM vs. Synthetic Monitoring
  4. 12.2 Core Web Vitals 2024
  5. 12.3 The web-vitals Library
  6. 12.4 Collecting RUM Data
  7. 12.5 Building a RUM Dashboard
  8. 12.6 Configuring Alerting
  9. 12.7 Interpreting RUM Data
  10. 12.8 Practical Checklist
  11. Summary
  12. References

Chapter 13: Continuous Performance Testing

  1. Introduction
  2. Prerequisites
  3. 13.1 Why Automated Performance Tests?
  4. 13.2 Lighthouse CI Setup
  5. 13.3 Defining Performance Budgets
  6. 13.4 GitHub Actions Integration
  7. 13.5 GitLab CI Integration
  8. 13.6 LHCI Server for Trend Analysis
  9. 13.7 Shopware-Specific Tests
  10. 13.8 Alerting on Regression
  11. 13.9 Practical Checklist
  12. 13.10 Load Testing: k6 and Locust
  13. Summary
  14. References

Chapter 14: Establishing a Performance Culture in Your Team

  1. Introduction
  2. Prerequisites
  3. 1. Performance as Shared Responsibility
  4. 2. Establishing Performance Champions
  5. 3. Code Reviews with a Performance Focus
  6. 4. Blameless Postmortems
  7. 5. Continuous Feedback Culture
  8. 6. Sharing Performance Knowledge
  9. 7. Organizational Anchoring
  10. 8. Common Culture Problems and Solutions
  11. Summary: Week 4, Day 26-27
  12. References

Chapter 15: The Long-Term Performance Plan

  1. Introduction
  2. Prerequisites
  3. 1. The 12-Month Roadmap
  4. 2. Quarterly OKRs for Performance
  5. 3. Managing Technical Debt
  6. 4. Performance Budgets Long-Term
  7. 5. Establishing a Maintenance Rhythm
  8. 6. Scaling Performance Work
  9. 7. Measuring Success: KPIs for the Full Year
  10. 8. Avoiding Common Long-Term Mistakes
  11. Checklist: Day 28-30
  12. Summary: Day 28-30
  13. References

Chapter 16: Shopware 6 Themes - Performance Optimization

  1. Introduction
  2. Prerequisites
  3. Companion Repository
  4. Understanding and Optimizing theme.json
  5. SCSS Variables and Bootstrap Overrides
  6. JavaScript Optimization
  7. Optimizing Twig Templates
  8. Implementing Critical CSS
  9. ESI Rendering for Header/Footer (Shopware 6.7)
  10. Migrating to Vite (Shopware 6.7)
  11. Measuring Theme Performance
  12. Checklist: Theme Performance
  13. Common Mistakes to Avoid
  14. Summary
  15. References

Chapter 17: Shopware 6 Plugins - Performance Optimization

  1. Introduction
  2. Prerequisites
  3. Companion Repository
  4. Using the DAL Efficiently
  5. Optimizing Event Subscribers
  6. Message Queue for Asynchronous Processing
  7. Controlling Cache Invalidation
  8. Optimizing Entity Indexers
  9. Analyzing Plugin Performance
  10. Checklist: Plugin Performance
  11. Summary
  12. References

Chapter 18: Shopware 6 Elasticsearch

  1. Introduction
  2. Companion Repository
  3. 18.1 Elasticsearch vs. MySQL: When Does the Switch Pay Off?
  4. 18.2 Elasticsearch vs. OpenSearch: Which One to Use?
  5. 18.3 Heap Configuration: The Most Important Setting
  6. 18.4 Shopware ES Configuration
  7. 18.5 Optimizing for the German Language
  8. 18.6 Customizing Index Mapping
  9. 18.7 Optimizing Indexing
  10. 18.8 Query Optimization
  11. 18.9 Monitoring and Troubleshooting
  12. 18.10 Migration: From MySQL to Elasticsearch
  13. 18.11 Advanced: Multi-Index Strategies
  14. 18.12 Vector & Hybrid Search (ES 8.x Forward)
  15. Summary
  16. References

Chapter 19: Mobile Performance

  1. Introduction
  2. Companion Repository
  3. 19.1 Understanding the Mobile Performance Gap
  4. 19.2 Google Mobile-First Indexing
  5. 19.3 Mobile Core Web Vitals
  6. 19.4 Touch Optimization
  7. 19.5 Responsive Images
  8. 19.6 Service Workers & Offline Performance
  9. 19.7 Mobile Checkout Optimization
  10. 19.8 PWA for Shopware
  11. 19.9 Network-Aware Loading
  12. 19.10 Mobile Performance Testing
  13. Summary
  14. References

Chapter 20: A/B Testing & Performance Experiments

  1. Goal of This Chapter
  2. Prerequisites
  3. Step 1: Understand Performance Experiment Types
  4. Step 2: Implement Statistical Foundations
  5. Step 3: Calculate Sample Size
  6. Step 4: Implement the Experiment Service
  7. Step 5: Implement Frontend Tracking
  8. Step 6: Template Integration
  9. Step 7: Define Performance Budgets
  10. Step 8: Run CLI Analysis
  11. Practical Example: Lazy Loading A/B Test in Shopware
  12. Troubleshooting
  13. Build vs. Buy: A/B Testing Platforms
  14. Summary
  15. References

Chapter 21: Third-Party Scripts & Tag Management

  1. Goal of This Chapter
  2. Prerequisites
  3. Step 1: Audit Third-Party Scripts
  4. Step 2: Lazy Load Google Tag Manager
  5. Step 3: Optimize the GTM Container
  6. Step 4: Consent-Based Script Loading
  7. Step 5: Use Partytown for Web Workers
  8. Step 6: Route-Specific Script Budgets
  9. Step 7: Set Up Performance Monitoring
  10. Step 8: Optimize Payment Provider Scripts
  11. Step 9: Server-Side Tagging with GTM
  12. Troubleshooting
  13. Checklist: Third-Party Audit
  14. Summary
  15. References

Chapter 22: The 20 Most Common Performance Problems

  1. Overview
  2. Problem 1: Slow Database Queries
  3. Problem 2: HTTP Cache Not Active
  4. Problem 3: Oversized JavaScript Bundles
  5. Problem 4: Unoptimized Images
  6. Problem 5: Missing Preconnects
  7. Problem 6: Render-Blocking CSS
  8. Problem 7: N+1 Query Problem
  9. Problem 8: Session Lock Blocking
  10. Problem 9: Heavy Cart Calculations
  11. Problem 10: Too Many Plugins
  12. Problem 11: Elasticsearch Not Configured
  13. Problem 12: OPcache Not Enabled
  14. Problem 13: Debug Mode in Production
  15. Problem 14: Missing Gzip Compression
  16. Problem 15: Slow Cronjobs Blocking the Server
  17. Problem 16: Too Many Active Themes
  18. Problem 17: Large Log Files
  19. Problem 18: CDN Not Configured
  20. Problem 19: Synchronous API Calls
  21. Problem 20: Missing Browser Cache Headers
  22. Quick Reference: Diagnostic Commands
  23. Checklist: Performance Troubleshooting
  24. Summary

Chapter 23: Five Performance Transformation Scenarios

  1. Introduction
  2. Case Study 1: Enterprise Telecommunications — Managing a Launch Meltdown
  3. Case Study 2: Swiss Fashion Shop — Mobile-First Optimization
  4. Case Study 3: B2B Industrial Supplies — Scaling Search
  5. Case Study 4: Black Friday Survival — The Night Everything Fell Apart
  6. Case Study 5: International Marketplace — Scaling Multi-Tenant
  7. Summary: Patterns Across All Case Studies
  8. References

Chapter 24: Outlook – New Technologies and Trends

  1. Introduction
  2. Core Web Vitals Evolution: INP Replaces FID
  3. HTTP/3 and QUIC: The New Transport Protocol
  4. Edge Computing: Running Code Closer to the User
  5. Shopware Roadmap: What Is Coming?
  6. AI-Assisted Performance Optimization
  7. Composable Commerce: The Future of Architecture
  8. Green IT: Performance as a Sustainability Factor
  9. Checklist: Future-Proofing
  10. Summary

Appendix A: Glossary

  1. A
  2. B
  3. C
  4. D
  5. E
  6. F
  7. G
  8. H
  9. I
  10. J
  11. K
  12. L
  13. M
  14. N
  15. O
  16. P
  17. Q
  18. R
  19. S
  20. T
  21. V
  22. W
  23. Z

Appendix B: Code Snippets Reference

  1. PHP / Shopware 6
  2. JavaScript / TypeScript
  3. Bash / Shell
  4. SQL
  5. Twig
  6. Additional Snippets

Appendix C: Configurations

  1. PHP
  2. Nginx
  3. Shopware
  4. MySQL / MariaDB
  5. Redis
  6. Supervisor
  7. Logrotate
  8. Environment (.env.local)

Appendix D: Resources & Links

  1. Official Documentation
  2. Tools
  3. Books & Articles
  4. Community & Support
  5. Services & Hosting
  6. Companion Repository
  7. Checklists

About the Author

  1. Mehmet Gökçe
  2. Book Feedback

Appendix E: Cheat Sheet — Shopware Performance at a Glance

  1. Core Web Vitals Target Values
  2. Infrastructure Target Values
  3. Shopware CLI Commands
  4. MySQL/MariaDB
  5. Redis
  6. PHP/OPcache
  7. Configuration Paths
  8. Quick Health Check
  9. The 20 Most Common Problems — Quick Reference

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub