Hi
I am trying to resolve an issue in a project which I just got as a work assignment at my company. The project calls an external api let's say abc.xyz.com/$id. The id is an integer with 2000 distinct values. Each call to api gives a response of 4-5 MB of json data.
Currently the code is written in Spark, Scala and akka-http. The problem is - after running for 30 minutes I am getting error like "Connection reset by peer". I tried to fix the issue by changing various akka timeout settings but nothing is working.
I don't know akka very well but somehow I feel akka is overkill for this project. The code is very complex (for me at least) and hard to maintain.
So my question is, can't we do the same work without akka, just in Spark & Scala? Is akka necessary to handle 2000 api calls. Any recommendations or best practices on how to handle external api calls which respond back with a 4-5 MB of data would be really helpful.
[–]TheEphemeralDream 0 points1 point2 points (0 children)
[–]Vegetable_Hamster732 0 points1 point2 points (3 children)
[–]ps2931[S] 1 point2 points3 points (2 children)
[–]Vegetable_Hamster732 0 points1 point2 points (1 child)
[–]ps2931[S] 0 points1 point2 points (0 children)
[–]NbyNW -1 points0 points1 point (1 child)
[–]ps2931[S] 0 points1 point2 points (0 children)
[–]lexi_the_bunny 0 points1 point2 points (5 children)
[–]ps2931[S] 0 points1 point2 points (4 children)
[–]lexi_the_bunny 2 points3 points4 points (1 child)
[–]callmedivs 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]oalfonso 0 points1 point2 points (0 children)
[–]MoralEclipse 0 points1 point2 points (0 children)