Update docs

This commit is contained in:
Tommi Reiman 2018-12-30 17:32:05 +02:00
parent 4e65e40db3
commit dece45f036
3 changed files with 16 additions and 11 deletions

View file

@ -19,10 +19,6 @@
* `reitit.interceptor/transform-butlast` helper to transform the interceptor chains (last one is usually the handler).
### `reitit-pedestal`
* new optional module for [Pedestal](http://pedestal.io/) integration. See [the docs](https://metosin.github.io/reitit/http/pedestal.html).
## `reitit-middleware`
* `reitit.ring.middleware.dev/print-request-diffs` middleware transformation function to print out request diffs between middleware to the console
@ -39,12 +35,21 @@
<img src="https://metosin.github.io/reitit/images/http-context-diff.png" width=320>
## `reitit-sieppari`
* New version of Sieppari allows interceptors to run on ClojureScript too.
### `reitit-pedestal`
* new optional module for [Pedestal](http://pedestal.io/) integration. See [the docs](https://metosin.github.io/reitit/http/pedestal.html).
### dependencies
* updated:
```clj
[metosin/muuntaja "0.6.3"] is available but we use "0.6.1"
[metosin/sieppari "0.0.0-alpha6"] is available but we use "0.0.0-alpha7"
```
## 0.2.9 (2018-11-21)

View file

@ -81,7 +81,7 @@ To get better view on the real life routing performance, there is [test](https:/
Thanks to the snappy new [segment-tree](https://github.com/metosin/reitit/blob/master/modules/reitit-core/src/reitit/segment.cljc) algorithm, `reitit-ring` is fastest here. Pedestal is also fast with it's [prefix-tree](https://en.wikipedia.org/wiki/Radix_tree) implementation.
![Opensensors perf test](images/opensensors.png)
![Opensensors perf](images/opensensors.png)
### CQRS apis
@ -89,7 +89,7 @@ Another real-life [test scenario](https://github.com/metosin/reitit/blob/master/
Both `reitit-ring` and Pedestal shine in this test, thanks to the fast lookup-routers. On average, they are **two** and on best case, **three orders of magnitude faster** than the other tested libs. Ataraxy failed this test on `Method code too large!` error.
![Opensensors perf test](images/lupapiste.png)
![lupapiste perf](images/lupapiste.png)
**NOTE**: in real life, there are usually always also wild-card routes present. In this case, Pedestal would fallback from lookup-router to the prefix-tree router, which is order of magnitude slower (30x in this test). Reitit would handle this nicely thanks to it's `:mixed-router`: all static routes would still be served with `:lookup-router`, just the wildcard routes with `:segment-tree`. The performance would not notably degrade.

View file

@ -28,7 +28,7 @@
[metosin/schema-tools "0.10.5"]
[metosin/muuntaja "0.6.3"]
[metosin/jsonista "0.2.2"]
[metosin/sieppari "0.0.0-alpha6"]
[metosin/sieppari "0.0.0-alpha7"]
[meta-merge "1.0.0"]
[lambdaisland/deep-diff "0.0-25"]
@ -72,8 +72,8 @@
[ring "1.7.1"]
[ikitommi/immutant-web "3.0.0-alpha1"]
[metosin/ring-swagger-ui "2.2.10"]
[metosin/muuntaja "0.6.3"]
[metosin/sieppari "0.0.0-alpha5"]
[metosin/muuntaja]
[metosin/sieppari]
[metosin/jsonista "0.2.2"]
[criterium "0.4.4"]
@ -102,12 +102,12 @@
[org.clojure/core.async "0.4.490"]
[manifold "0.1.8"]
[funcool/promesa "1.9.0"]
[metosin/sieppari "0.0.0-alpha5"]
[metosin/sieppari]
[yada "1.2.16"]
[aleph "0.4.6"]
[ring/ring-defaults "0.3.2"]
[ataraxy "0.4.2"]
[bidi "2.1.4"]]}
[bidi "2.1.5"]]}
:analyze {:jvm-opts ^:replace ["-server"
"-Dclojure.compiler.direct-linking=true"
"-XX:+PrintCompilation"