Weekend Reading #106

This week: bool.dev explains how to make HTTP API contracts predictable. Uber evaluates faster Spark execution beyond isolated query benchmarks. LinkedIn builds an agent that works across existing browser tabs, while Meta brings the same Android virtual devices to developers’ Macs and CI.

Weekend Reading: A weekly roundup of interesting Software Architecture and Programming articles from tech companies. Find fresh ideas and insights every weekend. 

REST API Best Practices: A Cheat Sheet for Designing HTTP APIs

👉 For backend engineers and software architects designing APIs that clients can safely depend on

REST API Best Practices: A Cheat Sheet for Designing HTTP APIs

API conventions become operational problems when clients cannot distinguish a failed request from a successful one, retry a payment safely, or update a resource without overwriting someone else’s changes. This guide connects everyday design decisions—URLs, methods, errors, pagination, and versioning—with those consequences. It starts with an OpenAPI contract and uses concrete requests to explain how implementations and consumers should behave.

The concurrency and retry sections are especially useful together. If-Match rejects a write based on an outdated representation; an idempotency key prevents a repeated operation from creating another result. They address different failures, and an API may need both.

Use the checklist to review one complete client workflow, including timeouts and conflicting edits. Naming conventions help consistency, but the more consequential contract is what clients can safely do after something goes wrong.

Making Every Core Count: In Pursuit Of Faster Apache Spark Jobs at Uber

👉 For data platform engineers evaluating execution engines and ingestion costs

Making Every Core Count: In Pursuit Of Faster Apache Spark Jobs at Uber

Uber separates two optimization efforts: production adoption of Gluten/Velox for Spark SQL and a controlled evaluation of Quanton for Hudi ingestion. The latter measured median write-round speedups of 5.5× for an insert-heavy table and 4.7× for an update-heavy table, using synthetic workloads and matching executor allocations.

The measurement boundary matters: those figures exclude metadata-compaction rounds. Some maintenance phases barely improved, and deduplication and indexing slowed slightly.

This makes the article useful as a benchmark review exercise. Before projecting savings, separate faster execution from unchanged maintenance and test representative workload mixes. A production decision also needs evidence of correctness, recovery, and sustained utilization. Uber explicitly identifies those as further work for Quanton.

Where Agents Meet the Browser: Building a Browser-Native Agent

👉 For engineers building agents that operate across internal tools

Where Agents Meet the Browser: Building a Browser-Native Agent

LinkedIn pairs a Chrome extension with a local reasoning backend. The extension observes pages through structured snapshots and executes browser actions; the backend manages the agent loop. Incremental page updates reduce repeated context, while application-specific playbooks handle workflows that generic browser interaction struggles with.

The useful boundary separates browser execution from model choice. Changing the reasoning backend doesn't require rebuilding how the agent reads and uses tools. Existing authenticated sessions also reduce setup friction, but make mistakes meaningful.

For similar systems, make navigation scope, sensitive-field redaction, and review points explicit. LinkedIn describes prompt-injection mitigations without claiming elimination. Prefer direct APIs where available, and test whether the agent gathers complete evidence from virtualized lists and hidden replies before trusting its summaries.

Cuttlefish on Mac: Running Android’s Virtual Device Framework Natively on Apple Silicon

👉 For mobile platform engineers improving development and test environments

Cuttlefish on Mac: Running Android’s Virtual Device Framework Natively on Apple Silicon

Meta maintained two emulator environments because Cuttlefish offered better device fidelity on Linux while developers worked on Macs. Bringing Cuttlefish to Apple silicon required reviving its QEMU integration, removing Linux assumptions from virtual-device backends, expanding memory-region tracking, and adding native display and signing support.

The payoff is a shared virtual-device platform across local development and CI. That reduces duplicated tooling and makes local test results more representative of the validation environment.

The broader lesson is to examine environmental differences before adding more tests. A large suite provides limited reassurance when local execution omits important device behavior. Consolidation still carries maintenance costs: Meta currently distributes a QEMU fork and AOSP patches while exploring upstream contributions.

Comments (0)