~/talk

Functional APIs with GraphQL & Elixir

Talkat Code BEAM Lite Berlin 2018 · on Friday, 2018-10-12· [api-design]
slides:none on file

GraphQL + Elixir is shown as a practical API replacement using Absinthe, with a runnable Phoenix mount, GraphiQL playground and optional subscriptions over channels. A project-management schema is prototyped first-only schema and fake resolvers (parent, args, resolution) let frontends play before DB code. Absinthe defaults to Map.get resolvers, supports batch/dataloader to avoid N+1, and enforces query complexity limits to prevent DOS; client caching and lack of an official Elixir client are noted.

AI-written summary · about

  1. 0:00Intro
  2. 1:41The history behind it (educated guess)
  3. 4:41What is this GraphQL thing?
  4. 6:54GraphQL in Elixir
  5. 10:25How does it look like?
  6. 13:27Computed fields
  7. 14:02Let's get our hands dirty!
  8. 15:57Sad news for you
  9. 16:23Objects
  10. 19:02The Graph & The Query
  11. 19:48The Graph & The Schema
  12. 22:41The Graph & The Response
  13. 29:28Phoenix integration
  14. 30:23N+1 queries
  15. 33:23We're building DOS endpoint
  16. 34:35Problem #2: DOS prevention
  17. 35:36Caching
  18. 36:32Hostile developer environments
~/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.