Will Harding - Cloud Projects

WebSockets Toll Cost

I put all the pieces together for the last project and was proud of what i had done. I then went about trying to break it. Turns out the tollcost API is slower then anticipated, so for Pin Routes scenarios with more than around 20 routes, the API Gateway times out and the connection closes.
So I started playing with WebSockets. This opens a connection and keeps it open, and now the limiting factor is the Lambda function timeout (15 minutes - more than enough)
When this page loads a connection is opened, and when the scenario name is sent it triggers a Lambda function.
Type in a scenario identifier. The request will take a few seconds to complete.