Comments (7)
I don't have time to work on this right now, but here's an old thread from a similar initiative I worked on depjs/dep#8
from open-registry.
Thanks a lot @maxogden, will check that out.
from open-registry.
Running a global network of the scale of the npm registry will be impossible to do with just being funded by the community as the costs will be too high.
Wonder how far we can get with cloudflare + cloud storage.
Will be experimenting with this in the coming weeks and will report back :-)
from open-registry.
@retrohacker thanks, appreciate it, ping here once you have some results to share :)
That said, I do think that even if we find the fastest CDN, we can make it faster for people by having a federated model. But CDN in front of the metadata registry would still be a good idea.
from open-registry.
I've updated the initial issue here with an updated version of the proposed federation, will also bump it on the roadmap.
Old proposal can be found here: https://gist.github.com/victorb/82ace9e6fe7adf578833527b8b94f914
from open-registry.
Build it using Holochain, it's exactly what you need for distributed (fully sharded) storage and cryptographic security
from open-registry.
@victorb as promised, circling back to report on cost.
Self hosting on cloud providers turned out to be reasonable. Our GCP mirror ended up costing ~$300 to do the initial mirroring (pulling 5TB of data through cloud functions and into cloud storage).
Once the files are sitting in storage (multi-zone within the US), the cost is ~$6 a day. That includes the instance that is sitting there watching the CouchDB stream from the npm registry to keep the mirror fresh. The breakdown is $3.46 per day for storage and $2.28 for the compute instance.
Cloudflare functions (where we are doing our load balancing) costs $0.50 per million invocations.
BTW the service is up and running if you want to give it a try: https://freajs.com
from open-registry.
Related Issues (20)
- Let's decide on a roadmap HOT 2
- How is the Open-Registry project actually run right now? HOT 3
- Cache original metadata response without rewriting
- Suggestion: Additional Form of Funding (Mining Crypto) HOT 1
- Why is this written in Closure and not JavaScript? HOT 2
- Make sure 404s from registry.npmjs.org gets 404 response from open-registry
- To accept sponsorships or not? HOT 1
- Future upgrades for public dashboard
- Support more registries
- Fetching packages via dnslink HOT 1
- Implement Open Services Framework V1
- Production go-ipfs going bananas HOT 23
- avoid Open-Registry to kill connections coming from Bolivar
- FIXME, I fail.
- Is this usable as a fallback?
- Corrupted JSON on https://npm.open-registry.dev/wrappy URL HOT 3
- Registry is down - npm.open-registry.dev let's encrypt certificate expired yesterday HOT 3
- Using 3rd party software
- Code Analysis No more from scratch project
- npm.open-registry.dev serving malformed json for lodash HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-registry.