aws appsync在Websocket上进行查询,突变和订阅(没有休息)?
我已经成功地使用了Apollo Server + GraphQl-WS使用WebSocket作为整个网络传输(所有查询,突变和订阅)。这与AWS Appsync有可能吗?还是AWS AppSync仅允许使用Websocket进行订阅,并且所有查询/突变都通过REST请求使用?
允许查询和突变可以越过Websocket(已经连接以供订阅)为Web和移动客户端之间的两条通信提供了很多门。
I've been successful with Apollo Server + graphql-ws for using a websocket as the entire network transport (all queries, mutations, and subscriptions). Is this possible to do with AWS AppSync? Or does AWS AppSync only allow use of the websocket for subscriptions and all queries/mutations go via REST requests?
Allowing queries and mutations to go over the websocket (which is already connected for subscriptions) opens up a lot of doors for very quick two way communication between web and mobile clients.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论