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

Revert "cap the display and mounting of more than 50 pinboards" #324

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

twrichards
Copy link
Collaborator

@twrichards twrichards commented Nov 21, 2024

Reverts #323 as it didn't solve the problem for the user in question, since it turns out there are three subscriptions per pinboard (onCreateItem, onMutateItem and onSeenItem) and the user had 34 open pinboards so collectively they exceeded AppSync's 100 subscription (per client) limit.

Instead we're going to consolidate into shared subscriptions listening to ALL pinboards and ignore irrelevant events, this should also mean we can stop polling for item counts (and instead fetch the aggregated item counts whenever there's a message on any pinboard), which should (given pinboards limited usage) reduce costs overall - see #325

FYI @paperboyo

@twrichards twrichards force-pushed the revert-323-handle-too-many-open-pinboards branch from ade771e to 0703eb0 Compare November 23, 2024 11:08
@twrichards twrichards changed the base branch from main to fronts-integration November 23, 2024 12:03
@twrichards twrichards force-pushed the revert-323-handle-too-many-open-pinboards branch from 0703eb0 to 761268e Compare November 25, 2024 12:43
Base automatically changed from fronts-integration to main November 25, 2024 12:50
@twrichards twrichards force-pushed the revert-323-handle-too-many-open-pinboards branch from 761268e to 01db149 Compare November 25, 2024 12:54
@twrichards twrichards marked this pull request as ready for review November 25, 2024 12:54
@twrichards twrichards requested a review from a team as a code owner November 25, 2024 12:54
@twrichards twrichards merged commit d6057c0 into main Nov 25, 2024
3 checks passed
@twrichards twrichards deleted the revert-323-handle-too-many-open-pinboards branch November 25, 2024 13:04
@prout-bot
Copy link
Collaborator

Seen on PROD (merged by @twrichards 3 minutes and 17 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants