Sunny

← All weeks

What I’ve been reading (W37, 2022)

Reflections on software performance · Four golden rules a user-facing system should be monitored for

Reflections on software performance

  • Performance is a feature.
  • Performance changes how users use software — fast tools don’t just allow users to accomplish tasks faster; they allow users to accomplish entirely new types of tasks in new ways.
  • Performance needs effort throughout a project’s lifecycle
  • If you want to build truly performant software, you must at least keep performance in mind as you make early design and architectural decisions, lest you paint yourself into awkward corners later on.
  • Attempts to add performance to a slow system often add complexity in the form of complex caching, distributed systems, or additional bookkeeping for fine-grained incremental recomputation. These features add complexity and new classes of bugs, adding overhead and making the straight-line performance even worse, further increasing the problem.

Four golden rules a user-facing system should be monitored for

  • Latency: the time it takes to process a unit of work, broken down between success and failure.
  • Traffic: the rate at which new work comes into the system, typically expressed in requests per minute.
  • Errors: the rate of unexpected things happening. In payments, we distinguish between payment failures and errors. An example of a failure is a charge being declined due to insufficient funds, which isn’t unexpected. On the other hand, HTTP 500 response codes from our financial partners are. However, a sudden increase in failures might need further investigation.
  • Saturation: how much load the system is under relative to its total capacity. This could be the amount of memory used versus available or a thread pool’s active threads versus the total number of threads available in any system layer.

^ cc:

How Apple is increasing ARPU by creating best-in-class products and enabling magical experiences when all paired together

Very few people just buy an iPhone: they upgrade to a higher-priced model, they spend money in the App Store and on subscriptions, and they buy an Apple Watch and AirPods that work seamlessly with their phone. The end result is that Apple isn’t making $550 per customer, to go back to the iPhone 5C, or $650 in the case of the 5S: they’re making upwards of $2000 — $1,000+ for a top-of-the-line iPhone, $400+ for a Watch, $200+ for AirPods, and all of that App Store revenue (and this doesn’t even include what is likely a thriving accessories business, AppleCare, or the Google search deal). It is, to be frank, justified: all of these devices really do work well together, and iPhones remain top-of-class.

Advice for a young idealist: Find a lonely cause

  • If you want to make a difference, find a neglected problem no one is working on.
  • The world is a big, complex system full of immense problems. The more obvious problems already have many people working on them present themselves most readily to young idealists and altruists. But that leaves many severe, much less obvious problems neglected. And neglected issues are often the ones where you can do the most good.

How Mr Beast Became Successful on YouTube

  • Mr Beast was so obsessed with YouTube that he talked about growth strategy with friends on Skype every day for over 1,000 days. By the end, everybody in the group had more than 1 million subscribers.