API Gateway supports designing APIs in two different protocols—Representational State Transfer (REST) and WebSocket. The REST endpoints exposed by the API Gateway service adhere to standard HTTP protocol and methods and allow for the creation of completely stateless client-server communication to exchange information between application components, microservices, and different types of integrated devices. The WebSocket endpoints, on the other hand, allow for the creation of stateful, full-duplex APIs that also allow the routing of any incoming messages based on the message content.
For example, any application that performs transactions in an asynchronous manner can make great use of the RESTful API. REST is fast and stateless and all connection state is maintained outside the API itself. For example, in a website that tracks shipping across the world...