Skip to content

Navigation Menu

Sign in
Sign up

How to enable Gzip or Zstd compression on Arrow Flight Service #944

Answered by lidavidm
vishramachandran asked this question in Q&A
Discussion options

I have gotten my service to work with Arrow Flight, but need to enable compression.

The FlightServer.Builder and FlightClient.builder constructs don't expose any API for adding compression.

Is this possible? Can I get some pointers?

Generative AI tools are hallucinating on this question with spurious methods to add interceptors and compression on the builders. I don't see them on the Arrow Flight API.

You must be logged in to vote

Use gRPC directly:

/**
* Creates a Flight service.
*
* @param allocator Memory allocator
* @param producer Specifies the service api
* @param authHandler Authentication handler
* @param executor Executor service
* @return FlightBindingService
*/
public static BindableService createFlightService(
BufferAllocator allocator,
FlightProducer producer,
ServerAuthHandler authHandler,
ExecutorService executor) {
return new FlightBindingService(allocator, producer, authHandler, executor);
}

Replies: 1 comment

Comment options

Use gRPC directly:

/**
* Creates a Flight service.
*
* @param allocator Memory allocator
* @param producer Specifies the service api
* @param authHandler Authentication handler
* @param executor Executor service
* @return FlightBindingService
*/
public static BindableService createFlightService(
BufferAllocator allocator,
FlightProducer producer,
ServerAuthHandler authHandler,
ExecutorService executor) {
return new FlightBindingService(allocator, producer, authHandler, executor);
}
You must be logged in to vote
0 replies
Answer selected by vishramachandran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /