portkey

Portkey: from REPL to Serverless in one call
viesti 2020-03-09T08:05:41.000200Z

humdum

baptiste-from-paris 2020-03-09T08:05:53.000500Z

hello !

viesti 2020-03-09T08:06:59.001100Z

Hi!

viesti 2020-03-09T08:09:04.003Z

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...)

viesti 2020-03-09T08:09:17.003400Z

to have fast local playground and the deploy to cloud

viesti 2020-03-09T08:09:31.003800Z

just on thought level currently

baptiste-from-paris 2020-03-09T08:10:23.004800Z

I am a little lost with reitit compared to other routing libs, any help ?

viesti 2020-03-09T08:15:17.006600Z

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.

viesti 2020-03-09T08:15:49.007500Z

Tommi has spend effort on making the dispatch fast

baptiste-from-paris 2020-03-09T08:16:15.008400Z

compojure was not good enough ?

viesti 2020-03-09T08:16:25.008700Z

reitit can also be used on the frontend, there's a core lib and then bindings to other stuff

viesti 2020-03-09T08:17:38.010100Z

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)

viesti 2020-03-09T08:18:17.010900Z

not saying that don't use compojure, just that there are differencies 🙂

baptiste-from-paris 2020-03-09T08:18:26.011100Z

okay, got it !

cgrand 2020-03-09T09:20:11.011300Z

and does weird things where it traverses twice to conditionnally apply middlewares