Skip to content

Proper way to sync clients? #945

Answered by Mimetis
ajmoore79 asked this question in Q&A
Jan 25, 2023 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

For clients that are updating their local database using EF migrations, you know that they should use another scope.
So far, for these clients:

  • 1 EF migrations update the tables on the client to the latest version when the latest app is starting.

Just after the EF Migrations, you already know that V2 scope is not existing, as you just made the EF Migrations.
Of course, you can check it by getting all scopes:

  • 2 localOrchestrator instance gets all scopes and see if a "V2" if exists

IF exists, I guess you are good to make a sync.

Otherwise:

  • 3 remoteOrchestrator gets the scope information for "V2" from server side
  • 4 localOrchestrator call ProvisionAsync using the remote scope retrieved o…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@ajmoore79
Comment options

Answer selected by ajmoore79
Comment options

You must be logged in to vote
6 replies
@ajmoore79
Comment options

@ajmoore79
Comment options

@Mimetis
Comment options

@ajmoore79
Comment options

@Mimetis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants