Fork me on GitHub
#aws
<
2020-06-21
>
hiredman01:06:49

The order may be an illusion, if they are running in parallel the order of the queries in ids may not match the order of the queries in the analysis tool

hiredman01:06:39

If you can try them truly sequentially one after the other if the queries all take about the same time, then you know it is something about the running in parallel (contention)

ghadi01:06:16

A connection pool in the aws library could make this behavior

hiredman01:06:12

Would time waiting on the connection pool show up in x-ray?

ghadi01:06:09

the x-ray segment is measured locally, I'd assume it includes a period wider than the network traffic

ghadi01:06:20

(like forming the request, signing it...)

ghadi01:06:32

besides map + future isn't always a great pattern. In this case the futures aren't launched until p/all ostensibly forces them

cfleming03:06:25

@ghadi Is there a better way to do this, then? I thought this would have been the poster child for that pattern.

cfleming04:06:18

In case it’s useful, I should also have made clear that this is CLJS on Node, not Clojure on JVM.