Skip to content

Instantly share code, notes, and snippets.

@fengmk2
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fengmk2/41d75fbc2469a7eec322 to your computer and use it in GitHub Desktop.
Save fengmk2/41d75fbc2469a7eec322 to your computer and use it in GitHub Desktop.
How cnpmjs.org work
@startuml
node "cnpmjs.org Cluster" {
[cnpm registry]
[cnpm web]
[cnpm sync worker]
}
node "original npm Cluster" {
[npm registry]
[npm web] -> [npm registry]
}
node "Developers" {
[npm cli]
[cnpm cli]
[browser]
}
database "cnpm MySQL"
[npm cli] -> [cnpm registry]: install,publish,view,author
[cnpm cli] -> [npm cli]: pipe
[cnpm cli] -> [cnpm registry]: sync,admin
[cnpm registry] -> [cnpm MySQL]: CRUD SQL
[cnpm web] -> [cnpm MySQL]: CRUD SQL
[cnpm web] -> [cnpm sync worker]: add sync tasks
[browser] -> [cnpm web]: view,search,sync
[cnpm sync worker] -> [npm registry]: Delta sync every 10 mins
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment