Part 2: Environment Setup with Docker, OSM & Golang

Prerequisite: Before starting this part, review Part 1: Core Routing Algorithms Visualized. Part 2: Zero to Hero Environment Setup (Docker, OSM, Golang) Answer-first: Setting up a production-grade routing environment requires extracting OpenStreetMap .osm.pbf map data via Osmium tools, provisioning GraphHopper Java containers with explicit JVM heap allocations (-Xmx6g), and connecting a Golang API client with exponential backoff health checks. Key Takeaways: Map Extraction: Bounding-box cropping with osmium extract reduces raw .osm.pbf file size by 90%, speeding up graph compilation. Container Tuning: Allocate sufficient JVM heap (JAVA_OPTS=-Xmx6g) to prevent Out-Of-Memory (OOM) failures during Contraction Hierarchies shortcut generation. Client Resiliency: Golang HTTP clients must use connection pooling (MaxIdleConnsPerHost: 100) to sustain high matrix throughput. What You’ll Learn: ...

June 14, 2026 · 8 min · Lê Tuấn Anh

Production Agentic AI Swarm: OpenClaw & LiteLLM

Production Agentic AI Swarm: OpenClaw & LiteLLM Docker cap-drop security patterns that protect local credentials from AI agents. Setting up model fallbacks and pool-key routing in LiteLLM to bypass API rate limits. Conversational AI chatbots that just answer questions are no longer the interesting part of the stack. What’s driving most of the recent engineering work is Agentic AI: autonomous systems capable of planning, executing, and iterating on multi-step workflows without constant human supervision. (For a deeper analysis of these Agentic System Architecture principles, see our Agentic System Architecture masterclass). ...

May 30, 2026 · 8 min · Lê Tuấn Anh