Learn the traditional way of handling HTTP requests in Spray using Scala pattern matching and understand its weak points. Discover the alternative high-level abstractions in a form of routes and directives.
- [Instructor] Hello again.…Welcome to the second video of section three, Spray routing.…In the previous video, we looked at Spray framework…from a high-level perspective,…discussing it's philosophy, design principles,…modular structure, and versioning.…In this video, we're going to take a look…at one of the key Spray modules, namely, Spray routing,…as an easy and powerful way of…defining restful web services.…Also, along this video,…we're going to outline the functionality…of our sample book catalog, web APIs,…and find the basic end points…for managing books in the catalog.…
One of the Spray's core promises is…delivering high performance,…which means operating at lowest level…of abstractions possible.…Spray does it very well, however,…the more beefy your restful web services become,…the higher chances that the implementation will get messy.…Luckily, Spray has an alternative to offer,…in the form of routing.…Strictly speaking, it is hard to find…the exact definition of what term routing means,…but the general idea behind it is pretty simple.…
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