~/talk

How I have improved the Database performance from 5 seconds to 1 millisecond

Talkat AzConf 2020 · 2020-11-24..11-26· [databases]
slides:none on file

Customer workload starts at multi-second latencies (examples show 5s and 200ms spikes) and target is <50ms; optimizations reduce p99 to single-digit milliseconds and often ~1ms. Key actions: use static CosmosClient singleton, prefer ReadItemAsync using id+partition key instead of cross-partition queries, choose direct connection mode and private endpoints, fix hot partitions and warm up load tests, increase worker cores, split growing documents (attendance separate from employee), store binaries in blob storage, and use autoscale for throughput.

AI-written summary · about

  1. 0:00Start
  2. 5:08Features
  3. 5:18Global Distribution
  4. 7:53The Challenges
  5. 8:06Architecture
  6. 8:58Cost Factor
  7. 9:17Capacity Calculator
  8. 14:04Single Execution of Test
  9. 15:22Client Objects
  10. 16:02Thread Safety
  11. 20:46Connection Mode
  12. 21:57Code B
  13. 22:48Demo
  14. 27:36Thread Switching
  15. 30:51Async Performance Capture
  16. 33:13Data Model
  17. 38:25Binary Files
  18. 39:46The Final Result
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.