logo

Brief Introduction To AWS App Sync

blogs

AWS AppSync is a managed service from AWS that simplifies the development of APIs, particularly GraphQL APIs. It allows you to create scalable and secure APIs that can fetch, update, or synchronize data between your application and multiple data sources. AppSync is especially useful for building real-time and offline-first applications, making it ideal for modern web and mobile apps.


Key Features of AWS AppSync

1. GraphQL APIs:

  • AppSync enables you to use GraphQL, a query language for APIs that allows clients to request only the data they need. This contrasts with traditional REST APIs, which might return fixed, predefined responses.

2. Real-Time Data:

  • Built-in subscriptions enable real-time updates. For example, clients can subscribe to changes in specific data, and AppSync automatically pushes updates to connected clients.

3. Offline Support:

  • AppSync provides offline capabilities, allowing apps to function without an internet connection. When the connection is restored, it automatically synchronizes changes.

4. Multiple Data Sources:

  • AppSync can integrate with various AWS services and external data sources, such as:

    • Amazon DynamoDB: For NoSQL database interactions.

    • Amazon Aurora or RDS: For SQL databases.

    • AWS Lambda: For custom logic.

    • Amazon OpenSearch Service: For search and analytics.

    • Amazon S3: For file storage.

  • You can also combine multiple data sources in a single API.

5. Resolvers:

  • Resolvers in AppSync define how GraphQL operations (queries, mutations, subscriptions) interact with the data sources.

  • AppSync supports two types of resolvers:

    • VTL Resolvers: Use Velocity Template Language to map GraphQL requests to backend data sources.

    • Lambda Resolvers: Use AWS Lambda functions for custom logic.

6. Security:

  • AppSync supports several authentication and authorization mechanisms:

    • AWS Identity and Access Management (IAM).

    • Amazon Cognito for user pools and identity pools.

    • API Keys for public or development access.

    • OIDC Providers for custom authentication.

7. Integration with Amplify:

  • AppSync integrates seamlessly with AWS Amplify, allowing you to generate and manage GraphQL APIs from the Amplify CLI.

Poster

R

Risqi Ikhsani

January 20th, 2025

Reach Us

Speak with Our Friendly Team

We'd love to assist you. Fill out the form or drop us an email.

Email Us

Our team is ready to assist.

hello@mytimcorp.com

Call Us

We're available Mon-Fri, 9am-5pm.

+62 21 2953 8953