Skip to content

feat: add best practice page #845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Sep 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions _includes/parse-server/best-practice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Best Practice

*This page is a work in progress and incomplete. If you have any suggestions, please open a pull request.*

## Security

### Firewall

Protect all Parse Server endpoints using a Firewall to mitigate the risk of malicious attempts to scape user data, flood the database and DDoS attacks.
- Use rate-limiting rules for public endpoints, for example limit the number of requests per IP address or per user.
- Use very restrictive rules for private endpoints; for example limit access to Parse Dashboard to your personal network.

## Optimization

The following is a list of design considerations to optimize data traffic and performance.

### Database

- Use short field names; field names need to be stored in the database just like the field values; short field names not only require less database storage but also reduce the data traffic between database, server and client.

### Queries

- Use `select` and `exclude` to transfer only the fields that you need instead of the whole object.
2 changes: 1 addition & 1 deletion assets/js/bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions parse-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ sections:
- "parse-server/third-party-auth.md"
- "parse-server/MongoReadPreference.md"
- "parse-server/development.md"
- "parse-server/best-practice.md"
---