~/talk

Koa and the Evolution of Middleware

TalkinRussianat HolyJS 2016 · on Sunday, 2016-12-11· [nodejs, frontend-architecture]

Koa v1 used generator-based middleware while Koa v2 moves to async/await, and koa-convert lets older generator middleware run on the new API. The presenter argues async/await makes middleware chains linear and maintainable, with benchmarks showing only a small runtime cost; a Dockerized production backend (Ficus) runs on Koa to demonstrate viability. Generators remain useful for custom runners and cancellation patterns (à la redux-saga), and native async/await is arriving in Node.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Service history
  3. 2:33Async JavaScript issues
  4. 3:56Express popularity
  5. 5:46New language need
  6. 8:26JS server frameworks
  7. 10:12Middleware concept
  8. 12:44Callback hell
  9. 13:06Generators for async
  10. 21:13Generators for async
  11. 23:41Async/await intro
  12. 26:54Koa 2 benefits
  13. 27:56Koa minimalism
  14. 29:04Generator to Koa 2
  15. 30:30Koa in production
  16. 31:12Generators in JS
  17. 31:55Generators in Redux Saga
  18. 34:30Canceling async ops
  19. 35:57Custom generator runners
  20. 38:30Summary: middleware tools
  21. 39:57Koa vs Express vs async/await
  22. 40:40Q&A
  23. 42:08Q&A
  24. 43:11Q&A
  25. 44:59Q&A
  26. 46:47Microservices
~/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.