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

Concurrent connections #66

Open
AadamZ5 opened this issue May 24, 2022 · 0 comments
Open

Concurrent connections #66

AadamZ5 opened this issue May 24, 2022 · 0 comments

Comments

@AadamZ5
Copy link

AadamZ5 commented May 24, 2022

I'm trying to understand how to use RethinkDB in rust. I'm using RethinkDB to power a GraphQL endpoint (using juniper). Static single document queries seem to not be an issue, but when using Subscriptions in GraphQL (which are commonly WebSocket streams streaming change feeds to the client) I have trouble satisfying more than 1 client. I get driver errors like Driver(ConnectionLocked) and "client error; another query is running a changefeed on this connection". How can I facilitate multiple change feeds?

Currently, I'm trying to open a new session (to the same endpoint) for every client that connects, just to see if that would fix the issue. But this still isn't working correctly. Is it possible to open multiple change feeds on the same session, or do I need to make a new session for every change feed? Is this a limitation of the Rust driver, or RethinkDB itself?

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

No branches or pull requests

1 participant