Laravel vs Golang: When to Add Features in Each?

Laravel vs Golang: When to Add Features in Each? This post is part of the Magento to Go Migration series — a CTO playbook for migrating with a Vietnam engineering team. The Real Question Every Tech Lead eventually faces a pivotal architectural dilemma: “Do we add this new feature directly to Laravel, or is this the right moment to introduce a dedicated Golang microservice?” The answer is rarely a simple choice between “Laravel is better” or “Go is better.” Instead, making the right engineering decision requires evaluating the specific operational profile of the feature you are building. High-velocity CRUD features, admin tools, and complex business workflows belong in Laravel. Conversely, real-time WebSocket feeds, high-throughput auth validation, and compute-heavy pipelines belong in Go. ...

July 19, 2026 · 10 min · Lê Tuấn Anh

Part 7: Load Testing and Performance Tuning for Production

Answer-first: Production load testing for geospatial microservices requires realistic traffic simulation with k6/Vegeta to identify latency spikes and connection pool bottlenecks. Prerequisite: Before starting load testing, review Part 6: Location Clustering & Semantic Caching. Part 7: Load Testing and Performance Tuning for Production Answer-first: Load testing a high-scale routing architecture requires avoiding Coordinated Omission by using K6 open-arrival-rate models (executor: 'constant-arrival-rate'), tuning the Linux kernel TCP stack (sysctl net.core.somaxconn=65535), and profiling Go GC garbage collections using pprof. ...

June 15, 2026 · 9 min · Lê Tuấn Anh

Go 1.26: Green Tea GC, Faster CGO & Goroutine Leak Detection

Go 1.26: Green Tea GC, Faster CGO & Goroutine Leak Detection Released in February 2026, Go 1.26 is not a routine patch release. It fundamentally changes how the Go runtime manages memory, interacts with C code, and surfaces concurrency bugs. For teams running Golang microservices at scale, these improvements compound across a fleet — zero code changes required. This post covers what changed, why it matters for production systems, how to adopt it, and what to watch out for during migration. ...

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

Chapter 5: Optimizing Golang Database Connection Pools

Prerequisite: Read the previous article: Chapter 4: Solving the Dual-Write Problem with Transactional Outbox Pattern. If your Golang system processes business logic blazingly fast but chokes at the Database layer, 90% of the time, it is due to an incorrectly configured *sql.DB. 1. Understanding *sql.DB In Golang, sql.Open() does NOT create a direct database connection. It instantiates a thread-safe Connection Pool manager. You must initialize the db variable only once during app startup. ...

June 9, 2026 · 7 min · Lê Tuấn Anh

Go pprof CPU & Memory Profiling: Production Tutorial

Go pprof CPU & Memory Profiling: Production Tutorial Prerequisite: This guide covers how to profile and diagnose complex performance issues in production. If you are specifically dealing with unbounded goroutine growth, ensure you first understand the foundational concepts in Goroutine Leak Detection and Fix in Production Go Services. Performance degradation in production is inevitable. When a Go microservice suddenly spikes to 90% CPU utilization or triggers an Out-Of-Memory (OOM) kill in Kubernetes, guessing the root cause by staring at the code is rarely effective. You need data. ...

June 2, 2026 · 10 min · Lê Tuấn Anh

Go pprof in Kubernetes: Remote Profiling & Flame Graphs

Go pprof in Kubernetes: Remote Profiling & Flame Graphs You’ve instrumented your Go service with net/http/pprof, run go tool pprof locally against the development binary, and spotted the hot path in your flame graph. Then you deploy to Kubernetes and the bottleneck disappears — because the workload profile in Kubernetes differs from local testing (different request mix, connection pool pressure, GC behavior under actual memory pressure, scheduler interference from co-located pods). ...

June 1, 2026 · 15 min · Lê Tuấn Anh

Inference Optimization: vLLM & PagedAttention Guide

Prerequisite: Familiarity with the concepts introduced in Part 7 — Agentic Memory Long Term. Review it first if the terminology in this part is unfamiliar. Part 8 — Inference Optimization: vLLM, PagedAttention & Speculative Decoding In enterprise AI infrastructure, model serving cost is dictated by GPU VRAM utilization and generation throughput (tokens per second per GPU). Running large language models (LLMs) under high concurrency presents a severe memory management challenge: Managing the KV Cache. ...

May 21, 2026 · 6 min · Lê Tuấn Anh

Deploy Astro on Cloudflare Pages: Full-Stack Edge Guide

Deploy Astro on Cloudflare Pages: Full-Stack Edge Architecture Running a content site on a traditional VPS or a managed Node.js host is fine until it isn’t. You pay for compute that sits idle 95% of the time, you manage SSL renewals, you worry about cold starts, and you watch your Lighthouse score suffer because your origin is in Singapore while your readers are in Frankfurt. Cloudflare’s edge stack solves all of this. This post covers two paths: building a greenfield site with Astro on Cloudflare’s full edge stack — Workers, R2, D1, Pagefind — and putting an existing WordPress site behind Cloudflare’s CDN without migrating anything. Both approaches, real config, and the tradeoffs that matter. ...

April 24, 2026 · 16 min · Lê Tuấn Anh