Skip to content

feat(deployments): add deployment log streaming with server-sent events#679

Open
victorisiguzoruzoma874 wants to merge 1 commit into
StellerCraft:mainfrom
victorisiguzoruzoma874:feat/issue-069-deployment-log-sse-streaming
Open

feat(deployments): add deployment log streaming with server-sent events#679
victorisiguzoruzoma874 wants to merge 1 commit into
StellerCraft:mainfrom
victorisiguzoruzoma874:feat/issue-069-deployment-log-sse-streaming

Conversation

@victorisiguzoruzoma874
Copy link
Copy Markdown

@victorisiguzoruzoma874 victorisiguzoruzoma874 commented May 27, 2026

Summary

  • Add SSE endpoint for real-time deployment log streaming
  • Stream new log entries with 2-second polling intervals
  • Implement heartbeat mechanism (30-second intervals)
  • Handle client disconnection and resource cleanup
  • Support optional filtering via since parameter

Implementation Details

  • New endpoint: GET /api/deployments/[id]/logs/stream
  • Streaming response with CORS headers
  • Automatic stream termination after 24 hours
  • Comprehensive test coverage for connection lifecycle

closes #605

- Add SSE endpoint for real-time log streaming at /api/deployments/[id]/logs/stream
- Stream new log entries as they are appended with 2-second polling
- Handle client disconnection and resource cleanup
- Include 30-second heartbeat events to prevent connection timeouts
- Limit stream duration to 24 hours
- Add comprehensive test coverage for stream initialization and cleanup

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@victorisiguzoruzoma874 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Engineer Deployment Log Streaming Infrastructure with Server-Sent Events

1 participant