-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thinky without dash? #550
Comments
@warka0 please do never link to lines of a branch, especially of the master branch. |
@timaschew Ok, no problem. Sorry for that. :) |
Hum, it's not possible at the moment. Rethinkdbdash lets you open your own connection/close it if you want by passing To get the official driver or rethinkdbdash without a pool to work with thinky, we need to update all the part where a query and take a connection as argument. |
I'll try with manual closing for rethinkdash but I won't take the risk to keep it in production. Actually, i mimic the old way with schema-inspector library and an home made sandbox with connection argument. I need to validate the object model each time before insert/update. Take your time, it could be a wonderful feature for thoses who do serverless apps :) |
Hi!
I use Thinky on different projects with express. I've been moving to AWS Lambda few months ago, using only rethinkdb official driver for a unique reason i haven't reported yet!
I'm not sure i'm reporting a bug, nor even a feature. It's up to you to decide what it is. 😄
On AWS Lambda, when you use Thinky (that are inside of another library in a node_module) on a function who need an EC2 with RethinkDB, you will have some issues with the pooling system of Rethinkdbdash who are unenable to close connections.
It works for the first connections but after a while, everything is locked with timeout from the EC2 instance who refused connections from the function.
This issue lock the EC2 instance with non-closed connection during a long time. I've done a looooot of tests (&& debuging) to be sure of what i'm writing right now.
It's exactly this line who failed on the AWS Lambda environment:
https://github.com/neumino/rethinkdbdash/blob/master/lib/pool_master.js#L449
Sooooo, it will possible to have one day a fork of Thinky with the officiel driver of RethinkDB? (and without pool connections of course)
I'm asking this question because it's a REAL pleasure to work with Thinky on a standalone NodeJS + Express. It's simplify my workflow a lot and i would like to work again with my teammates. 😄
I hope you will take some attention to this issue @neumino, 'cause i love too much Thinky && RethinkDB.
The text was updated successfully, but these errors were encountered: