Posted On: Jan 11, 2022
AWS AppSync is a managed GraphQL service that simplifies application development by letting you create a flexible API to securely access, manipulate, and combine data from one or more data sources. Today, we are happy to announce that AppSync now supports eviction of specific entries from AppSync’s built-in server-side cache.
AppSync’s server-side caching feature can be used to help improve the performance of latency-sensitive and high-throughput applications by allowing developers to store and fetch data from a fast, in-memory, managed cache. Before today, customers could invalidate cache entries by flushing the entire cache, but could not invalidate specific entries. Now, developers have access to a new VTL extension in their AppSync resolver code that they can use to invalidate specific entries. For example, a developer can now update backend data via a GraphQL mutation and invalidate a cached query in a single AppSync operation. A developer can also set up a backend process to trigger a mutation with a NONE resolver to evict entries when data is changed out of band. The next time the related query is invoked, it fetches fresh data from the backend data source, which is then cached.
You can start using this new functionality in all AWS regions where AppSync is available. For more details, refer to our blog post and the AppSync documentation.