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
OpenRestyについて
Search
newapplesho
February 01, 2018
Programming
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
OpenRestyについて
OpenRestyについて
newapplesho
February 01, 2018
More Decks by newapplesho
See All by newapplesho
Continuous Integration for Pharo Smalltalk Part 2 (Travis CI)
newapplesho
0
220
今時なウェブ開発をSmalltalkでやってみる?
newapplesho
0
200
Continuous Integration for Pharo Smalltalk
newapplesho
0
180
Elasticsearch for Pharo Smalltalk
newapplesho
0
180
SourceCode Management with Pharo Smalltalk - Pharo Smalltalkソースコード管理方法
newapplesho
0
160
RUNNING Smalltalk - 実践Smalltalk
newapplesho
0
140
AWS SDK for Smalltalk
newapplesho
0
140
How Smalltalker Works
newapplesho
0
130
愛せよ、さもなくば捨てよ。
newapplesho
0
150
Other Decks in Programming
See All in Programming
SREの越境 / SRE Collaboration
y0hgi
2
300
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
960
気持ちぃ〜角丸 Squircle
ryu1013
0
260
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
1
2.3k
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
490
mrbgem 三角測量 開発
ogom
0
230
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
350
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.8k
The Rails Doctrine Decade
koic
2
560
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
400
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
460
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
240
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
HDC tutorial
michielstock
2
950
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Abbi's Birthday
coloredviolet
4
10k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Exploring anti-patterns in Rails
aemeredith
4
530
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
210
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Statistics for Hackers
jakevdp
799
230k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
Producing Creativity
orderedlist
PRO
348
41k
Transcript
S h o Yo s h i d a (
@ n e w a p p l e s h o ) O p e n R e s t y Λ ༻ ͍ͯ ΠέΠέ ͳ α ʔ Ϗ ε Λ ࡞ Δ ํ ๏ 2 0 1 8 / 0 2 / 0 1
४ උ Ͱ ͖ ͯ ͍ ͳ ͍Ͱ ͢ ɾ
ɾ ɾ ͢Έ·ͤΜɻௐࢠͷΓ·ͨ͠ɻ
O p e n R e s t y ͱ
• lua-nginx-moduleͳͲɺศརͳϞδϡʔϧΛՃͨ͠nginxΛ؆୯ʹϏϧυ Ͱ͖ΔΑ͏ʹͯ͘͠ΕΔϓϩμΫτ • ngx_luaΛ͡Ίͱ͢ΔCͰॻ͔Ε֤ͨछαʔυύʔςΟϞδϡʔϧͱ ngx_luaͷAPIΛར༻ͨ͠restyϞδϡʔϧɺLua/LuaJITͰߏ
L u a - n g i n x -
m o d u l e • https://github.com/openresty/lua-nginx-module • https://www.nginx.com/resources/wiki/modules/lua/
N g i n x Ͱ l u a
͑Δ ͱ Կ ͕ ͍ ͍ ͷ ʁ • ϛυϧΣΞʹೝূɺϧʔςΟϯάɺΞΫηε੍ޚͳͲΛͤΒΕΔ • ׂͷղͨ͠ΠϯϑϥߏɺαʔϏεઃܭ͕ՄೳʹͳΔͣ • ཁ͢ΔʹϛυϧΣΞΛͬͱ׆༻Ͱ͖Δ
ྫ • OpenRestyͱRedis https://qiita.com/voluntas/items/ b37aedc70058c519aa00 • td-agent BigQuery https://github.com/kaizenplatform/fluent-plugin- bigquery
O p e n R e s t y Λ
ͬ ͨ Π ϯ ϑ ϥ ߏ ྫ HTTP server OpenResty Application Server ೝূ ϧʔςΟϯά ۀϩδοΫA ۀϩδοΫB ۀϩδοΫC ೝূ ϧʔςΟϯά ۀϩδοΫA ۀϩδοΫC ۀϩδοΫB
ϛ υϧ Σ Ξ Λ ڧ ͘ ͢ Δ
ྑ ͞ • HTTP headerͷՃͳͲOpenRestyʹ·͔ͤΒΕΔ • OpenRestyԼͷαʔόʔಛఆͷۀϩδοΫ͚ͩʹઐ೦Ͱ͖Δ • APIίʔϧʹԠͨ͡ॲཧͳͲهड़Ͱ͖ɺϚΠΫϩαʔϏεԽ͘͢͠ͳΔ
A P I α ʔ Ϗ εΠ ϯ ϑ ϥ
ߏ ֓ ཁ API Clientʹରͯ͠෦ɼ֎෦ͷϧʔςΟϯάΛߦ͏αʔόʔʢAPIϧʔςΟϯάαʔόʔʣΛલ ஈʹஔΛߦ͏ɻ֎෦APIͷΞΫηεͷࡍʹɺAPIϧʔςΟϯάαʔόʔ͕APIΞΫηεೝ ূΛߦ͍ɺAPI ServerଓΛ͢Δɻ
A P I όʔ δϣ ϯ Ճ ࣌ ͷ
ߏ API όʔδϣϯՃͷࡍʹɺAPIϧʔςΟϯάαʔόʔɺదͳAPI ServerଓΛ͢Δ Α͏ʹ੍ޚ͢Δ
ৄ ͠ ͘