简体   繁体   中英

Play with Reactive Slick with jdbc asyn or jdbc (blocking by default)?

Recently lightbend.com released Slick 3.x, the release candidate for “Reactive Slick”. Reactive Slick has many new features like Support for Reactive Streams API, a new API for composing and executing database actions and many .

I have two option to choose the jdbc driver

  1. "postgresql" % "postgresql" % "9.1-901.jdbc4"
  2. "com.github.mauricio" %% "postgresql-async" % "0.2.20"

Any suggestion which one is good (driver async or normal) to create the fully reactive application ?

If you are using Slick its better to use "postgresql" % "postgresql" % "9.1-901.jdbc4" normal postgres driver as Slick plays well with it.

Slick makes db interactions asynchronous and reactive so it doesn't need another async driver normal driver works as expected for Slick .

Lot of projects have been using normal driver with Slick and are quite successful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM