Reitit, the Ancient Art of Routing
summary
A new router called reitit delivers data-driven route tables, compile-time route compilation and middleware-as-data with spec-based validation and coercion, and it benchmarks at about 220 ns average path lookup (vs ~22,000 ns for some Clojure rivals and ~160 ns for a top Go router). The build uses router creation time compilation, async tooling like async-profiler and criterium, exposes route metadata for inspection, and the examples and demo run successfully, showing large practical speedups.
AI-written summary · about
chapters (22)
- 0:00Introduction to rated
- 1:40Routing and dispatch basics
- 2:43Data-driven architecture
- 4:41The rated library core
- 7:15Composing routes
- 8:51Conflict resolution and debugging
- 9:56Route data usage
- 11:13Front-end routing
- 13:19Spec and validation
- 15:10Coercion and efficiency
- 16:52Framework integration
- 19:08Middleware and compilation
- 23:07Transforming data routes
- 25:05Interceptor performance
- 26:33Async demo and wrap up
- 30:08Performance benchmarking
- 32:04Routing algorithm optimization
- 34:27JVM and Clojure optimization
- 37:41Final benchmark results
- 39:07Future directions and stack
- 42:30Visualization and tooling
- 45:29Conclusion and Q&A
related talks
28mBetter Routing Through Trees
38mRe-graphing The Mental Model of The Rails Router
17mRouting in React 18 and Beyond
27mMoving People with Clojure
55m“Using Functional Programming Patterns..."
26mModern HTTP Routing
38m"Growing Data Center networking mgmt UI using ClojureScript, Reagent and re-frame"
54mExploring the World of Remix: A Guide to Building Resilient and Performant Web Apps
