~/talk

It doesn't have to be REST: Websockets in Go

Talkat Golang UK 2017 · 2017-08-16..08-18· [web-platform, pwa]
slides:none on file

WebSockets in Go let servers push synchronized state to many clients instead of polling, reducing thousands of HTTP requests and avoiding repeated credentials by authorizing once per connection (less CSRF surface). The standard library exposes low‑level frame reads; Gorilla WebSocket guarantees full messages, offers an Upgrade struct (origin checks, compression, handshake timeout) and passes the Autobahn 500+ tests. For extreme performance the ws zero-copy upgrade reuses I/O buffers; typical servers run connection handlers (e.g. listen :4000) and marshal JSON with per-connection write mutexes.

AI-written summary · about

  1. 0:00Start
  2. 0:58Overview
  3. 2:13Communication Protocol
  4. 5:35Two Principles To Approach the Process of Architectural Software Design
  5. 7:09Uniform Interface Constrain
  6. 9:08Why Use Websockets
  7. 14:38Websocket Library in the Go Standard
  8. 17:17The Guerrilla Websocket Library
  9. 20:41Websocket Library
  10. 25:05Zero Copy Upgrade
  11. 28:52Message Endpoints
  12. 33:02Recap
~/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.