nayaread
HomeFavouritesTopicsSources
HomeFavouritesTopicsSources
NayaRead links to original engineering blogs. All copyright belongs to the respective authors.
Shopify Engineering·Feb 7, 2019·8 min read45

Engineering a Historic Moment: Shopify Gets Ready for Cannabis in Canada - Shopify

On October 17th, 2018, Canada ended a 95-year history of cannabis prohibition. For Shopify, the legalization of cannabis marked a new industry entering the Canadian retail market and we worked with governments and licensed sellers across the country to provide a safe, reliable and scalable platform for their business. For our engineering team, it meant significant changes to our platform to meet the strict requirements for this newly regulated industry. The biggest change for Shopify was the requirement to store personal information in Canada. This required Canadian-specific infrastructure that we were able to develop through our recent move to the Cloud and Google Cloud Platform’s new region in Montreal. Using this platform as our foundation, we created a new instance of Shopify, in an entirely new region, to meet the needs of this industry. In our migration, we built several new Google Cloud Platform projects (all based in the Montreal region) which included key projects housing Shopify’s core infrastructure such as PCI compliant payment processing infrastructure and a regional data warehouse. The core infrastructure, which runs on a mixture of Google Kubernetes Engine and Google Compute Engine, already existed in our other regions which meant adding another region was relatively straightforward. We used Terraform to declare and configure all parts of the underlying infrastructure, like networks and Kubernetes Engine clusters. We also took advantage of improved resiliency features in Google Cloud Platform, such as regional clusters. We structured our compute node clusters to segregate workloads, minimizing the noisy neighbour problem to ensure maximum stability and reliability. After a few months of building out this infrastructure, configuring and testing it, we had the first working version of this new regional infrastructure running test shops with a functional storefront and admin. That’s when we faced our next major challenge: scaling. A major factor in our scaling ability were social factors—particularly, determining the behavior of cannabis consumers, an area with little to no available research.

CloudData EngineeringGCPSystem Design
Read original on shopify.engineering

Score breakdown

  • Technical depth42
  • Practical value60
  • Originality85
  • Writing quality97
  • Source reputation0
  • Recency0
  • External engagement0
  • On-site engagement0

NayaRead shows a summary and links to the original article. The full article is hosted on shopify.engineering.

More like this

Etsy — Code as Craft

Enhancing Cloud Usage Forecasting, Monitoring & Optimizing

Anthony Tambasco·Jun 17, 2024·4 min read
PayPal Tech Blog

Leveraging Spark 3 and NVIDIA’s GPUs to Reduce Cloud Cost by up to 70% for Big Data Pipelines

Ilay Chen·Feb 21, 2024·12 min read
Shopify Engineering

Iterating Towards a More Scalable Ingress - Shopify

Aug 31, 2018·7 min read
Shopify Engineering

Running Apache Kafka on Kubernetes at Shopify - Shopify

Nov 7, 2018·7 min read