~/talk

Data Diffing Based Software Architecture Patterns

Talkat Clojure/north 2020 · 2020-06-25..06-26· [software-architecture]
slides:none on file

Argues that shipping edit-script diffs as the transport shape simplifies client–server coupling and lets the SPA hold most logic; used in production for a few years and enabled a full UI rewrite in about a month, reducing effort and making the codebase easier to change and developers happier. Uses Kafka for centralized logging, assigns browser/tab and element ids and sometimes a vector-of-ids trick to speed comparisons. Notes worst-case O(m·n) cost for nested vectors, A* heuristics to prune searches, and authorization handled separately.

AI-written summary · about

  1. 0:00Introducing diff-based architecture
  2. 2:05Q&A on edit script compression
  3. 4:12Performance with large vectors
  4. 8:46Vector keys vs map keys
  5. 13:00Comparing with CRDTs
  6. 15:24Authorization and integrity
  7. 17:52Client operations in edit script
  8. 19:15Legacy migration use case
  9. 20:41Sets for unordered data
  10. 21:02Debugging differential sync
  11. 22:04Adding ordering to edit script
  12. 23:49Auto merge and three-way merges
  13. 25:12Future possibilities
  14. 27:38Closing and thanks
~/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.