amitbar101 opened a new issue, #45761:
URL: https://github.com/apache/arrow/issues/45761
### Describe the usage question you have. Please include as many useful
details as possible.
I'm using a Python Flight server which comes with the built-in RPCs which
defined at the `Flight.proto` file.
However, I want to add a new RPC similar to `DoGet`, but with a different
return type.
For example:
```protobuf
rpc DoGet(Ticket) returns (FlightData) {}
```
Unlike `DoGet`, this RPC does not return a stream but a single `FlightData`
message.
I found a [C++
example](https://github.com/apache/arrow/blob/main/cpp/examples/arrow/flight_grpc_example.cc)
that registers a gRPC service alongside a Flight service, allowing both to be
accessed on the same port. However, my goal is to integrate a new RPC directly
into the Flight server rather than running two separate services.
- It is possible to modify or extend the `FlightServerBase` to support a
new RPC while keeping it part of the Flight protocol?
- If not, is the only way to achieve this by running it separately, like
in the C++ example? What are the consequences of implementing it this way
(serving each server on different threads)?
I’d appreciate any guidance on the best approach for achieving this in
Python. Are there any examples or best practices to follow?
Thanks!
### Component(s)
Python, FlightRPC
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]