Skip to content

What is the overall story on Connections? #658

Closed

Description

@jgeewax

I'm noticing that "Connection" objects are slowly being phased out, in favor of gcloud.<service>.do_thing (ie gcloud.storage.get_bucket() or gcloud.datastore.Query(...)).

Did we make a specific call to remove the concept of a connection? Was the a discussion somewhere that I can read up on to understand the background behind that?

/cc @tseaver @dhermes

Activity

  1. added this to the milestone on Feb 17, 2015
  2. dhermes commented on Feb 17, 2015

    @dhermes
    Contributor

    They aren't being phased out and they aren't going anywhere.

    We've discussed in our meetings that they be stateless and are simply a way to make HTTP requests to the service.


    Datastore: We allow connection as an optional argument in methods / functions that use one. Using implicitly set connections, a user can happily use the library without needing to know what a connection is.

    This was spurred on by comments that there were "too many classes". We realized that we didn't need the typical user to worry about a Connection (beyond setting the right environment variable for credentials).

    We still made sure one could be used.


    Storage: We are in the process of making the API surface easier to use. In this attempt we are trying to "hide" the Connection class from typical users and do the same thing.

    I've created #632 for my proposal on storage, and @tseaver also made some previous remarks.

  3. dhermes commented on Feb 18, 2015

    @dhermes
    Contributor

    @jgeewax Do we still need this issue open?

  4. jgeewax commented on Feb 18, 2015

    @jgeewax
    ContributorAuthor

    I think you answered the -- closing :)

  5. added a commit that references this issue on Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: coretype: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions