Skip to content

Concurrency Handling #11

Open
Open
@StephanGeorg

Description

@StephanGeorg

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:

  1. Concurrency Handling: Does httpclient handle multiple requests concurrently, and if so, are there any built-in limits on simultaneous requests?
  2. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions