Here’s a quick way to hit your api with a lot of requests in parallel using F# .
#r "nuget: FsHttp"
open FsHttp
[|1..1000|]
|> Array.Parallel.map (fun x ->
(x, http {
GET "https://{your-url}/api/"
//AuthorizationBearer ""
// add a custom header if you need: this is needed for Azure Functions header "X-Functions-Key" ""
body
jsonSerialize x
}
|> Request.send)
)
|> Seq.iter (fun (org, response) ->
let contentValue = Response.toString (Some 9000) response
printfn "Request: %A | Status Code: %A | Response Content: %A" org response.statusCode contentValue
)
Please consider using Brave and adding me to your BAT payment ledger. Then you won't have to see ads! (when I get to $100 in Google Ads for a payout, I pledge to turn off ads)
Also check out my Resources Page for referrals that would help me.