Open
Description
I am trying to understand how simultaneous HTTP requests are handled within this project and was hoping for some guidance. Specifically, I am interested in knowing:
- Concurrency Handling: Does httpclient handle multiple requests concurrently, and if so, are there any built-in limits on simultaneous requests?
- Queueing and Throttling: Is there any form of queueing or throttling mechanism for high traffic situations, or does it rely on external configuration for these aspects?
Additional Context:
I'm using a MACRO
to do the requests
CREATE OR REPLACE MACRO call_endpoint(a) AS (
SELECT
http_post(
'https://domain.lol/api/endpoint',
headers => MAP {
'accept': 'application/json',
},
params => a
)
AS data);
and then apply it to all rows of a table
SELECT call_endpoint(MAP {
'countryCode': country,
'street': street,
'houseNumber': house_number,
'postCode': postcode,
'locality': city
}) AS output_data
FROM '/path/to/input.csv';
If /path/to/input.csv
would have millions of rows, are all requests fired at the same time?