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

[NEW EXAMPLE] Puppet - Connection Pool #42

Closed
ainzzorl opened this issue Aug 10, 2021 · 0 comments
Closed

[NEW EXAMPLE] Puppet - Connection Pool #42

ainzzorl opened this issue Aug 10, 2021 · 0 comments
Labels
new example New example proposal

Comments

@ainzzorl
Copy link
Owner

General

Description

Puppet, an automated administrative engine for your Linux, Unix, and Windows systems, performs administrative tasks (such as adding users, installing packages, and updating server configurations) based on a centralized specification.

Puppet client implements a connection pool to reuse server connections.

Connections are borrowed from the pool, yielded to the caller, and released back into the pool. If a connection is expired, it will be closed either when a connection to that site is requested, or when the pool is closed. The pool can store multiple connections to the same site, and will be reused in MRU order.

Links

What makes it interesting

  • Generic, reusable.
  • Short and simple.
  • Idiomatic Ruby.

Related work

No

Other

Again, it's not the most interesting part of Puppet by a long shot, but it's understandable in isolation.

@ainzzorl ainzzorl added the new example New example proposal label Aug 10, 2021
@ainzzorl ainzzorl changed the title [NEW EXAMPLE] Puppet - TITLE [NEW EXAMPLE] Puppet - Connection Pool Aug 10, 2021
ainzzorl added a commit that referenced this issue Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new example New example proposal
Projects
None yet
Development

No branches or pull requests

1 participant