~/talk

Using TypeScript to Define Service APIs

Talkat TSConf 2020 · on Friday, 2020-10-09· [typescript, microservices]
slides:none on file

Service-to-service RPC and events move from ad hoc HTTP routes to a generated interface that actually compiles and runs. The team builds philo idl as a tight subset of TypeScript, parses the AST into an interim object, and renders client, server and tests including generated encoders and decoders. Expect concrete migration timing, bugs encountered with protobuf tooling, the parser/refactor effort, test strategy (snapshot plus roundtrip encoding) and how many services migrated.

AI-written summary · about

  1. 0:00Intro
  2. 0:28What was the problem?
  3. 2:01What is an IDL?
  4. 2:42What are some benefits for Convoy?
  5. 3:47What went wrong?
  6. 4:59What made this a hard decision? (Early 2019)
  7. 5:46How did we make a decision?
  8. 6:00Lower the risk of additional blocking issues
  9. 6:53Focus on ease of migration and current usability
  10. 7:32Make sure the solution can be changed in the future
  11. 8:10What decision did we make?
  12. 8:52How do we know it's right? We don't
  13. 10:28Filtering
  14. 11:13Parsers
  15. 12:53Example: Enum Parser
  16. 15:58Service Declaration - Piece of Interim Object
  17. 16:34Rendering Client/Server/Types
  18. 17:16Testing
  19. 18:48Filo Successes
  20. 20:54Discriminated Unions are AMAZINGI!
  21. 21:53Lessons Learned
  22. 24:18Commonly Asked Questions
~/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.