forked from parse-community/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add best practice page (parse-community#845)
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters