Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Node.js 实践和技术体系落地
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
defcc
September 03, 2016
Programming
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Node.js 实践和技术体系落地
Node.js 实践和技术体系落地
defcc
September 03, 2016
Other Decks in Programming
See All in Programming
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
The Rails Doctrine Decade
koic
2
600
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
3
440
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
350
sbt 2.0: takeoff
eed3si9n
0
160
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.6k
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
400
ジョジョの世界をXRで再現する
mofurune
0
170
Jetpack Compose Mechanisms
skydoves
3
820
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
170
Featured
See All Featured
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
330
BBQ
matthewcrist
90
10k
We Have a Design System, Now What?
morganepeng
55
8.4k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
540
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
630
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
490
Six Lessons from altMBA
skipperchong
29
4.5k
Transcript
Node.js, on the way ሧኞா܈उࢧဉὄ - ᯿ଣᒊ
ᑕ᩻ ምكᗑ ڹᒒದࢫᴚ
๐ۓԻฃଘݣጱڹᒒᔮᕹ server ᒒཛྷᇇ ݶྍວ SEO ᔱකၞᰁف IE8݊զӤ ّ ᕣᒒአಁଠာ
backend frontend smarty ᶉாᩒრ ݶྍཛྷᇇວ ྍളݗວ ๐ۓԻฃଘݣᔮᕹᄍ۸ PHP DB
web PHP Java SOA frontend ᶉாᩒრ ཛྷᇇᕟկ backend smarty velocity
ݶྍཛྷᇇວ ྍളݗວ ๐ۓԻฃଘݣᔮᕹᄍ۸ …… …..
静态资源可以 Server 端模版呢? 1 异构系统代码复用
团队标准配置,人? web ڹᒒ web ݸᒒ ๐ۓ۸ݸᒒ ڹᒒݎ PHPݎ Javaݎ Javaݎ
2
开发环境,怎么更好地本地开发? PHP web ڹᒒݸړᐶ Java web ڹݸᒒړᐶ 3 +
Node.js ᕹӞጱ web ሿ੶ളفොໜ view ວ҅හഝ೪ᤰ
web server Node.js SOA / data frontend ᶉாᩒრ ཛྷᇇᕟկ backend
ݶྍཛྷᇇວ ྍളݗວ ๐ۓԻฃଘݣጱڹᒒᔮᕹ http dubbo य़ڹᒒ
உঅአ҅ݝฎލ᧔ӞᤈդᎱ੪ݢզ Server ധࠡ҅౯ጱᔮᕹྋଉԍҘ لݪٖ᮱ጱդᎱ҅Ԟᥝ۱නک NPM ԍ ᵞᗭ᮱ᗟӥই֜כᦤአಁጭᴭᇫா ই֜឴ݐٌ՜ᔮᕹጱහഝ MySQL redis
solr҅ᒫӣොAPI දԧդᎱᥝ᯿ސࠡ҅PHP ग़ො ݢզೲկ᪠ஆᛔۖኞ౮᪠ኧ url ԍ
ݎ ᮱ᗟ ፊഴ web ຝ ᶉாᩒრᓕቘ ളݗਧԎ mock ᐺํཛྷࣘوՁ ᵞᗭ᮱ᗟ
ᶉாᩒრ CDN դᎱݎᛔۖ᯿ސ ᕹӞ෭பᵞᬌڊ ଫአፊഴӨޞᦄ ᱾᪠ፊഴ 应用生命周期
express √ Ḓض౯ժํӻ web ຝ 简单 稳定 快速 易扩展 ݎ
ཛྷࣘ۸ݎ ᶉாᩒრᓕቘ ݎ ᛔۖݳଚׁᩢے ᖨਂᓕቘ FIS
ളݗਧԎහഝ mock ݎ ଚᤈݎጱڹ ݎᴤྦྷ ፘىׁᩢහഝრဌํ Ready ጱײ ݢզचԭਧԎጱളݗᬰᤈᛔۖහഝ mock҅ਠ౮ۑᚆݎ
ളݗਧԎහഝ mock ݎ ਧԎ json schema RAP
ളݗਧԎහഝ mock ݎ web server Node.js SOA / data frontend
ኞԾ҈ၥᦶ api mock server ݎ
ᐺํཛྷࣘᶱፓوՁ ݎ frontend ၿ݊کلݪٖ᮱ጱᶱፓཛྷࣘ scope ཛྷୗݎ @zbj:registry=http://npm.zbjwork.com चԭ sinopia ൫ୌᐺํ
npm
ᵞᗭ᮱ᗟ ᮱ᗟ frontend ܔӻᜓᅩଫአचԭ PM2 ᓕቘ҅᭗ᬦ nginx ᨮ࣐ᤍ ސአ cluster҅شړڥአग़໐
CPU nginx load balance Node.js Node.js Node.js client
դᎱݎᛔۖ᯿ސ ᮱ᗟ frontend ኞԾሾह կݒ۸ݸ pm2 restart app.json —production ၥᦶሾह
चԭ pm2 watch կදݒᛔۖ᯿ސ
ᶉாᩒრړᐶ ᮱ᗟ frontend ဌํᇿᒈऒݷ ᭗ᬦ nginx ᯈᗝԻኧ nginx ॒ቘ test.zbj.com
test.zbj.com/static/test.js ํᇿᒈऒݷ ᬰᤈᇿᒈ᮱ᗟ www.zbj.com a.zbjimg.com Node.js static files apis request nginx express
ᕹӞ෭பᵞᬌڊ ፊഴ frontend ᬮܻሿ࣋ጱ҅ฎ෭ப 1. ᕹӞ෭பᥢ҅෭பړᒵᕆ҅ኞԾሾहᵞ info ᕆڦ ݶೲᆙ warning,
error, fatal ᬰᤈړۆ 2. ׁᆙ request ᬰᤈ෭பᘸݳ҅ොӤӥړຉ҅चԭ domain ਫሿ 3. ԭᲙ෭ப҅כኸڊᲙጱञמ௳
ଫአፊഴ ፊഴ frontend चԭ෭ப҅զ݊ PM2 מ௳҅ਫሿᕹӞጱ Node ଫአፊഴଘݣ ๐ۓמ௳ CPUٖ҅ਂ
Node ଫአᬰᑕᇫா Node ଫአߥଫఘ٭ Node ଫአ෭ப ҁPM2҂
ق᱾᪠ፊഴ ፊഴ frontend चԭ request ࠔӞ᧗ ID҅ਫሿق᱾᪠ፊഴ Node SOA request
SID
ምكᗑ Node.js ದ֛ᔮ web framework ᪠ኧ session አಁᴴ හഝ੶ MySQL
Redis MC Solr RPC ਞق҅ےੂፘى ᶉாᩒრᓕቘ ཛྷࣘ۸ݎ̵አ҅ۖᶉړᐶ᮱ᗟ ݎሾह හഝ mock ᵞ౮ ᯈॺᦡෞኞா ᥢ ݎᥢ҅᮱ᗟᥢ ׁᩢᇇഴګ҅ܐ֢ၞᑕᥢ ളݗᓕቘᔮᕹ ଫአᚕಋຝ ᕟկᔮᕹ॔አ ᐺํ NPM ཛྷࣘوՁ ܔၥඪ೮ ᮱ᗟፊഴ ᮱ᗟ ᬰᑕਝಷ҅ᛔۖ᯿ސ ෭பᵞᵞӾັ፡ ଫአፊഴ ق᱾᪠ፊഴ ޞᦄګ
frontend ૡᑕጱᨶғ݄ᷚᴾ۸
ෛದጱف៧ࣈ frontend ದኞா҅ᯈॺᦡෞ Ո ᐒ܄ኞா҅ݸ॓٠ ᨶᰁ & පሲ
frontend ࡅཻڹᒒ҅ࡅཻ Node.js Ҙཻᬨஙמಚൈ