2 ms·
Thanks. Yes currently this will only work with Express.js. Agree that the token mechanism isn't the optimum right now, as on updating library you will have t
by aj_nikhil 6y ago
Thanks. Yes currently this will only work with Express.js.
Agree that the token mechanism isn't the optimum right now, as on updating library you will have to reconfigure it. I will try what you suggested, of keeping it in the client code.
About load this puts, all the work is done post sending the response the client from your node.js app so it should not impact response time at all. While manual benchmarking I couldn't see even 10s of microseconds difference while using this.
- SwiftyBug 6y agoI understand that it shouldn't impact response time because it does all the processing after it's been sent, but ultimately having that extra workload on your server should cause some impact, right?
- aj_nikhil 6y agoYes, extra requests your server/application has to send(to Apio) will put load on it. This is just a start so we will have to see how can we optimize this. Maybe agent based solutions which are used by Datadog or Newrelic might be a better way than Middleware based solutions.