Skip to content

Conversation

quetzalliwrites
Copy link
Collaborator

@quetzalliwrites quetzalliwrites commented Aug 22, 2025

Added documentation for WebSocket subscriptions in AWS AppSync using LocalStack, including setup instructions and message types.

Preview URL:
https://9150cac2.localstack-docs.pages.dev/aws/services/appsync/#websocket-subscriptions

Added documentation for WebSocket subscriptions in AWS AppSync using LocalStack, including setup instructions and message types.
@quetzalliwrites quetzalliwrites self-assigned this Aug 22, 2025
@quetzalliwrites quetzalliwrites added the documentation Improvements or additions to documentation label Aug 22, 2025
Copy link

cloudflare-workers-and-pages bot commented Aug 22, 2025

Deploying localstack-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3dcbddb
Status: ✅  Deploy successful!
Preview URL: https://4588a77d.localstack-docs.pages.dev
Branch Preview URL: https://docs-websocket-subscriptions.localstack-docs.pages.dev

View logs

@quetzalliwrites quetzalliwrites changed the title docs: document WebSocket subscriptions for AppSync docs: WebSocket subscriptions for AppSync Aug 22, 2025
Copy link
Contributor

@cloutierMat cloutierMat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Lots of great work there! Thank you.

As we discussed, I am still unsure of the overall structure.

Possible change:

  • GraphQL API
    • Getting Started
    • GraphQL resolvers
    • Subscriptions (this could have the intro paragraph and the supported message types
    • Subscription Example (not too sure of the name
    • Configuring GraphQL endpoints
    • GraphQL Resource Browser

It is not ideal either 🫤 WDYT?

Co-authored-by: Mathieu Cloutier <79954947+cloutierMat@users.noreply.github.com>
@quetzalliwrites
Copy link
Collaborator Author

quetzalliwrites commented Aug 25, 2025

Possible change:
GraphQL API
Getting Started
GraphQL resolvers
Subscriptions (this could have the intro paragraph and the supported message types
Subscription Example (not too sure of the name
Configuring GraphQL endpoints
GraphQL Resource Browser

Ok, so having supported message types in the intro deviates from the current order & outline we observe in this doc which has individual endpoint headings. I don't think that part makes sense crammed into the intro.

That said, I've made some adjustments in line with some of your suggestion above!

Do you think the WebSocket Subscriptions should be h2, same level as GraphQL and Events API? Or do you think it should be h3?

Screenshot 2025-08-25 at 8 10 27 PM

Preview URL: https://4d703999.localstack-docs.pages.dev/aws/services/appsync/

cc @cloutierMat

Copy link
Contributor

@cloutierMat cloutierMat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @quetzalliwrites for addressing the previous comments! I think we are getting close, but I do have more suggestions that could improve the flow of the docs 😄

I personally think it should be H3, as it is a subset of GraphQl Apis. I don't think we should put that much emphasis on GraphQl WebSockets.

I also think that we shouldn't have both Configuring WebSocket Subscription endpoints and Configuring GraphQL endpoints as the WebSocket endpoint is just part of GraphQl APIs.

  • GraphQL API
    • Getting Started
    • GraphQL resolvers
    • WebSocket Subscriptions
    • Supported WebSocket Message Type
    • Configuring GraphQL endpoints (including WS endpoint)
    • GraphQL Resource Browser

I think this hierarchy gives the user quick links to get where they need to. Having 2 h3 for WebSockets inside of GraphQl API seems plenty to me. And both endpoint style should fall in the same category, since they both answer the same question from a user.

Let me know if you have a good argument for keeping WebSocket Subscriptions as H2. But If we do, we should bring Configuring GraphQL endpoints and GraphQL Resource Browser in GraphQL API, which might make the flow a bit more bouncy?

@localstack localstack deleted a comment from cloutierMat Aug 26, 2025
quetzalliwrites and others added 2 commits August 26, 2025 13:10
Co-authored-by: Mathieu Cloutier <79954947+cloutierMat@users.noreply.github.com>
Copy link
Contributor

@cloutierMat cloutierMat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Awesome! Thanks for the good back and forth! This looks great!

@quetzalliwrites quetzalliwrites merged commit 1efbcbc into main Aug 26, 2025
1 check passed
@quetzalliwrites quetzalliwrites deleted the docs-websocket-subscriptions-appsync branch August 26, 2025 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants