Giter Club home page Giter Club logo

Comments (3)

bikeshedder avatar bikeshedder commented on July 18, 2024 2

In the original test r2d2 + postgres + web::block outperformed both l337 and bb8 with tokio-postgres. It seams that this was caused by different versions of the postgres library. See #29 and sfackler/rust-postgres#469

I will go the full-async route myself now that I know that it was caused by a performance regression of the postgresql/tokio-postgresql crate rather than the connection pool.

from bb8.

bikeshedder avatar bikeshedder commented on July 18, 2024 1

I recently compared l337 with tokio-postgres, bb8 with tokio-postgres and r2d2 with postgres in an actix-web project. I also gave r2d2 with web::block a try after being told multiple times that all the hassle with async connection pooling libraries might not be worth the trouble.

You can view the code in my repository containing the three implementations:
https://bitbucket.org/bikeshedder/actix_web_async_postgres/src/master/

Edit: Removed statement about r2d2 + postgres outperforming bb8 + tokio-postgres.

from bb8.

chachacha3 avatar chachacha3 commented on July 18, 2024

Close issue, examples of interaction between bb8 and actix_web can be found at @bikeshedder's bitbucket repository(link above)

from bb8.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.