Tax Engine Componentization
Componentizing Shopify’s Tax Engine - Shopify

Componentizing Shopify’s Tax Engine - Shopify

7/5/2019

What this post added

This post details the process of componentizing Shopify's tax engine. It describes the challenges of a complex, distributed tax logic, the strategy of creating a distinct component with defined interfaces (TaxesRequestSchema, TaxesResponseSchema), the methods used to understand and isolate existing tax logic (regex, scripts, bug fixing), the implementation of GitHub bot triggers for boundary enforcement, the update of testing suites (unit, integration, end-to-end), and a detailed release strategy involving an experimental code path for comparison and a phased rollout. The outcome is a more sustainable and extensible tax engine with reduced cognitive load for developers.

Read the original post ↗