In the modern web architecture, HTTP servers and clients play a key role in exposing and consuming RESTful web services. Spray can fills this niche by providing high-performance HTTP/1.1 servers and client implementations.
- [Instructor] Hi, in the previous video we looked…at spray-routing DSL as the concise…and readable way of defining…our own RESTful Web Services API.…In this video, we're going to take one more step forward…towards exposing our RESTful Web Services…to the outside world by looking at Spray Can…and core HTTP support implementation in Spray framework.…At the end of this video we're going…to have our sample book catalog web services up and running,…ready to serve HTTP requests.…
Spray framework has excellent HTTP/1.1 support,…both from service side and client side.…Along this video we are going to focus…on Spray Can HTTP server only, however,…we will get back to the client side later in the course.…The Spray Can HTTP server implementation…is scoped with a clear focus…on the essential functionality of an HTTP/1.1 server.…Connection management, message passing…and header separation.…
Timeout management, response ordering.…Everything else is left aside…and becomes the responsibility of other modules.…Akka framework and actor-based architecture…
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