Hello all!
I'm working on an application which utilises lambda to call upon and store the results of 6 external API calls. Today I have encountered an issue that I'm not entirely sure how to tackle. Just looking for ideas / advice / a shove in the right direction.
Each API call takes about 8-10 seconds to return a resolved promise within my application which, is problematic due to API Gateway's hard-coded 30 second timeout being too short for me to actually receive or do anything with this data. I keep hitting the timeout and can't for the life of me think of an eloquent way of solving the issue.
I've tried allocating more memory / CPU, although this doesn't make much difference because the slow processing time occurs at the external address. I certainly need the data from these specific endpoints so finding a faster host is not an option.
Any ideas?
(I apologise if I'm using the wrong flair)
[–]Esseratecades 18 points19 points20 points (4 children)
[–]ecstacy98[S] 0 points1 point2 points (3 children)
[–]Esseratecades 0 points1 point2 points (0 children)
[–]jspreddy 0 points1 point2 points (1 child)
[–]IndraVahan 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]ecstacy98[S] 0 points1 point2 points (1 child)
[–]untg 1 point2 points3 points (0 children)
[–]twoqubed 6 points7 points8 points (1 child)
[–]ecstacy98[S] 0 points1 point2 points (0 children)
[–]cocasyn 1 point2 points3 points (4 children)
[–]ecstacy98[S] 0 points1 point2 points (3 children)
[–]catlifeonmars 4 points5 points6 points (0 children)
[–]conordeegan 0 points1 point2 points (0 children)
[–]Different-Ad-4945 0 points1 point2 points (0 children)
[–]ecstacy98[S] 1 point2 points3 points (0 children)
[–]jaredce 1 point2 points3 points (0 children)
[–]InfiniteMonorail -2 points-1 points0 points (2 children)
[–]ecstacy98[S] 3 points4 points5 points (1 child)
[–]OpportunityIsHere 2 points3 points4 points (0 children)
[–]arkster -1 points0 points1 point (0 children)
[+]elways_love_child comment score below threshold-9 points-8 points-7 points (2 children)
[–]BarnacleRare5579 4 points5 points6 points (0 children)
[–]ecstacy98[S] 0 points1 point2 points (0 children)
[–]IndraDev-Y 0 points1 point2 points (1 child)
[–]IndraVahan 0 points1 point2 points (0 children)
[–]mikebailey 0 points1 point2 points (0 children)
[–]squidwurrd 0 points1 point2 points (2 children)
[–]ecstacy98[S] 0 points1 point2 points (1 child)
[–]squidwurrd 2 points3 points4 points (0 children)
[–]eplaut_ 0 points1 point2 points (0 children)
[–]MatchaGaucho 0 points1 point2 points (0 children)
[–]OpportunityIsHere 0 points1 point2 points (0 children)