~/talk

Simplify your API

Talkat PGConf Silicon Valley 2016 · 2016-11-14..11-16· [api-design]
links:none on file
slides:none on file

A small C++ service called Sticks exposes PostgreSQL functions as HTTP endpoints so a function returns multiple format outputs (JSON, XML, CSV, XLSX, ODS) by appending an extension or calling a format endpoint. It supports named and positional parameters, parameterized calls and chaining of many functions into one HTTP request, traps DB exceptions, and enforces access via GRANT EXECUTE. First JSON-only prototype appears five years ago; deployed in several production apps (including money-handling) for years without crashing. Installation uses FastCGI on Ubuntu 16.04.

AI-written summary · about

  1. 0:00Simplify your API
  2. 3:11The problem
  3. 5:20Wouldn't it be great if...
  4. 6:29Synopsis
  5. 9:18Result types
  6. 11:35Parameters
  7. 12:42Chaining function calls
  8. 13:34Errors
  9. 14:12Access control
  10. 17:39Installation
  11. 22:33Database connection
  12. 26:04Availability
  13. 26:47Ok, but what about ...?
  14. 31:50Roadmap
  15. 35:06Key insights
~/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.