Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Workshop at JS fwday-2018 "Best practices and t...
Search
Nikita Galkin
March 18, 2018
Programming
3
220
Workshop at JS fwday-2018 "Best practices and troubleshooting guide for node applications"
Nikita Galkin
March 18, 2018
Tweet
Share
More Decks by Nikita Galkin
See All by Nikita Galkin
React applications Failures
galkin
0
290
Node.js Development in 2022
galkin
0
800
Cloud Native Approach for Node.js Developers
galkin
0
87
Deep Dive Into NestJS at FWDays
galkin
0
510
Node.js Recipes: Road to Production.
galkin
0
200
Auth for React.js App
galkin
1
140
Web Developer Toolbox at 2020
galkin
1
230
Node.js Development in 2020: trends and techniques
galkin
0
540
Backend For Frontend: The Missing Manual at Devoxx Ukraine
galkin
1
160
Other Decks in Programming
See All in Programming
Google I/O recap web編 大分Web祭り2025
kponda
0
2.9k
Ruby Parser progress report 2025
yui_knk
1
200
Improving my own Ruby thereafter
sisshiki1969
1
130
パスタの技術
yusukebe
1
540
兎に角、コードレビュー
mitohato14
0
160
AIコーディングAgentとの向き合い方
eycjur
0
240
レガシープロジェクトで最大限AIの恩恵を受けられるようClaude Codeを利用する
tk1351
4
1.5k
未来を拓くAI技術〜エージェント開発とAI駆動開発〜
leveragestech
2
190
令和最新版手のひらコンピュータ
koba789
14
8.1k
コーディングは技術者(エンジニア)の嗜みでして / Learning the System Development Mindset from Rock Lady
mackey0225
2
610
TDD 実践ミニトーク
contour_gara
1
250
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
240
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
100
5.8k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
4 Signs Your Business is Dying
shpigford
184
22k
Building Adaptive Systems
keathley
43
2.7k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
The World Runs on Bad Software
bkeepers
PRO
70
11k
Code Review Best Practice
trishagee
70
19k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
The Cult of Friendly URLs
andyhume
79
6.6k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Transcript
Best practices and troubleshooting guide for node applications
Верю, что: ▰ Любая проблема должна решаться на нужно уровне
▰ Сложности не в технологиях, сложности в людях ▰ Проблемы надо обсуждать, идеи – продавать, а решения – демонстрировать 2 Никита Галкин
Ссылки Repo: github.com/galkin/js-fwdays-2018 Slides: speakerdeck.com/galkin
4 Избегайте магии Избегайте магии
5 Избегайте магии Понимайте, что происходит в вашем коде
Проблемы c
Проблемы с npm ▰ npm doctor ▰ npm cache clean
▰ --verbose ▰ https://github.com/npm/npm/wiki/Troubleshooti ng ▰ package-lock.json missed ▰ which npm
Инструменты ▰ depcheck ▰ sort-package-json ▰ npm-merge-driver ▰ npm dedupe
Проблемы разворачивания
12factor.net
Инструменты и подходы ▰ bootstrap & graceful shutdown ▰ Docker
▰ pm2 ▰ dotenv-safe
Проблемы во время выполнения Node.js
Проблемы с Node.js ▰ Неправильная реализация ▰ Bit event loop
delay или все “Тормозит” ▰ unhandledRejection/uncaughtException ▰ Memory-leak ▰ Проблемы с libUV
Node.js remote debugging ▰ Bind port via ssh -N -i
<path_to_ssh_key> -L 9229:127.0.0.1:9229 <username>@<host_ip_address> ▰ kill -SIGUSR1 <nodejs_app_pid> ▰ Enjoy in Google Chrome as local Debug
15 Главная идея: Избегайте магии Твиттер: @galk_in Слайды: speakerdeck.com/galkin Сайт:
galk.in