Skip to content

WIP Threadsafe connection pooling #284

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

Closed

Conversation

andrewvc
Copy link
Contributor

@andrewvc andrewvc commented Mar 4, 2016

WORK IN PROGRESS. DO NOT MERGE.

@andrewvc andrewvc force-pushed the threadsafe-connection-pooling branch from 4a567f3 to 0466d4b Compare March 4, 2016 19:13
@andrewvc andrewvc changed the title Threadsafe connection pooling WIP Threadsafe connection pooling Mar 8, 2016
@karmi
Copy link
Contributor

karmi commented Mar 10, 2016

The more I think about it, Andrew, the more I think it would be more beneficial to go with the Mutex.synchronize approach for the first pass on this refactoring, and identify the “map” of problematic spots, as I have mentioned on the call. From there, we can dive into a deeper re-structuralization of the whole architecture.

As always, please ping me if you need assistance, feedback or just an opinion.

@jsvd
Copy link
Member

jsvd commented Mar 11, 2016

@karmi by Mutex.synchronize, you mean a global mutex on perform_request and reload_connections!. Well, not exactly since the first calls the second, but is that the idea?

@karmi
Copy link
Contributor

karmi commented Mar 11, 2016

@jsvd, not in this way specifically — it was more or less a suggestion for Andrew to continue with adding the mutexed locks around problematic spots (which he already did in other places).

@andrewvc
Copy link
Contributor Author

@jsvd this was in reference to the last conversation @karmi and I had where we discussed using synchronize vs. threadsafe datastructures from concurrent-ruby.

In my opinion (since you're taking over this @jsvd) we should just use the appropriate tool for the job and discuss the design once we're done.

@jsvd jsvd self-assigned this Mar 14, 2016
end
end
end
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

endline ?

@andrewvc andrewvc force-pushed the threadsafe-connection-pooling branch from 5f97cd4 to 70b59da Compare March 18, 2016 22:09
@andrewvc andrewvc mentioned this pull request Mar 28, 2016
@andrewvc
Copy link
Contributor Author

Moved to #296

@andrewvc andrewvc closed this Mar 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants