Closed gcanti closed 6 years ago
@gcanti TBH I've not spent any time looking - yet. We're currently thinking about replacing our framework (Hapi) as our microservice basis.
Also we're using funfix as our async stack layer (for its scheduler). So I'm unsure about hyper-ts yet, I'm unsure about the execution compatibility and performance.
What we know is that we want to be able to easily integrate with existing libs (as we cannot rewrite everything from scratch) and express has a huge ecosystem.
TBH I've not spent any time looking - yet
That's fine, this is just an experimental project at the moment (oh and sorry for mentioning you, let me know if you are not interested in further discussions)
Also we're using funfix as our async stack layer (for its scheduler)
I'm not acquainted with funfix, what can you do with its scheduler?
I'm unsure about the execution compatibility and performance
I would expect to be able to write an interpreter for funfix's IO
as I did for fp-ts's Task
.
Performance is a big deal though, I'll investigate how to benchmark this library (any suggestion?).
@gcanti thanks for keeping me in the loop!
About funfix scheduler, you can read about it here: https://github.com/funfix/funfix/pull/37 which is exhibited when chaining computations; with some load.
About performance; what need to be measured is the overhead.
Benchmarks are not reliable but the more accurate that we can be; I guess a basic 'ab' against a set of representative handlers can give some hints, compared to a baseline (ex: raw express).
Can be done in a CI context too, even if not on separate boxes, it can give some idea and compare behaviours (for different interpreters for instance)..
@OliverJAsh @sledorze This is an example showing how to ensure authentication statically. I think that there are other ways to do this, more sophisticated and that can handle authorization as well, but I guess this is just fine as a first attempt