Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5189

Add support for constant HTTP path prefixes to Avatica server

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • avatica-1.23.0
    • avatica
    • None

    Description

      Some load balancers, such as those based on Kubernetes ingress rules, can only route requests based on HTTP path. To support hosting an Avatica server behind such a load balancers, the driver should support prepending all HTTP request paths with a constant (configurable) prefix, and the server should support stripping that constant prefix from all requests is receives.

      On the server side, this can either be done as a piece of middleware (A handler wrapper that just strips the prefix then delegates to the real handler), or by modifying the existing 2 handlers (AvaticaProtobufHandler and AvaticaJsonHandler) to ignore the prefix (without duplicating code). I'm leaning toward the former, since it would obviate the need to worry about it in any custom / future handlers.

      Attachments

        Activity

          People

            wnoble Will Noble
            wnoble Will Noble
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: