-
Notifications
You must be signed in to change notification settings - Fork 152
How to enable Gzip or Zstd compression on Arrow Flight Service #944
Answered
by
lidavidm
vishramachandran
asked this question in
Q&A
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.
All reactions
Answered by
lidavidm
Jan 5, 2026
Use gRPC directly:
arrow-java/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightGrpcUtils.java
Lines 127 to 142 in 385b51e
/**
* 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
Use gRPC directly:
arrow-java/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightGrpcUtils.java
Lines 127 to 142 in 385b51e
/**
* 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);
}
All reactions
-
👍 1
0 replies
Answer selected by
vishramachandran
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment