You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the request has been fully processed and decoded, it gets handed over to the Node.js event-loop, and then takes the response from the API handler and writes it back to the client.
Based on this, it appears encore.ts utilizes Node.js for API handling after Rust completes the validation phase.
Performance Consideration
Would switching to alternative JavaScript runtimes like Deno or Bun potentially improve performance metrics, given their reported speed advantages over Node.js?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
API Handler Performance Question
Current Implementation
According to a comment by Simon on dev.to:
Based on this, it appears
encore.ts
utilizes Node.js for API handling after Rust completes the validation phase.Performance Consideration
Would switching to alternative JavaScript runtimes like Deno or Bun potentially improve performance metrics, given their reported speed advantages over Node.js?
Beta Was this translation helpful? Give feedback.
All reactions