Skip to content

Conversation

@twrichards
Copy link
Collaborator

@twrichards twrichards commented Jun 5, 2025

Despite #363, #352 etc. we're still seeing occasional The IAM authentication failed because of too many competing requests errors and more generally request volumes to database-bridge-lambda via AppSync are really quite spiky, which warranted searching for wasteful calls. This PR eliminates 3 types of wasteful call...

  • only perform getPinboardsByPaths for paths it hasn't already looked-up
  • only call getItemCounts in workflows inline-mode, when the list of pinboardIds actually changes
  • don't make getItemCounts call with empty list in frontsIntegration.tsx

Here we expect no regression in functionality or timeliness of data (counts etc.) but a reduction in calls, ideally smoothing out the spiky request patterns currently and so hopefully eliminating those errors whilst also hopefully saving a little money on AppSync charges.

@twrichards twrichards force-pushed the reduce-AppSync-requests branch from 4483599 to 93f864b Compare June 5, 2025 23:21
@twrichards twrichards force-pushed the reduce-AppSync-requests branch from 93f864b to 8d145c1 Compare June 12, 2025 12:40
@twrichards twrichards changed the base branch from main to add-database-call-logging June 12, 2025 12:40
@twrichards twrichards force-pushed the add-database-call-logging branch from f2fbd69 to 1b60fa8 Compare June 12, 2025 13:13
Base automatically changed from add-database-call-logging to main June 12, 2025 13:16
@twrichards twrichards force-pushed the reduce-AppSync-requests branch from 8d145c1 to 60d4475 Compare June 12, 2025 13:57
@twrichards twrichards force-pushed the reduce-AppSync-requests branch from 60d4475 to 06be4ff Compare June 19, 2025 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants