Skip to content
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

Open
davidroman0O opened this issue Aug 21, 2016 · 4 comments
Open

Thinky without dash? #550

davidroman0O opened this issue Aug 21, 2016 · 4 comments
Labels

Comments

@davidroman0O
Copy link

davidroman0O commented Aug 21, 2016

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.

@timaschew
Copy link

@warka0 please do never link to lines of a branch, especially of the master branch.
Before coping the URL press y this will generate a permanent URL, in this case: https://github.com/neumino/rethinkdbdash/blob/d6f55dddfc0ba941879050a3b606c7ce63513c17/lib/pool_master.js#L449

@davidroman0O
Copy link
Author

@timaschew Ok, no problem. Sorry for that. :)

@neumino
Copy link
Owner

neumino commented Aug 23, 2016

Hum, it's not possible at the moment. Rethinkdbdash lets you open your own connection/close it if you want by passing pool: false, but thinky doesn't let you do that.

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.

@davidroman0O
Copy link
Author

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants