Nelson Frank (@nelsonfr_) header
Nelson Frank (@nelsonfr_) profile picture

Software Engineer, Christian ✝️

Dar es Salaam, Tanzania
Joined September 2018
Photo by Nelson Frank (@nelsonfr_)Photo by Nelson Frank (@nelsonfr_)Photo by Nelson Frank (@nelsonfr_)Photo by Nelson Frank (@nelsonfr_)Photo by Nelson Frank (@nelsonfr_)Photo by Nelson Frank (@nelsonfr_)Photo by Nelson Frank (@nelsonfr_)Photo by Nelson Frank (@nelsonfr_)Photo by Nelson Frank (@nelsonfr_)Photo by Nelson Frank (@nelsonfr_)
Ingestion Service, Part 5: Most transit apps fail before the first route is calculated. They fail at ingestion. Here’s how the ingestion service in City Connector, our multi-agency routing platform, keeps bad data away from the router. 🧵
5
25
The problem: every agency publishes its own GTFS feed, and IDs are only unique within that feed. Agency A’s stop “1001” and agency B’s stop “1001” can be different places. One collision and the router sends riders to the wrong stop.
17
Stop And Search Service, Part 4: Transit apps live or die on how fast the map shows nearby stops. Here’s how I designed the search service for City Connector 🧵
5
1
20
Why a separate service? Journey planning is CPU-bound (RAPTOR). Stop discovery is I/O-bound (spatial queries). Split them so a rush-hour routing spike can’t freeze the map.
12
How do you find the fastest route across a city when 5 agencies publish 5 different timetables? Here's how our transit routing service works 🧵
5
24
We skipped Dijkstra. Time-expanded graphs explode at city scale. We use RAPTOR instead: round k finds the earliest arrival at every stop using at most k trips. No priority queue, just linear scans over flat arrays.
10
City Connector Architecture: Two transit agencies. Both use stop ID “1”. Two different places. Our fix: namespace every ID (agency1:1, agency2:1), keep shared stops separate, and link them with a near-zero-cost transfer edge. Then route with RAPTOR. #SystemDesign #Golang
26
1/ I’m building a public transport backend in the open. Find every route between A and B, see live bus positions, get real arrival estimates. 🧵
3
24
2/ Stack: Go for routing, search and realtime. Python for GTFS ingestion. Kong gateway, Postgres, Redis, all on Kubernetes. 3/ Why polyglot? Go for latency-critical paths, Python for messy feed parsing. Use each where it’s strongest.
26
if they keep quiet, the stones will cry out. Luke 19:40
23
🔍 Ever wondered what HEAD means in Git? In Git, HEAD is your current position in the commit history A few quick tips: git pull origin <branch-name> ~~ git pull origin HEAD git push origin <branch-name> ~~ git push origin HEAD
1
68
You know you're in a wealthy country when your government openly shares its code on GitHub.
2
51
Here we go
Last week we made Zed for Linux available for download and download you did! More than 35k times in the first seven days! Special thanks for everyone who filed issues and an opened PRs. We're humbled by your excitement and support. zed.dev/linux
45
What's your recent project that you are working on?! #buildinginpublic
51
No way
dude invented true or false and named it after himself
49
🚀 Mastering Go Programming! 💻✨ **01. Learn Basics** 🎥 Just spent 3 hours on this insightful YouTube video to understand Go basics: [Link](buff.ly/3GEKWTe ) 📚 Exploring "An Introduction to Programming in Go": [Link](buff.ly/3TnhKaM )
1
107
**02. Build projects using Go** 🛠️ Started with a cool freeCodeCamp tutorial - "Learn Go Programming by Building 11 Projects": [Link](buff.ly/3ToL8xx )
1
5
This is nice, and if you wonder how to do the same thing using favorite library Axios. Here we go: (Fetch API looks great btw)
Handy! Use fetch() to check if a file exists without downloading the entire thing.
1
5
360
It's time to be great again, Let go🚀
49
"Try to be DRY, but not on the expense of readability" by Mathis Garberg #freeCodeCamp #100DaysOfCode .
59
What will you do in this scenario 😄
1
Modern and quickest way to start simple react app(spa) with less config files use the following approach - vite @vite_js - microfrontend cli by @jherr