~/talk

Implementing JSON-RPC with SwiftNIO

Talkat dotSwift 2019 · on Monday, 2019-01-28· [swift, serverless]
slides:none on file

Implements JSON-RPC over TCP using SwiftNIO with a three-stage pipeline: JSON framing (delimiter \r\n), Foundation Codable encode/decode, and a request/response handler that queues promises to correlate calls and replies. Shows how framing uses a delimiter, how errors surface on decode, and that the client gets a future fulfilled on response. Demo controls four light bulbs via JSON-RPC and the commands successfully turn them on and off.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50Network Protocols
  3. 3:30SwiftNIO
  4. 4:50SwiftNIO Ecosystem
  5. 5:30Key abstractions
  6. 6:15What is JSONRPC
  7. 6:45JSONRPC Example
  8. 7:10SwiftNIO Components
  9. 7:40Client Pipeline
  10. 8:10Request Handler
  11. 9:55Next Handler
  12. 10:30Frame
  13. 11:45Wait
  14. 12:20Decode
  15. 13:15Server Pipeline
  16. 13:45Server Handler
  17. 14:05Request
  18. 15:00Callback
  19. 15:35demo
  20. 16:40links
~/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.