Skip to main content

Introduction

Overview

Sync provides the Sync SDK that allows application developers of Pleos Vehicle OS to implement synchronization features. The Sync SDK operates based on two units, SyncDatabase and SyncDocument.

Features

The Sync SDK operates with a Data sync model that has the following characteristics.

  • Operation-based document synchronization : Provides SyncDocument in JSON format and synchronizes by modifying SyncDocument at the operation level and exchanging operations. This allows synchronization by reflecting individual JSON operations simultaneously with minimal network transmission.
  • Multi-client optimistic synchronization: Multiple clients can concurrently modify the SyncDocument and pass it to other clients after modifying the locally stored SyncDocument.
  • Real-time event-driven synchronization: When the shared SyncDocument is updated by another client, it is delivered as a real-time event and can be processed in the event listener.
  • Reliable operation transmission: Synchronization occurs without loss or duplicate transmission of operations even when the vehicle enters a shadow area or when communication is not possible. Additionally, operations from other clients sent to the server are delivered when the vehicle app restarts or the network becomes available.

By understanding these characteristics of Sync SDK, you can efficiently implement Pleos Connect applications for synchronization. To use the Sync SDK, you must create and initialize a SyncDatabase and set authentication information. Based on this, you can then initialize and use SyncDocument. You can find a detailed example in the sample. For structuring data updated via SyncDocument, refer to the Data sync model.

[Backward compatibility is not supported]
  • Sync SDK v2.3.0 is not compatible with the previous SDK. Therefore, you must migrate to the new SDK.
  • Apply the updated package naming. (Modify module-level build.gradle and import statements)
  • Apply the updated permissions in the Manifest file.
  • Download the Pleos Connect Emulator again.