Imagine that we have to create a RESTful API to control a drone, also known as a UAV (short for Unmanned Aerial Vehicle). The drone is an IoT device that interacts with many sensors and actuators, including digital electronic speed controllers linked to engines, propellers, and servomotors.
The IoT device has limited resources, and therefore we have to use a lightweight web framework. Our API doesn't need to interact with a database. We don't need a heavyweight web framework such as Django, with all its features and its integrated ORM. We want to be able to process many requests without blocking the web server. We need the web server to provide us with nice scalability while consuming limited resources. Thus, our choice is to use Tornado, the open source version of FriendFeed's web server.
The...