node-finagle
Proof of concept lib of a finagle-like composable Service
/Filter
in node.
A Service
is basically a function (input) => Promise<output>
The idea is provide composable wrappers to create smart Services on top of very simple ones.
Things to support in mind:
- Circuit breaking
- Batchcing
- Batch fork-join
- Retry
- Hedging requests (more info)
Ideally it should be built on top of proved libraries like dataloader
, bluebird
and generic-pool
Idea:
val filterStack = FilterStack ; val loader = filterStack; const x = ;const y = ;