humdum
hello !
Hi!
mentally playing with an idea on reitit route data -> API GW + handlers to Lambdas... (maybe have :target
keyword on route data for specifying the type of lambda, like jvm, or graal...)
to have fast local playground and the deploy to cloud
just on thought level currently
I am a little lost with reitit
compared to other routing libs, any help ?
it represents routes as as via nested vectors, then has ways to compile the routes into fast dispatch via the url path. The leafs of routes can have data attached to them to describe middleware, endpoint handler etc.
Tommi has spend effort on making the dispatch fast
compojure
was not good enough ?
reitit can also be used on the frontend, there's a core lib and then bindings to other stuff
compojure is macro heavy, no inspection possible and the standard route matching is O(n) (walks the routes one by one to match for the url path/method)
not saying that don't use compojure, just that there are differencies 🙂
okay, got it !
and does weird things where it traverses twice to conditionnally apply middlewares