Atlas App Services Overview - Kotlin SDK
On this page
You can connect your client apps to the Atlas App Services backend using the SDK. Backend functionality includes:
The Realm App Client
To connect to your App Services backend, start with an App object. This object provides all other functionality related to the backend. Initialize an App with the App ID, which you can find in the Realm UI.
To learn how to initialize the Realm App client, refer to Connect to App Services.
Authentication & User Management
One of the most challenging aspects of client development is implementing a robust and secure authentication system. With the Realm SDKs, however, you can use any of the Realm authentication providers with minimal backend setup and client-side code. With the authentication APIs, you can implement the following functionality:
Create new user accounts
User log in and log out
Multiple users logged on at the same time on the same device
Link user accounts from different providers
Store custom data for a particular user
To learn how to set up authentication in your app, refer to Authenticate Users.
Device Sync adds data synchronization between an App Services backend and client devices on top of all of the functionality of Realm Database. When you use Realm Database with Sync, realms exist on device just like when you only use Realm Database. However, changes to the data stored in those realms synchronize between all client devices through a backend App Services instance. That backend also stores realm data in a cloud-based Atlas cluster running MongoDB.
To get started with Sync, refer to Device Sync.
Call Atlas Functions
Atlas Functions let you define and execute server-side logic. You can call these Functions from your client applications via the Realm SDKs. These server-side functions can run in the context of the authenticated user, and thus honor the rules, roles, and permissions that you have assigned to your data in Atlas.
Using Functions provides a secure way for multiple client applications to share complex functionality without having to reproduce that logic client-side.
To learn how to call an Atlas Function from your client app, refer to Call a Function.