WebSockets & #api Gateway
▻https://hackernoon.com/websockets-api-gateway-9d4aca493d39?source=rss----3a8144eabfe3---4
A quick, hands-on demo2018 was the year I won many imaginary arguments about why a #serverless #websocket API Gateway will never work. I was wrong.Before I atone, let me explain: serverless patterns work best when state is separated from execution logic, but I argued that the two are inseparable in real-time applications, pertaining to connection state. So when the API Gateway team announced WebSocket support at re:Invent, I was eager to learn more.Let’s refactor a simple real-time app into a serverless real-time app and deploy it to a WebSocket API Gateway.Hello HelloWe begin with a simple NodeJS client that talks to wss://echo.websocket.org:▻https://medium.com/media/2581597a559d33a586ba0907acd384b8/hrefI’ve also prepared a demo repo:git clone ▻https://github.com/robzhu/ws-demoscd (...)