Create Real Time Event Driven Apps Wamazon Eventbridge Aws Appsync Fwm315

Title

AWS re:Invent 2022 - Create real-time, event-driven apps w/Amazon EventBridge & AWS AppSync (FWM315)

Summary

  • Introduction: Venugopalan Vasudevan, a Senior Specialist Solutions Architect with AWS, presents on creating real-time, event-driven applications using Amazon EventBridge and AWS AppSync.
  • GraphQL Overview: GraphQL is a query language for APIs that allows clients to request exactly what they need, and nothing more. It supports queries, mutations, and subscriptions.
  • AWS AppSync: A serverless, fully managed solution for running GraphQL workloads on AWS. It provides real-time and offline capabilities and can connect to various data sources like DynamoDB, Aurora, OpenSearch Service, and more.
  • Real-Time Use Cases: AppSync enables real-time applications such as live sports scores, stock quote updates, connected homes, geolocation tracking, e-learning, and social media interactions.
  • AppSync Components: Includes schema files, data sources, resolvers (now supporting JavaScript), and multiple security methods.
  • Real-Time with AppSync: Utilizes GraphQL subscriptions to push data to connected clients, managing connection and scalability automatically.
  • Filtering and Invalidation: AppSync supports client and server-side filtering to ensure only relevant data is sent to clients. Invalidation can disconnect WebSocket connections when necessary.
  • EventBridge Integration: EventBridge can route events from various sources to AppSync, enabling real-time updates across loosely coupled systems.
  • Demo: Showcased a serverless to-do list application using AWS Amplify, AppSync, DynamoDB, and EventBridge to demonstrate real-time updates and integrations.

Insights

  • GraphQL vs. REST: GraphQL can coexist with REST services and can be used to consolidate data from multiple REST endpoints into a single GraphQL endpoint.
  • Real-Time Applications: The ability to provide real-time updates is crucial for engaging user experiences in applications like e-commerce, media, and IoT.
  • Event-Driven Architecture: EventBridge's integration with AppSync allows for an event-driven architecture that can respond to changes across different systems and update clients in real-time.
  • Filtering and Invalidation: These features are essential for optimizing data delivery to clients and managing WebSocket connections efficiently, especially in scenarios with a large number of connected clients.
  • Getting Started: AWS provides a generic PubSub API in the AWS console and through the CDK, allowing developers to start building real-time applications without deep GraphQL knowledge.
  • Serverless and Scalability: The combination of AppSync and EventBridge showcases the power of serverless architecture, enabling developers to build scalable, real-time applications without managing infrastructure.
  • Demo Relevance: The demo highlighted practical implementation and the seamless interaction between AWS services, reinforcing the concepts discussed in the presentation.