官术网_书友最值得收藏!

Project overview

We are going to build several projects, introducing new features in every project. Let's look at each one, as follows:

  • The first project will build a stub of a service that should allow any client to upload, download, or delete files from the server. This project shows how to create a REST application programming interface (API), but it does no useful work.
  • The second project will implement the API described in the previous project. It will build a service that actually allows any client to upload, download, or delete files from the server filesystem.
  • The third project will build a service that allows clients to add key-value records to a memory database residing in the server process, and to recall some predefined queries built into the server. The result of such queries will be sent back to the client in plain text format.
  • The fourth project will be similar to the third one, but the results will be encoded in JSON format.

Our source code is small, but it includes the Actix web crate, which in turn includes around 200 crates, and so the first build of any project will take around 10 minutes. Following any changes to the application code, a build will take from 12 to 30 seconds.

The Actix web crate has been chosen as it is the most feature-full, reliable, high-performance, and well-documented server-side web application framework for Rust.

This framework is not limited to RESTful services, as it can be used to build different kinds of server-side web software. It is an extension of the Actix net framework, which is a framework designed to implement different kinds of network services.

主站蜘蛛池模板: 绍兴市| 琼结县| 松江区| 儋州市| 额敏县| 慈溪市| 灯塔市| 津南区| 静乐县| 稷山县| 景泰县| 合江县| 泗洪县| 深泽县| 鄂州市| 红桥区| 九寨沟县| 衡南县| 新营市| 漳州市| 桓台县| 镇雄县| 曲阜市| 乐业县| 叙永县| 东兰县| 鄢陵县| 新蔡县| 广河县| 洪洞县| 黔东| 霍邱县| 新乡县| 余干县| 阳西县| 宜昌市| 宁远县| 桃源县| 仁寿县| 临朐县| 河曲县|