~/talk

Outside the Web Box: Using Ruby for Other Protocols

Talkat RubyConf AU 2018 · 2018-03-08..03-09· [ruby, databases]
slides:none on file

Claim: Ruby handles non‑HTTP hardware protocols in production. Uses the Ruby socket library to open TCP sockets and TCPServer, offloads work to a Sidekiq worker or Sinatra proxy, parses device streams (different scanner formats), and emits Zebra labels via Zebra CPL strings. Addresses single‑connection devices, private‑network security, flaky cables and parser quirks. Deployed for over a year and the shoe sorter runs in three facilities, so the approach works at scale.

AI-written summary · about

  1. 0:00Start
  2. 5:26How does a web server a handle request?
  3. 7:14How is TCP different from HTTP?
  4. 9:58open a socket in order to communicate with hardware, a TCP socket needs to be established
  5. 22:35middleware shared code to handle different device protocols
~/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.