-: Performance is one of the most important aspects
of web apps, and specifically web API.
You must make sure your API is fast
in that it provides quick responses for the developers.
Now, why is that?
What makes performance so important for the web API?
Well, this is one of the reasons.
According to Google, 53% of mobile users
abandon sites that take over three seconds to load.
Now, I'm not sure what is the exact number
for API users and not mobile users,
but my guess is they are pretty close.
So your users will simply abandon your API
if it's not fast enough.
So your API must be fast.
Now, it's important to note
that performance is not directly related to the API,
but it is actually related to the underlying code.
So the techniques we are going to discuss
in this section are not strictly about the API,
but more about the code executed underlying it.
But still, these are important techniques
and you must be aware of them.
So let's review some performance techniques
that will probably improve
your API performance significantly.