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
How does the unicorn work
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
CucumisSativus
February 19, 2015
Technology
74
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
How does the unicorn work
Presentation shwon on 19.02.2015 at Łódź Ruby user Group
CucumisSativus
February 19, 2015
More Decks by CucumisSativus
See All by CucumisSativus
Cool things in dry-rb
cucumissativus
0
68
Neural networks basis
cucumissativus
0
82
Ruby - Hashe pod maską
cucumissativus
0
45
Rubinius vs. CRuby
cucumissativus
0
61
Garbage Collector w ruby
cucumissativus
0
94
Other Decks in Technology
See All in Technology
スキマバイトという雇用形態は存在しないので、雇用期間1日のアルバイト契約を事業者とワーカーが結ぶ手続きを支えるのがタイミーなんです
akitoshiga
0
200
DevelopersIO 2026 知識の地図を描く ─ オントロジーとは何か?
ishikawa_satoru
1
1.7k
「Docker Desktop不要の時代」は 来たのか?
ueponx
0
770
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
150
AIカンパニーへの転換を支えた、エンジニアの仕事の再定義
kworkdev
PRO
2
1.2k
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
860
Running Kotlin + Quarkus with Lambda
nealle
1
3.7k
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
220
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
4.9k
AI駆動開発の時代になったのでトヨタ生産方式から見直す
terurou
7
6k
夫婦で子育てするための育児標準化
codmoninc
PRO
0
340
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
290
Featured
See All Featured
Ethics towards AI in product and experience design
skipperchong
2
430
ラッコキーワード サービス紹介資料
rakko
1
5.3M
Git: the NoSQL Database
bkeepers
PRO
433
67k
Building the Perfect Custom Keyboard
takai
2
910
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
490
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
The Invisible Side of Design
smashingmag
301
52k
Transcript
How does the Unicorn work? Michał Gutowski Binar::Apps
[email protected]
/
[email protected]
Agenda • Basic info • Rack • Connection handling •
Forking & load balancing • Parsing HTTP requests • Restarting
Basic info • Commonly used web server for RoR applications
• Rack based • uses traditional Unix prefork mode • and Unix signals
Rack • Interface between Ruby and Ruby frameworks • Wraps
HTTP requests and responses • You can exchange rack based severs without changing application
Connection handling • Master process creates listening socket • When
new connection arrives child process and new socket are created • Operating system takes care of load balancing
Parsing HTTP requests • Taken from Mongrel • Uses Ragel
state machine
None
Restarting • Possibility to hot swap • In case of
failure possibility to roll back 1. USR2 to master process 2. WHINCH to old master 3. QUIT to old master * in case of trouble HUP to reload old master and QUIT to new master
References • https://github.com/blog/517-unicorn • http://tomayko.com/writings/unicorn-is-unix • http://unicorn.bogomips.org/
ujeb.se/JMVA