Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Let's Scale Ruby Applications with Love

Let's Scale Ruby Applications with Love

Bernie Chiu

July 26, 2019
Tweet

Other Decks in Technology

Transcript

  1. OVERVIEW • Ruby and API • Ruby and Database •

    Ruby and Network • Ruby and… just Ruby
  2. –DHH 「1000 requests that return in 5ms, and 200 requests

    taking 2,000 ms, still get a respectable 170ms average」
  3. FIND EACH FIND IN BATCHES • Memory saving • Fetch

    limited rows on each batch/iteration • Won’t lock the whole table
  4. WHY NOT NATIVE • Only few iterations runs with Benchmark.bm

    or Benchmark.bmbm • Display time factors instead and need to guess a random iteration counts
  5. BEWARE! • APIs might have different result in different params

    body • Test with the most common set from online metrics or your own tracking
  6. QA