In this chapter, we will build our first real web service. It will expose a set of APIs over HTTP, and it will use the representational state transfer (REST) architectural style.
We’ll build the web service using Actix (https://actix.rs), a lightweight web framework written in Rust, which is also one of the most mature in terms of code activity, adoption, and ecosystem. We will warm up by writing some introductory code in Actix so you can learn its foundational concepts and structure. Later in this chapter, we will design and build a set of REST APIs using a thread-safe in-memory data store.
The complete code for this chapter can be found at https://git.manning.com/agileauthor/eshwarla/-/tree/master/code.
In this book, we are going to build a digital storefront aimed at tutors. We’ll call our digital platform EzyTutors because we want tutors to be able to easily publish their training catalogs online, which can in turn trigger the interest of learners and generate sales.