Memi: Our next topic is monitoring.
Using monitoring, you can get the status of your API
and you can know whether there are any problems with it
or whether there are developing problems with the API.
Now to understand the importance of monitoring
let's have a little game.
What do you think is the cost of downtime at Amazon?
So if the Amazon website will go down
how much will Amazon lose?
Take a few seconds to think about it
and let's see the answer.
So Forbes digital calculation for us
and based on Amazon's financial reports, it found out
that if the Amazon's website will go down for 13 minutes
then Amazon will lose $2,646,501
and that for 13 minutes downtime.
Now, that's right.
Not all of us are Amazon,
but still having our API not working
will definitely impact our client's experience
and we don't want that to happen.
So monitoring is the solution for such downtime.
With monitoring, we can know
about problems before they occur.
So for example, if we see the CPU utilization is climbing
or the memory, the RAM is going higher and higher
or a heavy load is developing on the API
then we can know something bad might be happening.
In addition, if we didn't catch the problem on time
then monitoring will let us know
that there is currently a problem and
that some or all of our API is not working.
In addition, monitoring can provide us
with general information of what's going on with our API.
For example, how many users are using it,
where are they from, what are they doing, et cetera.
It's important to understand
that monitoring is not nice to have addition to the API.
It is very important because our clients expect the API
to always work no matter what.
The same way that we expect websites such
as Amazon or Netflix to simply work and we don't care
about server outages or software bugs or things like that.
This is what we want our clients to think about our API.
So it should simply work.
And in order to do that, we have to have monitoring
because without monitoring it won't happen.
Our API will not just work.
So monitoring is really, really important
and we must implement it for our API.