I am a newb to Elixir and Phoenix. I have a usecase where I query my DB and get a list of about 5k S3 URLs . The response should be a JSON list of either the binary file or a base64 encoded.
I am using ExAWS.S3.get_object but this is taking too long(in my opinion). I was thinking to use Task.async_stream but I am not sure how to aggregate the responses from the async calls and returning them as the response JSON.
Would appreciate any help.