You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "ianmcook (via GitHub)" <gi...@apache.org> on 2024/03/04 19:24:39 UTC

[PR] Add simple HTTP GET examples [arrow-experiments]

ianmcook opened a new pull request, #1:
URL: https://github.com/apache/arrow-experiments/pull/1

   This PR contains some basic examples of HTTP client and server implementations in several languages, to facilitate the discussion at https://lists.apache.org/thread/vfz74gv1knnhjdkro47shzd1z5g5ggnf.
   
   In these examples, the client makes a GET request to the server, and the server responds with an IPC stream of Arrow record batches. Later we will also have examples in which the client makes a PUT or POST request to send Arrow record batches to the server.
   
   To enable performance comparisons to Arrow Flight RPC, the server examples generate the data in exactly the same way as in [`flight_benchmark.cc`](https://github.com/apache/arrow/blob/7346bdffbdca36492089f6160534bfa2b81bad90/cpp/src/arrow/flight/flight_benchmark.cc#L194-L245) as cited in the [original blog post introducing Flight RPC](https://arrow.apache.org/blog/2019/10/13/introducing-arrow-flight/). But note that Flight example sends four concurrent streams.
   
   Currently there are two server examples
   - **Go**  &nbsp;(thanks @zeroshade for your help)
   - **Python** &nbsp;(thanks @paleolimbot for your help)
   
   Currently there are six client examples; I have verified that they all work with the Go and Python server examples:
   - **C++** &nbsp;(thanks @kou for your help)
   - **Go** &nbsp;(thanks @zeroshade for your help)
   - **Java**
   - **JavaScript** &nbsp;(thanks @domoritz for your help)
   - **Python**
   - **R**
   
   The client examples print timing and data size information.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add simple HTTP GET examples [arrow-experiments]

Posted by "ianmcook (via GitHub)" <gi...@apache.org>.
ianmcook commented on PR #1:
URL: https://github.com/apache/arrow-experiments/pull/1#issuecomment-1991804053

   For reference: there is a version of the Java client example here that writes the resulting IPC stream to a file: https://gist.github.com/ianmcook/f7b76163c69eee151715cb8e0c44d795


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add simple HTTP GET examples [arrow-experiments]

Posted by "ianmcook (via GitHub)" <gi...@apache.org>.
ianmcook merged PR #1:
URL: https://github.com/apache/arrow-experiments/pull/1


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org