Skip to content

Commit

Permalink
add best practice page (parse-community#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza authored Sep 3, 2021
1 parent a064a5c commit fc540e2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
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"
---

0 comments on commit fc540e2

Please sign in to comment.