Skip to main content

What is AWS AppSync?

Understand managed GraphQL and event APIs with AWS AppSync, including schemas, resolvers, data sources, real-time updates, caching, and authorization.

What is AWS AppSync?

AWS AppSync is a managed service for building GraphQL APIs and event-driven real-time APIs. For GraphQL, a typed schema defines the contract and resolvers connect fields to data sources such as Lambda, DynamoDB, and HTTP endpoints; AppSync manages the API endpoint, request execution, subscriptions, and service scaling.

How this topic fits

APIs & integration

Design REST, HTTP, WebSocket, and GraphQL interfaces with explicit contracts, authorization, throttling, and backend integrations.

Start with the GraphQL contract

A GraphQL schema defines types, queries, mutations, and subscriptions. Clients ask for fields from that contract, while resolvers determine how each field is read or changed in the underlying systems.

The schema is an application boundary, not a direct copy of database tables. Design it around stable domain operations, validate input, and prevent consumers from depending on storage details that need to evolve.

Choose direct and function-backed resolvers

AppSync can integrate directly with supported data sources or call Lambda and HTTP services. Direct integration can remove code for straightforward reads and writes, while a function or pipeline resolver can enforce more complex business behavior.

Keep authorization and invariants visible. Fewer functions do not automatically mean simpler ownership if resolver logic becomes fragmented or difficult to test.

Plan real-time delivery and offline behavior

GraphQL subscriptions can publish updates to connected clients after mutations. Event APIs can provide managed WebSocket channels for publish-and-subscribe use cases without requiring a GraphQL schema.

Real-time delivery needs connection authorization, channel or subscription boundaries, disconnect handling, client resynchronization, and an authoritative data source. A pushed event should not be the only copy of important state.

Control authorization, query work, and caching

AppSync supports several authorization modes, and field-level rules may be needed when one schema serves different identities. Limit query depth, complexity, result size, and expensive resolver paths before public traffic discovers them.

Use caching only where freshness rules are clear. Observe resolver latency, errors, authorization failures, throttling, and downstream capacity so a flexible client query cannot become uncontrolled backend work.

Go deeper with AWS

Read the primary AWS documentation behind the service definitions and architecture guidance in this guide.

Explore serverless products

Questions about this topic

Browse all serverless concepts

Explore compute, APIs, events, workflows, data, security, reliability, operations, delivery, and AI from one connected AWS serverless learning path.

What is serverless?

Learn what serverless computing means, how it works on AWS, what the cloud provider manages, and which trade-offs still belong to your team.

Read the guide

What is AWS Lambda?

Understand how AWS Lambda runs code, how functions are invoked, where permissions and state live, and when Lambda is a good compute choice.

Read the guide

What is serverless architecture?

Learn how managed compute, APIs, events, queues, workflows, data, identity, and observability fit together in a serverless architecture on AWS.

Read the guide

AWS serverless security

A practical guide to identity, least privilege, event validation, secrets, data protection, dependencies, and incident visibility in AWS serverless systems.

Read the guide

What is agentic AI?

Learn what makes an AI system agentic, how models, tools, memory, orchestration, identity, and evaluation fit together, and where serverless patterns help on AWS.

Read the guide

What is cloud computing?

Understand how on-demand infrastructure and managed services change the way teams provision, scale, pay for, and operate software systems.

Read the guide

What is event-driven architecture?

Learn how producers, routers, and consumers communicate through events, and how to design schemas, delivery, retries, and ownership deliberately.

Read the guide

What is a serverless API?

Understand the request path, authentication, routing, compute, data, throttling, observability, and failure controls behind a serverless API on AWS.

Read the guide

What are serverless workflows?

Learn when explicit workflow state improves retries, branching, parallel work, human approval, visibility, and recovery in distributed applications.

Read the guide

What is Amazon API Gateway?

Learn how API Gateway creates, publishes, secures, monitors, and operates HTTP, REST, and WebSocket APIs for AWS and external backends.

Read the guide

What is Amazon EventBridge?

Understand EventBridge event buses, rules, pipes, schemas, targets, schedules, permissions, delivery, and recovery in event-driven AWS systems.

Read the guide

Make the next serverless decision explicit.

Explore focused products for repeatable work, or bring the architecture decision that needs context and experienced review.