5 ms·
I'm a Rocket fan and glad to see this big slate of improvements. On the other hand, I do want to register a bit of concern regarding the plan to add "first-clas
by pc2g4d 9y ago
I'm a Rocket fan and glad to see this big slate of improvements. On the other hand, I do want to register a bit of concern regarding the plan to add "first-class database support" for 0.4. I hope that doesn't result in a close coupling to any particular database, or to using a database in general.
- StavrosK 9y agoIsn't Postgres worth coupling to? SQLite is a close favorite, for different reasons.
- mixedCase 9y agoAs someone who only uses Postgres and SQLite: No. It's not. People inevitably have to deal with preexisting systems they can't modify for their needs.
- yen223 9y agoWeb servers and database management are two vastly different domains. I'm wary of frameworks that attempt to impose an opinion on both.
- StavrosK 9y agoRocket isn't a web server, it's a web framework. That's what frameworks should do, impose opinions on things to get all the best practices sorted.
- sbenitez 9y agoDatabase support will live outside of Rocket's core in Rocket's contrib [0] library. Everything in contrib is implemented independently of Rocket and is entirely optional to use. The implementation will be database agnostic and extensible to any database. I'm a big believer in pluggable, optional components with no forced decisions [1], and database support will follow the same philosophy. [0]: https://api.rocket.rs/rocket_contrib/index.html https://api.rocket.rs/rocket_contrib/index.html [1]: https://rocket.rs/guide/introduction/#foreword https://rocket.rs/guide/introduction/#foreword
- pc2g4d 9y agoThat's great to hear!