TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Help Scale NPM

125 点作者 jenius超过 11 年前

23 条评论

remon超过 11 年前
I&#x27;ll be that guy; I&#x27;m a little confused as to why this would require $200,000 (the requested total funding requested) to solve. From the site itself :<p>614,680,691 requests per month come down to ~230 request per second. Allowing for some spikiness that boils down to perhaps 1k request&#x2F;second at peak. Requests in these cases are mostly relatively simple queries on version-ed, highly cacheable data. I say highly cacheable because it is relatively static data for which most (if not all) of the data fields relevant for these requests can fit in memory of perhaps even a single node (NPM currently includes 48,799 packages. That leaves a very healthy chunk of data per package on 16Gb-128Gb RAM server boxes).<p>The downloads are a bit of a puzzle to me as well. On my machine the average NPM package is about 200Kb (YMMV). 114,626,717 downloads are mentioned on the site. 200k times 114 million downloads lands us on roughly 23 TB. Even on a relatively expensive CDN such as Amazon CloudFront the total monthly cost for that bandwidth and content request load for CloudFront and the required S3 costs land on about $3k&#x2F;month and that&#x27;s ignoring all bulk discounts, reserved capacity and so on (which are very significant at these volumes).<p>I&#x27;m more than likely oversimplifying a few things here and there (or failed horribly at math) but I&#x27;d still be very interested to hear why this requires such a large investment. Also, wouldn&#x27;t the more obvious solution be to open source the npmjs software and allow the community to contribute knowledge and time instead?<p>EDIT: Quickly wanted to point out that I use npmjs.org often , is a great service and that donations are very well deserved. After re-reading my post it turned out more negative sounding than intended.
评论 #6804084 未加载
评论 #6804238 未加载
judofyr超过 11 年前
Wouldn&#x27;t it be better to make NPM more distributed so that anyone could set up a mirror and help out?<p>EDIT: Not saying it would be easy; I&#x27;m just wondering if you&#x27;ve considered this direction.
评论 #6802600 未加载
评论 #6802487 未加载
评论 #6802572 未加载
评论 #6803065 未加载
评论 #6804141 未加载
评论 #6802493 未加载
driverdan超过 11 年前
I&#x27;m a big fan of npm but there are unanswered questions here.<p>1. Why $200,000? Can we get a rough budget so we can understand how it will be used and how long it will last?<p>2. We should all be thankful for the time and resources Nodejitsu&#x2F;Joyant&#x2F;IrisCouch puts into node and npm. That said, wouldn&#x27;t the projects be better off separated from these businesses with their own funding? If we were donating money to the projects instead of a for profit corp we would have more certainty of how and when the money will be used. &quot;Donating&quot; to Nodejitsu just adds to their bottom line and in reality could be used however they want. If something happens to the business we have no guarantees the money would continue to be used for npm.
confused_npm超过 11 年前
This is a bit confusing. Am I right in asserting the following?...<p>Commercial PaaS hosting firm, nodejitsu, is asking for <i>donations</i> to pay (or help to pay) for the costs of running npm.<p>Nodejitsu plan on using said funds to purchase additional resources at Joyent, where npm is currently hosted.<p>Joyent own the trademark for Node.js
arianvanp超过 11 年前
But I thought node was web scale.<p>Edit: Yep that was a lame joke. Anyhow, take my money, I love NPM and use it daily.
评论 #6804030 未加载
TheHippo超过 11 年前
I&#x27;d love to donate. But as most Germans I don&#x27;t own a credit card. Why do so many people ignore that credits cards are not the default payment methods in some countries. I&#x27;d even accept to pay the extra fees for using PayPal.
评论 #6804239 未加载
candyluver13超过 11 年前
I don&#x27;t think giving up money for more servers and hosting is really the answer here. I think de-centralizing and distributing the registry is really the way forward here. there is one project i know that is trying to make this happen <a href="https://github.com/jmgunn87/mynpm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jmgunn87&#x2F;mynpm</a>
quarterto超过 11 年前
Appears to be running slowly. Maybe we need a scalescalenpmdotorg.org?
评论 #6802889 未加载
codecurve超过 11 年前
From the JS comments - made me laugh<p><pre><code> &#x2F;** * Simple counter magic to make people engaged. * * @constructor *&#x2F;</code></pre>
评论 #6802580 未加载
malone超过 11 年前
I always feel guilty about how much I end up downloading from the npm registry. I keep my nodejs projects is separate dirs, so I end up downloading the same dependencies over and over again each time I start a new project.<p>I wish the --global install switch was cleverer and allowed you to have multiple versions of the same package installed at the same time. Then I could just symlink everything together which would save them bandwidth (and save me diskspace).
评论 #6803013 未加载
doki_pen超过 11 年前
Better ideas than this:<p>* Offered paid, private registry that doesn&#x27;t cost an insane amount of money. Somehow host it on the same metal as the public repo.<p>* Decentralize. Make it easier to setup mirrors or proxy&#x2F;cache layers. If I had a simple to deploy npm caching proxy that didn&#x27;t need to replicate every upstream package, only the ones that I use, it would reduce load upstream and protect me when upstream fails. ++ if I can host private packages there as well.
bdcravens超过 11 年前
They should take Bitcoin for additional exposure
评论 #6803566 未加载
michaelmior超过 11 年前
I wonder why they can&#x27;t&#x2F;don&#x27;t make use of a CDN to scale downloads. Unless they do already and I&#x27;m not aware.
评论 #6802644 未加载
geetee超过 11 年前
Countless hours have been saved by NPM. I would have donated a bit more if it let me input the exact amount.
FraaJad超过 11 年前
Considering that CouchDB was built to do multi master replication, it&#x27;s just a matter of adding more servers and setting up automatic replication.<p>Also, is the current setup using any kind of front end caching like Varnish?
评论 #6804130 未加载
malandrew超过 11 年前
Regarding the banners, you say that the banner will be on the scalenpm.org site, anyway to get on the npmjs.org site or somewhere else with greater visibility?
gtramont超过 11 年前
Could npm use torrent somehow? Reducing the load from the main servers? This would require users to opt-in and become a peer... just a random thought.
tehwebguy超过 11 年前
Out of curiosity, how do they normally pay the bills?
评论 #6802481 未加载
评论 #6802488 未加载
mathrawka超过 11 年前
I would only donate if they dump Nodejitsu.
runj__超过 11 年前
So... Will I receive an email or something to confirm that my donation went through?
benlemasurier超过 11 年前
I want to give $50, can I just get a t-shirt?
dharbin超过 11 年前
So now we live in a world where people extort you to fix their broken service. The first repository is always free...
ocfx超过 11 年前
This website is not scaling well.