{
  "id": 5867997,
  "title": "Architectural Breakdown: Generosity Is a Default Setting",
  "url": "https://urgent.news/2026/09/06/architectural-breakdown-generosity-is-a-default-setting",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-06T00:03:16.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/agenticstack/architectural-breakdown-generosity-is-a-default-setting-37o1"
  },
  "original_language": "en",
  "account": "Zero-Data USB Tether Diagnostics: Eleven phones hit 15 Mbps, while three others reached a whopping 106 Mbps. After two hours of frustration, the author decided to build a diagnostic engine from scratch without relying on npm, Node.js, or a 300MB of dependencies. The architecture involved Python, asyncio, collections, dataclasses, and raw subprocess calls.\n\nThe author's goal was to measure the throughput of USB tethered devices without wasting resources. Initially, they considered installing adb, spinning up a Node server, and piping throughput data through request with retry logic, aggregating the data into InfluxDB. However, this approach required 50 dependencies and 400MB of RAM, leaving little room for actual measurement.\n\nThe author's solution involved writing the diagnostic engine in Python, using only asyncio, collections, dataclasses, and subprocess calls. The key to their approach was minimizing memory usage and avoiding unnecessary allocations. They created a BoundedThroughputEngine class with a circular buffer and Welford's online statistics algorithm, eliminating the need for repeated list() conversions.\n\nTo run the tests on multiple devices, the author implemented a USBTetherOrchestrator class that handles USB enumeration, ADB bridge, and concurrency limiting. They used asyncio.Semaphore to limit the number of concurrent tests and asyncio.sleep(0) after each run to prevent event loop starvation. This approach allowed them to measure the performance of 14 devices without deadlocking or resource exhaustion.",
  "summary": "![ Architecture Diagram ]( https://image.pollinations.ai/prompt/high+performance+cloud+systems+Generosity+Is+a+Default+Settin+round+2?width=800&height=400&nologo=true ) # Zero-Data USB Tether Diagnostics: Why 11 Out of 14 Phones Hit 15 Mbps Until I Found One Setting Eleven phones. Fifteen megabits per second. Exactly fifteen. Not fourteen. Not sixteen. The other three hit 106 Mbps for reasons…",
  "key_points": [
    "Author built diagnostic engine without npm, Node.js, or 300MB dependencies.",
    "Python, asyncio, collections, dataclasses, and subprocess used for minimal memory usage.",
    "USBTetherOrchestrator class managed USB enumeration, ADB bridge, and concurrency limiting."
  ],
  "editors_take": "The author's lightweight diagnostic engine, built with minimal dependencies, successfully measured USB tethered device throughput, offering a more efficient approach than resource-heavy alternatives.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}