~/talk

Leveraging ETS Effectively

Talkat ElixirConf EU 2024 · 2024-04-18..04-19· [databases]
name:Evadne Wu
links:none on file
slides:none on file

Deep dive into ETS internals with concrete claims, code and benchmarks: match specifications are shown as the real power, and a demo replaces an Agent that chokes at ~16k concurrent items with ETS that handles ~500k reads/updates; practical patterns include using ETS as presets (static data), as sharded caches per scheduler, as message buffers and lightweight counters (with an Atomics comparison), and an Ecto adapter that maps schemas to ETS for queries and streaming (repo: github.com/evadne/ets-playground).

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.