In this video, we are going to talk about API Gateway as a Lambda Synchronous Event sources.
So synchronous commands are request and response.
In a synchronous model, the client makes a request and waits for a response.
API Gateway is a synchronous event source and provides a Solus API proxy to ADA Lambda.
Synchronous commands are a relatively simple interaction to common create, read, update and delete.
That means crud API actions.
The advantage of this approach is the immediate response to our API calls, so we can also use the API
in order to control aspects of the request and the response.
Examples are validating the characteristic of the request before the consumer process it or reformatting
the response before passing to the client.
We can use API gateway in these scenarios.
The disadvantage is that if something goes wrong or takes a long time to the downstream services, the
whole process will be blocked.
So as you can see, that API gateway is a synchronous trigger to a lambda that we will also follow the
use case when developing our serverless microservices CRUD operations.