*
Hi! I'm Finch.io - a super-tiny library atop of Finagle that makes the
development of RESTFul API services more pleasant and slick.
*
Hi! I'm Finch.io - a super-tiny library atop of Finagle that makes the
development of RESTFul API services more pleasant and slick.
I'm trying to follow the principles of my elder brother and keep the things
as composable as possible.
(a) In order to mark the difference between filters and facets and show the
direction of a data-flow, the facets are composed by ! operator
within a reversed order:
val s = service ! facetA ! facetB
Note: facets don't change the request type.
(b) Endpoints might be treated as partial functions over the routes, so they
may be composed together with orElse operator:
val r = endpointA orElse endpointB
(d) Endpoints may also be composed with filters by using the ! operator
in a familiar way:
val r = authorize ! endpoint
Note: authorize changes the request type.
(e) Finagle filters may also be composed with ! operator:
val f = filterA ! filterB ! filterC
Have fun writing a reusable and scalable code with me!
* Hi! I'm Finch.io - a super-tiny library atop of Finagle that makes the development of RESTFul API services more pleasant and slick.
I'm trying to follow the principles of my elder brother and keep the things as composable as possible.
(a) In order to mark the difference between filters and facets and show the direction of a data-flow, the facets are composed by ! operator within a reversed order:
val s = service ! facetA ! facetB
Note: facets don't change the request type.
(b) Endpoints might be treated as partial functions over the routes, so they may be composed together with orElse operator:
val r = endpointA orElse endpointB
(d) Endpoints may also be composed with filters by using the ! operator in a familiar way:
val r = authorize ! endpoint
Note: authorize changes the request type.
(e) Finagle filters may also be composed with ! operator:
val f = filterA ! filterB ! filterC
Have fun writing a reusable and scalable code with me!
- https://github.com/finagle/finch - http://vkostyukov.ru