Highly Available (HA) Cloud Infrastructure For Spree Commerce

For Highly Available (HA) Cloud Infrastructure For Spree Commerce

image
logo

Ziggle Tech

Digital Services and eCommerce Development Agency

  • Industry
    E-commerce
  • icons dollarTime & Budget
    $25,000 to $50,000

About Highly Available (HA) Cloud Infrastructure For Spree Commerce

The Challenge

There were multiple issues with the eCommerce Platform when we came on board to redesign the infrastructure:

  1. The eCommerce site was crashing quite frequently.
  2. The AWS cloud infrastructure was not developed to handle the growing demand. It was designed with a single EC2 instance over 3 years ago when the traffic to the site was very low.
  3. There was no CDN enabled.
  4. The images and static content were being served from the same server.
  5. The admin interface for managing content, dashboard, EDI, batch uploads etc. is also being served from the same server.
  6. eCommerce landing pages and call center were using the APIs via the main site itself.
  7. EDI server would constantly crash.

The Solution

We created a highly available AWS infrastructure using Docker and Kubernetes. With Kubernetes, we created multiple worker nodes with optimized docker containers using the alpine version of docker images where possible to reduce deployment time and increase application performance. We also configured a CI/CD deployment pipeline.

We also divided spree into four separate containers

  • Main site and checkout
  • SPREE API
  • SPREE Admin
  • SPREE EDI

This allowed us to better maintain and monitor SPREE. Dividing the containers also gives us much-needed insight on how many resources were being used at each section of SPREE and allow the development team to optimize the code where needed.

The highest number of requests we received at the time was about 60000 with about 5000 users on the site. We had better monitoring and alert mechanism in place. The eCommerce site never went down in last 4 months. We are now able to manage the maintenance without bringing down the server. The client saw an increased conversion by over 40%. This conversion is very high because of the above infrastructure business is able to put more marketing efforts hence the increased conversion.

Other improvements
We optimized the N+1 queries that were being run by Spree Commerce and used Redis caching heavily for database queries.

Ziggle

Ziggle

  • E-commerce
Send enquiry to Ziggle

Benchmak helps you find vetted vendors faster - Register on Benchmak today!

Benchmak is a B2B marketplace that helps you find tech service providers. Share your experience and help make the process of engaging service providers more transparent for everyone.

Register your Agency

© 2026 Benchmak.com. All Rights Reserved