January 2019
Beginner to intermediate
776 pages
19h 58m
English
Diesel uses a non-blocking technique with co-routines to write networking severs efficiently. As stated on the website, Diesel's core is a tight event loop that uses epoll to deliver nearly flat performance out to 10,000 connections and beyond. Here, we introduce Diesel with a simple echo server. You also need Diesel library 3.0 or any later version. You can do that with pip command:
$ pip install diesel
If you encounter some issues in installing, make sure you have the dependencies installed. The following command should fix most of these errors:
$ sudo apt-get install build-essential libssl-dev libffi-dev python-dev
You may need to run as a super-user depending on your operating systems configurations, since diesel installs ...
Read now
Unlock full access