-
Hi. I'm evaluating using this library for data sync. We have a multi-tenant application, where each tenant/client has their own database. We have one API service that serves all tenants. We have some common data that we'd like to sync into each tenant database. I've had a read through the Multiple Client overview but it seems those docs are targeted towards clients having their own servers. Conceptually we only have 1 server. The docs mention Ideally we'd only like one sync agent, that can sync to multiple clientProviders. Is this possible? If not, do you have any advice on how to sync to a non-static list of multiple clients? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
That's good. 1 server and multiple clients. Classic scenario I guess
On the client side ?
A sync agent ist just an object who knows the server and the client. |
Beta Was this translation helpful? Give feedback.
-
We use the token in the HttpClient header to identify the user. Then configure the connection string to the server database in |
Beta Was this translation helpful? Give feedback.
-
On the client we use this overload where the headers of httpClient carry some token that identifies the user The SyncController reads the headers to identify the user and configures the connection string for that user like this |
Beta Was this translation helpful? Give feedback.
That's good. 1 server and multiple clients. Classic scenario I guess
On the client side ?
A sync agent ist just an object who knows the server and the client.
You can create as many SyncAgent as you want, on your local client.