Fork me on GitHub
#reitit
<
2024-02-23
>
vemv15:02:04

Is it normal (expected) that I can freely mix and match Sieppari sync and async interceptors? In the context of a legacy app, I'd be interested in keeping using a traditional Jetty (threaded) sever, and a sync http client within backend code. Interceptors would be an awesome fit as, I think, it would allow to not block Jetty on IO, while not introducing too much risk (in form of async http clients, Loom threads, etc) https://github.com/metosin/reitit/blob/ca434f9c05049c01a47066c1fb57e1b59e693b1b/examples/http/src/example/server.clj looks promising enough - I reckon that interceptor chain can mix sync and async. Any specific insight welcome