~/talk

Leveraging ETS Effectively

Talkat ElixirConf EU 2019 · 2019-04-08..04-09· [linux-and-operating-systems]
name:Evadne Wu
links:none on file
slides:none on file

Explains ETS internals, shows match specifications and concrete code patterns, and measures real tradeoffs: agent versus ETS reads/writes that scale to ~500,000 items, and Atomics vs ETS counters with sharded Atomics improving throughput. Demonstrates presets and caches (consistent-hashing sharded tables, generational evictions), a message-buffer pattern and an Ecto adapter wired to evadne/ets-playground so queries become ETS match specs. Practical takeaways: when ETS replaces agents or DB reads, how many items matter, and how to form fast match specs and presets backed by ETS.

AI-written summary · about

  1. 0:00Start
  2. 0:43self Elixir Enthusiast. Bug Farmer Badger of Applications
  3. 2:09Conceptual Model 2
  4. 3:17Table Types
  5. 3:29Access Types
  6. 3:48Key Functions
  7. 4:49ets:match_object/2
  8. 8:48Demo: Agent vs. ETS Perhaps a demonstration will help you make the right decision for your application
  9. 11:56Mental Model: Complexity Gradient
  10. 13:15Sharing Preset Data
  11. 15:49With Presets: Easy to Scale
  12. 17:00Storing Cached State
  13. 18:48Facilitating IPC
  14. 19:44Concurrency Control
  15. 23:48Adopting ETS: Cookie Cutter Layout
  16. 25:14Adopting ETS: With Ecto
~/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.