Skip to content

Commit fc540e2

Browse files
authored
add best practice page (#845)
1 parent a064a5c commit fc540e2

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Best Practice
2+
3+
*This page is a work in progress and incomplete. If you have any suggestions, please open a pull request.*
4+
5+
## Security
6+
7+
### Firewall
8+
9+
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.
10+
- Use rate-limiting rules for public endpoints, for example limit the number of requests per IP address or per user.
11+
- Use very restrictive rules for private endpoints; for example limit access to Parse Dashboard to your personal network.
12+
13+
## Optimization
14+
15+
The following is a list of design considerations to optimize data traffic and performance.
16+
17+
### Database
18+
19+
- 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.
20+
21+
### Queries
22+
23+
- Use `select` and `exclude` to transfer only the fields that you need instead of the whole object.

assets/js/bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

parse-server.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ sections:
2222
- "parse-server/third-party-auth.md"
2323
- "parse-server/MongoReadPreference.md"
2424
- "parse-server/development.md"
25+
- "parse-server/best-practice.md"
2526
---

0 commit comments

Comments
 (0)