Complex computations and accessing external systems (such as relational data stores, for example) could be costly and time consuming. Caching is one of the most effective techniques to mitigate this cost.
- [Instructor] Hi, welcome to Section 7 of the course.…The previous section introduced to us the importance…of unit testing of the web services and APIs written…using terrific Spray framework.…In this section, we will talk about caching…as one of the widely used approach to build high performing…web services and APIs.…In this section, we are going to start off by understanding…what the term "caching" or "cache" means…and justify its place in software systems.…
From the general concepts we would jump right into…caching supports by HTTP protocol and more specifically…the caching techniques used by REST(ful) web services…and APIs. At the very end, we are going to see…what Spray framework can offer with respect to caching…and integrate that into a book catalog web application.…With that, let us move on to the first video of this section…where we are going to get introduced to caching…and how it is being used. Up to this point,…we have heard of the term caching many times…but have not actually been explained what it means…
Embark on an exciting journey into the universe of web development using the Scala programming language and frameworks—natural choices for back-end developers building highly scalable, reliable, and reactive RESTful web services and APIs. This training is the starting point for mastering the nonblocking and asynchronous programming models that lie in the heart of the Spray framework. It starts with an introduction to the REST architecture. Then switch gears to the Akka toolkit and framework, building a sample book catalog application along the way.
Once you've learned about the REST architectural style and Actor model—the foundations that the Spray framework is built upon—you'll shape out your own RESTful web services by providing simple route definitions. Further on in the course, author Andriy Redko delves into authentication and authorization, secure transport, documentation, testing, and caching support. Finally, you will learn how to develop the Spray client API to call external web services.
- The Actor model and Akka framework
- RESTful architecture principles and constraints
- Building RESTful services
- Core Spray framework modules such as spray-can, spray-routing, spray-json, spray-caching, and spray-client
- Securing RESTful web services and APIs with Spray
- Configuring Spray applications with HTTPS support
- Documenting Spray RESTful web services using Swagger
- Caching basics
- Calling external RESTful services