Skip to content

Commit 8a52e01

Browse files
rkistnerkobiebotha
andauthored
Apply suggestions from code review
Co-authored-by: Kobie Botha <[email protected]>
1 parent 91399f8 commit 8a52e01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

self-hosting/lifecycle-maintenance.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The compact job uses up to 1GB memory for compacting, if available. Set the envi
6666

6767
### Load Balancer
6868

69-
A load balancer is required in from of the API containers to provide TLS support and load balancing. Most cloud providers have built-in options for load balancing, such as ALB on AWS.
69+
A load balancer is required in front of the API containers to provide TLS support and load balancing. Most cloud providers have built-in options for load balancing, such as ALB on AWS.
7070

7171
It is currently required to host the API container on a dedicated subdomain - we do not support running it on the same subdomain as another service.
7272

@@ -86,7 +86,7 @@ server {
8686
proxy_set_header X-Real-IP $remote_addr;
8787
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
8888

89-
# Disable proxy buffering - important for HTTP streaming connections
89+
# Disable proxy buffering - important for HTTP streaming connections (configured in the PowerSync client SDK)
9090
proxy_buffering off;
9191
}
9292
}

self-hosting/lifecycle-maintenance/multiple-instances.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ Since each PowerSync instance maintains its own copy of the bucket data, the exa
2626

2727
To ensure the same user always connects to the same endpoint, we recommend:
2828
1. Do an API lookup from the client application to get the PowerSync endpoint, don't hardcode it in the application.
29-
2. Either store the endpoint associated with each user, or compute it automatically using a hash function on the user id.
29+
2. Either store the endpoint associated with each user, or compute it automatically using a hash function on the user id e.g. `hash(user_id) % n` where `n` is your number of instances.
3030

3131

0 commit comments

Comments
 (0)