k6 icon indicating copy to clipboard operation
k6 copied to clipboard

Support HTTP long polling

Open imiric opened this issue 6 years ago • 1 comments

A recent support question in Slack brought up testing a SQS endpoint which uses HTTP long polling. k6/http currently only supports synchronous requests, and long polling is a popular feature used by other services as well, so we should look into supporting it.

From a brief discussion with @na--, this will likely require an event loop implementation per VU, which puts us on the road to support promises, async/await, etc., greatly expanding the testing capabilities.

Also see #746 and #779.

imiric avatar Aug 26 '19 08:08 imiric

I'd say that the event loop issue (https://github.com/loadimpact/k6/issues/882) is the js-compat issue, this would just build on top of it. Though I'd also add evaluation needed, since we have to decide on the API eventually.

na-- avatar Aug 26 '19 10:08 na--