Skip to content

How AWS AppSync handle subscription arguments behind the scenes?

0

For security compliance, my team wonders how AWS AppSync handles subscription arguments behind the scenes.

  • Are the arguments stored in the Appsync memory temporarily, and are they disposed of after disconnection and unsubscribing?
  • Will it store the arguments indefinitely?

Your answer is appreciated.

    1. Arguments passed to AppSync are processed during the lifecycle of a request and are not stored in AppSync memory permanently. After a request (query, mutation, or subscription setup) is processed, the arguments are effectively disposed of, and once a client disconnects or unsubscribes, no state is retained.

    2.AWS AppSync does not store arguments indefinitely. They are processed in real-time during each request and are discarded once the operation is completed. To persist data for long-term storage, you must use a separate AWS service like DynamoDB, S3, or RDS.

1 Answer
0
Accepted Answer

Hey Ben,

To answer your first bullet point, yes, subscription arguments are handled temporarily while the subscription is active during the duration of the WebSocket connection. Once, the WebSocket connection is terminated, AppSync automatically disposes of the subscription arguments and any associated data.

The service doesn't store the arguments indefinitely; instead, they are held in memory for as long as they are required for active subscriptions.

Good luck with this service!

Page 698

Using subscriptions for real-time data applications in AWS AppSync

answered 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.