Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: AppSync Enhanced Enhanced Subscriptions Filtering #291

Open
cbaron opened this issue May 19, 2023 · 0 comments
Open

RFC: AppSync Enhanced Enhanced Subscriptions Filtering #291

cbaron opened this issue May 19, 2023 · 0 comments
Labels
feature-request New feature or request

Comments

@cbaron
Copy link

cbaron commented May 19, 2023

The current enhanced subscriptions filtering is great -- thank you AppSync. I feel that the current system is cost prohibitive. Here is my use case.

There is a set of places we monitor. Every minute or so we want to publish information about each space so that subscribers have the option of getting real time information about a space. Upon implementing a mutation for each space every minute or so, we found the cost of making individual requests too high.

We could save money and electricity if we were able to publish this information in batches. The problem with that though is that I cannot use enhanced subscriptions filtering to get one item from a batch.

input Data {
  locationId: Int!
  datum1: Int!
  datum2: Int!
}

type Mutation {
  PublishData(batchId: Int!, data: [Data!]!): PublishDataOutput!
}

type PublishDataOutput {
 batchId: Int!
 data: [Data!]!
}

type Subscription {
  RealtimeData(batchId: Int!, datum1: Int!): PublishDataOutput
    @aws_subscribe(mutations: ["PublishData"])
}

It would be great to be able to have the subscription return a subset of data in the list based on the arguments.

@onlybakam onlybakam added the feature-request New feature or request label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants