Clayton
07/23/2021, 7:25 PMRoss Coundon
07/23/2021, 7:38 PMOmi Chowdhury
07/23/2021, 8:07 PMFor an app like this would you recommend against using EventBridge or AppSync for any reason?Depending on how complicated your API is - you could run into AppSync’s limitations. For my current API I couldn’t run it directly against my DB or running a lambda - per - resolver would be too slow. But simpler APIs would probably work just fine and you can later switch over to running Apollo or something
Any recommendations of best practices for using SQS or SNS in combination with EventBridge?Yeah any time I need an event processed by a lambda, it goes via SQS. That helps with retries, batching and theoretically handling back pressure (never needed to use it for that myself)
Omi Chowdhury
07/23/2021, 8:08 PMFrank
Clayton
07/23/2021, 8:58 PMClayton
07/23/2021, 9:07 PMRoss Coundon
07/23/2021, 9:09 PMRoss Coundon
07/23/2021, 9:10 PMClayton
07/23/2021, 9:11 PMOmi Chowdhury
07/23/2021, 9:14 PMClayton
07/23/2021, 9:17 PMOmi Chowdhury
07/23/2021, 9:19 PMOmi Chowdhury
07/23/2021, 9:20 PMOmi Chowdhury
07/23/2021, 9:23 PMClayton
07/23/2021, 9:23 PMOmi Chowdhury
07/23/2021, 9:24 PMClayton
07/23/2021, 9:25 PMOmi Chowdhury
07/23/2021, 9:26 PMClayton
07/23/2021, 9:27 PMOmi Chowdhury
07/23/2021, 9:31 PMit sounds like single table performance may not be a factor if you’re using a GraphQL API since it has to resolve each field separately any how, right?not sure I follow on that - you want to concentrate writes to a single table because dynamo scales depending on load across the table. The more dynamo scales out the faster things get as more nodes are allocated to that table (assuming you don’t have a hot partition problem). Were you getting at batch getting items from the DB?
Omi Chowdhury
07/23/2021, 9:32 PMWithout an SQS queue in the frontend → DB path how do you handle errors / retries?If its a frontend (or in our case usually a customer’s backend) - if there’s an error it should be propagated up, let the client decide what to do with it. Are you running async jobs?
Clayton
07/23/2021, 9:35 PMClayton
07/23/2021, 9:37 PMAre you running async jobs?Re from FE/user, I’m not 100% certain yet but could imagine I might for processing that takes more than a mere lookup
Clayton
07/23/2021, 9:37 PMOmi Chowdhury
07/23/2021, 9:45 PMOmi Chowdhury
07/23/2021, 9:49 PMClayton
07/23/2021, 9:57 PMClayton
07/23/2021, 10:07 PMOmi Chowdhury
07/23/2021, 10:13 PMOmi Chowdhury
07/23/2021, 10:14 PMPatrick Young
07/24/2021, 3:44 AMMuhammad Ali
07/24/2021, 4:03 AMClayton
07/24/2021, 8:11 PMI am not sure if you really need appsync here. a simple apigateway would work.Muhammad, you’re referring to implementing a standard REST API with discrete endpoints instead of a GraphQL one, right?
Muhammad Ali
07/25/2021, 1:39 PMOmi Chowdhury
07/25/2021, 4:14 PMOmi Chowdhury
07/25/2021, 4:19 PM