10BC0 docs: add performance considerations section by ismaildasci · Pull Request #6457 · fastify/fastify · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@ismaildasci
Copy link

Closes #4832

Adds a new "Performance Considerations" section to Recommendations.md that consolidates common causes of performance degradation scattered throughout the documentation.

Changes

  • Added table of contents entry for the new section
  • Added Performance Considerations section covering:
    • Route configuration (regex routes, multiple parameters, version constraints, async constraints)
    • Serialization (JSON serialization without schema)
    • Serverless (application size impact on cold starts)

Each item links to the relevant documentation for more details.

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jan 18, 2026
Copy link
Member
@jean-michelet jean-michelet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we should add recommendations at the application level, as it's difficult to be exhaustive and it could require frequent updates.

This document seems more like a set of general recommendations for deploying Fastify.

See [Getting Started](./Getting-Started.md#serialize-data) and
[Validation and Serialization](../Reference/Validation-and-Serialization.md).

### Serverless
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not specific to Fastify.

Removed the serverless section as it contains general advice
not specific to Fastify.
Copy link
Member
@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Causes of degradation

4 participants

0