Skip to content

Design doc: SSE (text/event-stream) framing for event streams#3229

Open
goelakash wants to merge 2 commits into
smithy-lang:mainfrom
goelakash:sse-event-streams-design
Open

Design doc: SSE (text/event-stream) framing for event streams#3229
goelakash wants to merge 2 commits into
smithy-lang:mainfrom
goelakash:sse-event-streams-design

Conversation

@goelakash

@goelakash goelakash commented Jul 24, 2026

Copy link
Copy Markdown

Issue #, if available: #3222 (discussion: #3221)

Description of changes:

Design proposal for smithy.protocols#sseJson: framing response event streams as Server-Sent Events (text/event-stream) with JSON payloads, reusing the existing @streaming union model unchanged. Motivated by agent/LLM services (AG-UI, MCP, OpenAI-style APIs) whose browser clients can't consume application/vnd.amazon.eventstream.

Opening as a draft for design discussion.

References

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request does not contain a staged changelog entry. To create one, use the ./.changes/new-change command. For example:

./.changes/new-change --pull-requests "#3229" --type feature --description "Design doc: SSE (text/event-stream) framing for event streams"

Make sure that the description is appropriate for a changelog entry and that the proper feature type is used. See ./.changes/README or run ./.changes/new-change -h for more information.

Proposes smithy.protocols#sseJson, a protocol that frames response
event streams as Server-Sent Events (text/event-stream) with JSON
event payloads, reusing the existing @streaming union model.
@goelakash
goelakash force-pushed the sse-event-streams-design branch from d1f10fc to 1b7d88e Compare July 24, 2026 01:02
@goelakash
goelakash marked this pull request as ready for review July 24, 2026 01:29
@goelakash
goelakash requested a review from a team as a code owner July 24, 2026 01:29
@goelakash
goelakash requested a review from JordonPhillips July 24, 2026 01:29
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.

1 participant