Using databases

Another good feature of actix-web, in combination with the actix crate, is the ability to use databases. Do you remember how we used SyncArbyter to perform background tasks? It's a good approach to implement database interaction since there are not enough asynchronous database connectors and we have to use synchronous ones. Let's add the caching of responses to a Redis database for our previous example.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.253.31