Years ago, when I worked selling SIM cards, I regularly used a command to activate the starting balance:
*101*1111#
Back then, it was just another routine task. Now, as someone studying software development, I find myself looking at the same process from a completely different perspective.
What happens behind those few characters? Where does the request go? What happens if something breaks along the way?
To explore these questions, I built a simplified experimental model using Node.js, Express, and Termux on my Android smartphone.
1. What is USSD?
USSD stands for Unstructured Supplementary Service Data. It allows mobile devices to exchange messages with services provided through a mobile network.
Unlike an ordinary HTTP request, USSD relies on mobile network signalling mechanisms.
My experiment does not implement the actual telecommunications protocol. Instead, it uses HTTP to explore the more general principles of request routing, separation of responsibilities, and failure handling.
2.β¦