42
Views
1
Comments
Solved
Theorical question on Data Synchronization Patterns

Referencing this video lesson: Data Synchronization Patterns, could anyone explain in more detail the following statement (?): 

"The accelerators do not use the OfflineDataSync and the ServerDataSync actions. Each automatically generated Client Action calls a Server Action with the server-side logic for the specific Entities. It is up to the developer to use the generated logic in the sync actions and to adjust it accordingly, so it does not call the server more times than it should."

Thank you in advance

2023-06-12 05-32-53
Ananya Ghosal
Solution

Hi Elisa,

Hope you're doing great!

I'll try to answer your question point-wise. 

  1. While use various patterns while synchronizing data in mobile applications, e.g. read-only and read-write. Now, when we create a local entity, Outsystems offers accelerators which can create a schema of the patterns 
  2. Like this, we can create the client side and server side logics

  3. Now, if we see the logic of client/server side sync logics, there must be a part where server-side-synchronization will occur. Something like this.
  4. This part is not defined in the actions generated by accelerators. Reason is, server-side-synchronization logic must be written carefully. So that the server hit is minimal. Outsystems leaves it up-to the developers (how they want to create the logic).

I hope this helps  :)


Best Regards,
Ananya

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.