In this video, we are going to take a look at how to improve the response time of your API by applying different types of caching.
- [Gergo] Hi, and welcome to the second video…of the fourth section: HTTP Caching.…In the previous video we looked at how authentication…can be implemented in a Web application…and in the RESTful API.…In this video we are going to take a look…at the details of caching,…what type of caching can be used…in a Web application and in an API.…We will explore how to use ETags for cache control.…ETag, also called an Entity Tag,…is an identifier that uniquely identifies a request.…This can be computed based on the resource hash…and the timestamp.…
The cache is a component of a software…or a system which stores the item…in order to serve future requests faster.…There are many types of caching;…one of the most widely-used one…and supported by all the browsers are the ETag-based caches.…ETags are HTTP headers which store information…about how long is the information sent in response,…valid, and can be reused.…ETags needs to be configured under…servers you are deploying for.…For example, Apache, IIS engines.…
Application-level caches are more complex to handle,…
Regardless of platform, you will need to build APIs to serve data between different client applications and endpoints. Good APIs are a necessity for web and mobile projects, especially with the modern, mobile-first approach to development. This course delivers the fundamental knowledge required to enable highly connected interactions between applications via RESTful web APIs. Follow along with Gergo Bogdan and learn how to build up and structure an effective web API that can be used by any client application accessing it over HTTP, using Flask, the Python microframework.
Find out how to implement CRUD operations using SQLAlchemy and MySQL as the data store. Get an understanding of how REST works relative to APIs, and learn how to test APIs written in Python with the support of Flask. Explore token-based authentication and find out how to store passwords securely in your database. Along the way, Gergo introduces best practices and design guidelines when building large applications.
- Setting up Flask
- Using Flask templates and routing
- Implementing CRUD operations
- Implementing pagination
- Configuring RESTful authentication
- HTTP caching
- Securing web APIs
- Testing the application