Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MongoCaleb committed Jan 27, 2025
1 parent c6be29b commit 4e048ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions snooty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ toc_landing_pages = [
"/services/twilio",
"/sync",
"/sync/get-started",
"/sync/device-sync-deprecation",
"/hosting",
"/users",
"/values-and-secrets",
Expand Down
8 changes: 4 additions & 4 deletions source/sync/device-sync-deprecation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Device Sync Deprecation

Migrate to AWS AppSync </sync/migration/awsappsync>

As of September 2024, Device Sync is deprecated for Atlas App Services. Device
Sync will reach end-of-life and be removed on **September 30, 2025**. If you
use Device Sync, you should migrate to alternative solution providers before
Device Sync is removed.
As of September 2024, Device Sync is deprecated for Atlas App Services. Device
Sync will reach end-of-life and be removed on **September 30, 2025**. If you
use Device Sync, you should migrate to one of the alternative solution providers
listed below.

Refer to the :ref:`App Services deprecation page <app-services-deprecation>` for
more deprecation information.
Expand Down
16 changes: 8 additions & 8 deletions source/sync/migration/awsappsync.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ The following diagram shows the typical Device Sync architecture:
.. image:: /images/migration/device_sync_architecture.png
:alt: A diagram showing a typical Device Sync architecture.

In this architecture, your app uses the Realm APIs to communicate directly with
Atlas App Services, which handles data storage, synchronization, and conflict
resolution.
In this architecture, your app uses the Atlas Device Sync APIs to communicate
directly with Atlas App Services, which handles data storage, synchronization,
and conflict resolution.

The data flow is:

Expand All @@ -47,7 +47,7 @@ The data flow is:
- Device Sync APIs send changes to Atlas App Services.
- Atlas App Services performs any necessary conflict resolution, stores the changes
in Atlas, and syncs the changes to the other devices.
- Device Sync APIs updates the data in each device’s local realm.
- Device Sync APIs update the data in each device’s local realm.

AWS AppServices
~~~~~~~~~~~~~~~
Expand All @@ -60,11 +60,11 @@ following changes to your architecture:
- Use AWS Event Bridge to listen for event triggers from Atlas
- Add a Database Trigger to Atlas

You will also change 2 parts of your client code:
You also need to change the following in your client code:

- Because AppSync uses GraphQL, you will use the AWS AppSync API to communicate
with it AppSync
- The local data store also changes from a Realm database to the default
- Because AppSync uses GraphQL, you need to use AWS AppSync APIs to access
GraphQL endpoints from your application.
- Change the local datastore from a Realm database to the default
datastore on the device (typically SQLite), or another one of your choice.

The following diagram shows a typical example of the new architecture:
Expand Down

0 comments on commit 4e048ac

Please sign in to comment.