Part 3: Polyglot Tech Stack & Golang + Kratos v2 Internals

Answer-first: Migrating away from Magento requires a Polyglot architecture: TypeScript for the Headless Frontend (Next.js/Nuxt) and BFF, Python for AI/Data pipelines, and Go (Golang) for the high-throughput core commerce backend. A production Go microservice uses Kratos v2 with a 5-layer layout, Wire compile-time DI, and dual HTTP+gRPC transport standardized across all services. [!NOTE] What You’ll Learn That AI Won’t Tell You Why replacing PHP with just one language (e.g., Node.js only) creates new bottlenecks at scale. How a shared common library at a fixed version (v1.9.5) eliminates boilerplate across 21 Go microservices. 1. The Polyglot Tech Stack: Beyond PHP For engineers coming from Magento, the shift to a modern microservices architecture isn’t just a language change — it’s a paradigm shift from a monolithic PHP application to a specialized, polyglot ecosystem. You don’t replace Magento with a single language; you replace it with domain-specific tools. ...

April 22, 2026 · 12 min · Lê Tuấn Anh

GraphHopper Distance Matrix: Self-Host, API & Alternatives

GraphHopper Distance Matrix: Production Self-Hosting & API Guide Answer-first: The GraphHopper Distance Matrix API computes all-to-all route distances and travel times for vehicle routing. Self-hosting via Docker on a single VPS replaces Google Maps and CARTO distance matrices, eliminating $500+/day in API fees while keeping batch calculations under 50ms. What You’ll Learn That AI Won’t Tell You Setting up GraphHopper self-hosting routing engine with custom profile caches. Configuring RAM allocations to hold entire continental OpenStreetMap networks. What Is the GraphHopper Distance Matrix? How to Call the GraphHopper Matrix API (/matrix Endpoint) This guide covers everything you need to run GraphHopper distance matrix in production: Docker setup, the /matrix API, Custom Models for truck/motorcycle routing, H3-based Redis caching, and an honest comparison with OSRM, Valhalla, and Google Maps (for a deeper dive into routing engine selection, see our OSRM vs GraphHopper Architecture Comparison). ...

June 11, 2026 · 13 min · Lê Tuấn Anh