yada

ikitommi 2017-12-01T12:36:43.000256Z

It takes 4secs with Cheshire to stream a 100Mb data from memory into JSON file on my Macbook Pro with SSD, without any web libraries involved. You can carve out it to sub-second with using Jackson directly or a direct clojure-wrapper like Jsonista.

kardan 2017-12-01T16:16:36.000465Z

Playing a bit with Yada. Was adding a route [“assets/” assets] which is a new-classpath-resource. But if the url within /assets/ is not found the next route is not used (my custom 404) But the internal Yada 404. So now I wonder, can I get the routing mechanism to continue if it don’t find anything within asset/ or how do I alter the default 404 page?

malcolmsparks 2017-12-01T16:35:39.000336Z

See status responses section in the manual

malcolmsparks 2017-12-01T16:36:24.000538Z

Welcome to yada btw. @kardan

kardan 2017-12-01T16:45:21.000184Z

@malcolmsparks will do, & thanks

kardan 2017-12-01T20:52:09.000318Z

I struggle to understand how to use status responses with new-classpath-resource - I have to be missing something. Anyone know of an example to look at?

malcolmsparks 2017-12-01T23:21:37.000033Z

Ah. Good point. Copy and paste new-classpath-resource to your own codebase and tweak it

malcolmsparks 2017-12-01T23:22:54.000335Z

Better still, provide a backstop yada resource and place it after the new-classpath-resource

malcolmsparks 2017-12-01T23:23:40.000082Z

Use a bidi pattern of true to match everything at the end of your route structure