Okay, let's examine how API gateway works closely and briefly talk about this in this lecture. So API gateway acts as a gatekeeper between consumers and consumers can be a web of mobile applications, IoT devices. So those consumers and micro services or other AWS services, as this is indicated in this diagram. You can create, publish, maintain monitor and secure API at any scale. And I have been emphasizing throughout this course, we don't have to worry about any infrastructural challenges. AWS does all automatically scale it up and down as per the traffic, you can cache your frequent API calls so they don't go to your services and DB all the time.
In fact, you can use API gate with caching feature to cache your data don't change often. Also, cloud watch captures details on All the API calls that are being made. And those can be analyzed further. And you can find further details about those API logs, calls and everything, what lambda functions and every detail you can find and drill it down in the cloud watch logs. So let's create a couple of endpoints for our inventory application.