~/talk

Writing Sustainable AsyncAPI Generator Templates

Talkat AACoT 2023 Bangalore · on Thursday, 2023-11-30· [developer-experience]
links:none on file
slides:none on file

Shows that AsyncAPI Generator templates must be written as frameworks/libraries using inversion of control rather than as files you edit: with AsyncAPI Generator (AG, ~40,000 weekly npm downloads) and a Node.js/Mosquitto MQTT demo the original template overwrites handlers on regeneration and destroys user business logic. Replaces file-editing handlers with an exported API to register middleware (Express‑style), generates a runnable streetlights app from a spec, and proves regeneration adds channels without losing user code.

AI-written summary · about

  1. 0:00AsyncAPI generator templates
  2. 1:02AsyncAPI generator and tooling
  3. 3:53Generator templates and specs
  4. 7:26Live demo: Node.js app
  5. 11:32Problems with traditional templates
  6. 16:52Inversion of control approach
  7. 18:41Live demo: new template architecture
  8. 22:37Maintaining templates with decoupled logic
  9. 24:53Summary
~/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.