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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
Transcript
10 slides
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
More Decks by CucumisSativus
See All by CucumisSativus
Cool things in dry-rb
cucumissativus
0
69
Neural networks basis
cucumissativus
0
87
Ruby - Hashe pod maską
cucumissativus
0
46
Rubinius vs. CRuby
cucumissativus
0
62
Garbage Collector w ruby
cucumissativus
0
95
Other Decks in Technology
See All in Technology
Claude Certified Developer – Professional 試験対策
shinoisa
0
280
AWS Well-Arhitected Frameworkセキュリティの柱 について
miu_crescent
PRO
2
260
AI-DLCでソフトウェア開発の速さは 上がったのか?
rfdnxbro
0
190
「正しいデータ」の定義をAI エージェントとつくるGoogleADKによるデータ品質定義の実践
takaha4k
0
150
セキュリティチームは どのコンテナイメージの脆弱性対応を優先すべきか 〜CISA新指針とSCCで作る脆弱性トリアージ〜
swdtkuy
0
360
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
290
「それ、AIでよくない?」- AI時代の技術発信はオワコンなのか?
estie
1
110
Ignite 2026 Security
babaneko
0
110
エンタープライズIAMについて - ID・権限をどう統制するか
oidfj
1
360
メディアアートを〈拡張〉する——器官学と個体化論を手がかりに
_kotobuki_
1
390
メルカリの小規模チーム「Pod」で、 エンジニアがデータアナリストなしで、 AIを使ってデータ分析の自走を目指す取り組み
jackojacko_
1
370
SBOM 生成ツールで 2026 Minimum Elements はどこまで満たせるのか
gokken
0
180
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
910
The Mindset for Success: Future Career Progression
greggifford
PRO
0
570
From π to Pie charts
rasagy
1
460
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
790
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
830
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
640
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k
Highjacked: Video Game Concept Design
rkendrick25
PRO
2
600