Skip to content

Commit 382abbe

Browse files
committed
feedback
1 parent cbe6a38 commit 382abbe

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

website/pages/docs/going-to-production.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Best Practices for Production Readiness
2+
title: Going to Production
33
---
44

55
Bringing a GraphQL.js server into production involves more than deploying code. In production,
@@ -208,11 +208,12 @@ For more details, see the [Authentication and Middleware](./authentication-and-e
208208
209209
### Apply rate limiting
210210
211-
To prevent abuse, you can limit how often clients send queries. Basic rate limiting can be added
212-
at the HTTP level using middleware such as `express-rate-limit`.
211+
To prevent abuse, you can limit how often clients access specific operations or fields. The
212+
[`graphql-rate-limit`](https://github.com/teamplanes/graphql-rate-limit#field-config) package lets
213+
you define rate limits directly in your schema using custom directives.
213214
214-
For more granular control, you can apply limits per user or operation using your own
215-
logic inside the request context or resolvers.
215+
For more control, you can also implement your own rate-limiting logic using the request
216+
context, such as limiting by user, client ID, or operation name.
216217
217218
## Improve performance
218219

0 commit comments

Comments
 (0)