umrndem commented on issue #22964: URL: https://github.com/apache/beam/issues/22964#issuecomment-7227779223
hi everyone, i'd like to work on the deferred-read part of [#22964](https://github.com/apache/beam/issues/22964). i have a local prototype that adds `ReadLater` hints for value, bag and combining state through an optional provider capability. it reuses the Fn State channel's request/response routing, while decoding and transaction replay stay on the processing goroutine. existing providers keep working. the first version reads ahead one page per hinted state. repeated hints reuse the pending request. a bag append finishes the pending snapshot before writing, and a clear discards the speculative read. it also handles cancellation without closing the shared state channel. the Go core tests, race checks and 13 Prism state integration tests pass. a synthetic benchmark with four independent reads and 1 ms response latency drops from about 4.50 ms to 1.225 ms. i haven't measured production pipeline throughput. does the optional provider capability and one-page read-ahead seem reasonable for a first PR? i'd particularly appreciate feedback on whether bag appends should wait for the pending snapshot. automatic prefetching and cross-bundle caching would stay separate. thanks! -- 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]
