Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Proposal: Extract Bundler API from Rubygems.org
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
André Arko  
View profile  
 More options Oct 18 2012, 3:27 pm
From: André Arko <an...@arko.net>
Date: Thu, 18 Oct 2012 12:27:28 -0700 (PDT)
Local: Thurs, Oct 18 2012 3:27 pm
Subject: Proposal: Extract Bundler API from Rubygems.org

Somewhat predictably, I feel strongly about the availability of the Bundler API. As a result of the recent downtime (due to load issues), I've come up with a plan that I think can increase the reliability of the Bundler API while removing the burden of maintaining its infrastructure from the Rubygems.org team.

I would like to create a new project that implements only the Bundler Dependency API. It would, at least initially, implement only the Rubygems dependency API that lives at `/api/v1/dependencies`. I think it would be feasible to keep it up to date with rubygems.org in near-realtime using the existing webhook system.

If desired, we could add a rubygems.org subdomain dedicated to this app, or we could host it at a separate domain. Either way, requests to rubygems.org could be redirected to the new service via 302 redirects. The redirects could even be served by the rubygems.org frontend server, so the Rails app would no longer have to respond to dependency requests.

Heroku has volunteered to provide hosting for this API app, but it should be feasible to host it anywhere. Long term, it could even be possible to host it on multiple services for higher availability.

I'll post here again once I have a working Bundler API hosted on Heroku, but getting this live for everyone to use will obviously require at least a little bit of ops work on rubygems.org. I'm happy to do that work myself, or work with someone who already has access to get things going.

Thanks,
André


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evan Phoenix  
View profile  
 More options Oct 18 2012, 3:35 pm
From: Evan Phoenix <e...@phx.io>
Date: Thu, 18 Oct 2012 12:35:57 -0700
Local: Thurs, Oct 18 2012 3:35 pm
Subject: Re: [gemcutter] Proposal: Extract Bundler API from Rubygems.org

If the webhook mechanism is used to propagate data, there will be a delay. This might confuse users.  

Thusly, we may have to look into adding a more explicit mechanism to pass data to the new app (something I'd planned on adding anyway).

 - Evan  

--  
Evan Phoenix // e...@phx.io


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Quaranto  
View profile  
 More options Oct 18 2012, 3:40 pm
From: Nick Quaranto <n...@quaran.to>
Date: Thu, 18 Oct 2012 15:40:12 -0400
Local: Thurs, Oct 18 2012 3:40 pm
Subject: Re: [gemcutter] Proposal: Extract Bundler API from Rubygems.org

The web hook delay is a a minute or so at most, probably around the same time for the indexes to update and push to S3. I don't think the "delay" is reason enough to throw this proposal out. Making the APIs better (read: yanked gems get a web hook as well, a longstanding issue) is really the work involved here.

-Nick  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evan Phoenix  
View profile  
 More options Oct 19 2012, 1:35 pm
From: Evan Phoenix <e...@phx.io>
Date: Fri, 19 Oct 2012 10:35:09 -0700
Local: Fri, Oct 19 2012 1:35 pm
Subject: Re: [gemcutter] Proposal: Extract Bundler API from Rubygems.org

I'm happy to build rubygems.org as a federation of services running in different places. It would be trivial to add a separate web hook mechanism that is high priority that we use to push updates out, which should reduce the delay even further.  

Additionally, I'd prefer that clients still hit rubygems.org/api/v1/dependencies and we have the frontends perform either a backend proxy or a 304 redirection to something like api-dep.rubygems.org which could be running on heroku. That gives us the flexibility to easily move things around without having to change any client configs.  

--  
Evan Phoenix // e...@phx.io


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nick Quaranto  
View profile  
 More options Oct 19 2012, 2:03 pm
From: Nick Quaranto <n...@quaran.to>
Date: Fri, 19 Oct 2012 14:03:30 -0400
Local: Fri, Oct 19 2012 2:03 pm
Subject: Re: [gemcutter] Proposal: Extract Bundler API from Rubygems.org

Hurray! Huge huge +1. Let's talk this over in the pow-wow.  

-Nick  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jordon Bedwell  
View profile  
 More options Oct 19 2012, 2:05 pm
From: Jordon Bedwell <envyge...@gmail.com>
Date: Fri, 19 Oct 2012 12:50:11 -0500
Local: Fri, Oct 19 2012 1:50 pm
Subject: Re: [gemcutter] Proposal: Extract Bundler API from Rubygems.org

On Fri, Oct 19, 2012 at 12:35 PM, Evan Phoenix <e...@phx.io> wrote:
> Additionally, I'd prefer that clients still hit
> rubygems.org/api/v1/dependencies and we have the frontends perform either a
> backend proxy or a 304 redirection to something like api-dep.rubygems.org
> which could be running on heroku. That gives us the flexibility to easily
> move things around without having to change any client configs.

I think it would be pretty hefty to redirect people to a new URI or
URL because many people don't account for that in their code (that is
if their code requires they manually handle redirects like I've had to
with things like Net::HTTP when building my own wrappers.) Though at
the same time, it's not much effort to account for those types of
things.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evan Phoenix  
View profile  
 More options Oct 19 2012, 2:09 pm
From: Evan Phoenix <e...@phx.io>
Date: Fri, 19 Oct 2012 11:09:31 -0700
Local: Fri, Oct 19 2012 2:09 pm
Subject: Re: [gemcutter] Proposal: Extract Bundler API from Rubygems.org

See below.

--
Evan Phoenix // e...@phx.io

Rubygems and Bundler handle it properly. I don't think that there are really an users of the API outside of those 2 code bases, so doing a redirect should be fine. We'd basically need to communicate that anyone using rubygems.org resources need to accommodate redirects.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hone  
View profile  
 More options Oct 19 2012, 7:38 pm
From: hone <gro...@hone.otherinbox.com>
Date: Fri, 19 Oct 2012 16:38:37 -0700 (PDT)
Local: Fri, Oct 19 2012 7:38 pm
Subject: Re: [gemcutter] Proposal: Extract Bundler API from Rubygems.org

Thanks for the update! Do you have any ideas or details on the web hook? I
guess we'd need both new gems as well as yanks. I'm currently working on an
update mechanism to keep our copy of pg to date to match the index. Can we
look into a polling solution as well? What would we do if the push fails or
the receiver goes down?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »