Experiments in bulk inference with TypeSafe’s new model
5 comments
orf1 day ago
While Jev is fast, using it is hardly bottleknecked by deserializing from JSON.
Using arrow is cool, but grpc seems like a more natural fit than arrow IPC and would give you the same benefits.
ianmcook1 day ago
Agreed. With the API as it is today, the bottleneck is the thousands of round trips (one per state). The post is a bit of a "what if" where we're imagining (and hoping!) that TypeSafe adds a batch endpoint, which would take the round trips out of the picture. Then serialization would start to matter, and that's where Arrow would come in
It would be straightforward to wrap this as an Arrow Flight (Arrow over gRPC) endpoint. But it would make it heavier and less browser-compatible.
mihevc1 day ago
If I read the example correctly they are using long living http/2 connection to send arrow IPC. Which seems pretty pragmatic.
Read the full thread on Hacker News →
Related stories
- Hacker News · 1 points · 9 days ago
- Hacker News · 3 points · 3 days ago
- Hacker News · 1 points · 5 days ago
- Hacker News · 7 points · 11 days ago
- Hacker News · 2 points · 6 days ago
- Hacker News · 2 points · about 21 hours ago