typesense / firestore-typesense-search

Firebase Extension to automatically push Firestore documents to Typesense for full-text search with typo tolerance, faceting, and more
https://extensions.dev/extensions/typesense/firestore-typesense-search
Apache License 2.0
150 stars 27 forks source link

Can we make most of the traffic go though a certan node? #56

Closed elieobeid7 closed 10 months ago

elieobeid7 commented 10 months ago

We have 3 servers running typesense over https on port 443, we want to setup a cluster. n1.example.com, n2.example.com and n3.example.com. 3 different ubuntu servers in different countries. installed via the DEB packages.

We're using typesense to help search our firebase firestore database, via the firestore typesense plugin. We have a Flutter application and we use the typesense SDK.

n1.example.com is our most powerful server and it's the closest server to our client in terms of geolocation.

  1. Can we make all the traffic go through n1.example.com and only use the others in case of a problem?
  2. In this what happens if n1.example.com? The developer told us that the Firebase extension and the client SDK don't support client side load balancing so our only option is to use server side load balancing. Is that correct? If so how to setup the cluster?

ideally for writes and updates I want a server side cluster because I don't want to send data from firestore to typesense 3 times, that would increase the firestore cost

I want the reads to happen from the client side, either that or to prioritize n1.example.com

jasonbosco commented 10 months ago

Duplicate of https://github.com/typesense/typesense/issues/1186