Performance: Stream review results via SSE instead of polling #96
tailorgunjan93
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Performance: Replace Polling with Streaming (SSE)
Problem
The current review flow uses
ReviewPoll()— a polling loop that repeatedlyhits the LiveReview backend until results are ready. This creates:
Proposed Solution
Switch to Server-Sent Events (SSE) for streaming inline comments
as the AI generates them — similar to how ChatGPT streams responses.
User Experience Difference
Implementation Approach
Backend — LiveReview API adds an SSE endpoint:
CLI — Replace
ReviewPoll()loop with SSE client:Browser UI — Already JS-based,
EventSourceAPI is native:Benefits
Beta Was this translation helpful? Give feedback.
All reactions