Skip to content

Commit

Permalink
add to TOC and placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
MongoCaleb committed Jan 21, 2025
1 parent 7e15162 commit 660c9a5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/sync/device-sync-deprecation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
Device Sync Deprecation
=======================

.. contents:: On this page
:local:
:backlinks: none
:depth: 2
:class: singlecol
.. toctree::
:titlesonly:
:hidden:

Migrate to AWS AppSync </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
Expand Down
36 changes: 36 additions & 0 deletions source/sync/migration/awsappsync.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,39 @@ The following diagram shows a typical example of the new architecture:
.. image:: /images/migration/aws_appsync_architecture.png
:alt: A diagram showing a typical Device Sync architecture.

Migration Steps
---------------

MongoDB Atlas
~~~~~~~~~~~~~

If needed, update the database security and network access.
Create a Database Trigger that fires an EventBridge event.

AWS
~~~

EventBridge
```````````
- Configure Atlas as the partner source.
- Configure AWS AppSync as the target.
- Create a mapping of the event body’s fields to AppSync’s GraphQL endpoints
- Configure security

AWS Lambda Resolver
```````````````````
- Create Lambda functions with the MongoDB Data APIs or MongoDB drivers

AWS AppSync
```````````
- Set up security
- Link to the Lambda Resolver

Application Code
~~~~~~~~~~~~~~~~

- Replace the Realm SDKs with the MongoDB driver to read and write to Atlas.
- Add drivers to write and read from the device’s datastore (the default is
SQLite in both iOS and Android environments.)
- What’s the advantage of using AWS Amplify here?

0 comments on commit 660c9a5

Please sign in to comment.