What is the difference between decorateRequest and @fastify/request-context #4202
-
As title, is there any difference between between decorateRequest and @fastify/request-context? Both of them seems to able to create request-scoped variables. |
Beta Was this translation helpful? Give feedback.
Answered by
mcollina
Aug 17, 2022
Replies: 1 comment
-
The first has zero overhead, and the latter cost about 15% of throughput. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mcollina
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The first has zero overhead, and the latter cost about 15% of throughput.