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
빠르게 훑어보는 리디페이 백엔드 개발기
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
RIDI
June 13, 2019
Programming
5.3k
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
빠르게 훑어보는 리디페이 백엔드 개발기
RIDI
June 13, 2019
Transcript
11 slides
ࡅܰѱ വযࠁח ܻ٣ಕ ߔূ٘ ѐߊӝ झషয Ѿઁ ъӏ
Infrastructure as Code Terraform workspace Prod $ terraform workspace select
prod $ terraform apply -> slave DB ࢤࢿ - ٘ ߸҃ झషܻܳ ా೧ࢲ ਗ ߸҃ झషܻ ୶ ਊ - Web UIܳ ా೧ࢲ ۽࠺ઉ ೞח Ѫࠁ ഻ঁ ҙ - PQ పझ ӝр زউ݅ ਗਸ ೠदਵ۽ ೞח ࢚ടੋ ҃, ਗਸ ೠߣী setup/ destroy ೞח Ѫب рಞ - RIDI Payীࢲח Terraformܳ ਊ೮णפ. resource "aws_db_instance" "slave" { count = “${terraform.workspace === ‘prod’ ? 1 : 0}” … } - زੌೠ terraform ٘۽ terraform stateܳ workspace ߹۽ աׇࢲ ҙܻೡ ࣻ ח ӝמ Dev $ terraform workspace select dev $ terraform apply -> slave DB ࢤࢿ X
Test Code Coverageо ח Ѫ - ਟ݅ೠ ੜޅػ ٘ ߸҃
ࢎ೦ٜ ৈӝࢲ ࠗ࠙ Ѧ۞ - ࠺ૉפझ ۽ী ೠ ࣁࠗੋ test ࡺ݅ ইפۄ, ஶ܀۞ ۨ߰ request/responseө ࢚ട ߹۽ ప झ - ۧѱ غפ testܳ Ӓր ח. -> न ח ٘ ࣻ -> ݃ ಣച - ࠛਃೞѱ ߈ࠂغח ۽ஸ పझܳ ੌ ࣻ . - ழߡܻח 100%ࠗఠ दۄח ݈ب ݅, ੌױ 100%ө Ҋ र زӝࠗৈо ؾפ. 2019. 4. 11 ӝળ ೧ࠁҊ र Ѫ TDD https://en.wikipedia.org/wiki/Test-driven_development
٘৬ API ޙࢲо ܻ࠙ غযਸ ٸ ࢤӝח ੌ ٘ܳ ࣻೞҊ
աࢲ ޙࢲ ࣻਸ өݡח. ٍןѱ ղо ޙࢲܳ ࣻೞݶ, ܲ ࢎۈ ٘ܳ ࣻೞҊ ޙࢲܳ ࣻਸ өݡח. … … … ঈࣽജ ٘৬ ޙࢲо э јन ⪟ਵݶ જѷ. Ӓۧݶ, ٘৬ ޙࢲ ޛܻੋ Ѣܻܳ ࠢৈࢲ ޙࢲܳ ࠁѱ ೞݶ যڄө? phpdoc https://github.com/zircote/swagger-php
phpdocਸ ਊೠ API ޙࢲ زച https://s3.ap-northeast-2.amazonaws.com/ridi-pay-backend-api-doc/api.html ٘৬ ޙࢲо ࠢযযࢲ, ٘
߸҃ী ٮۄࢲ ޙࢲо ࠛੌ غח ࠼بо ബҗਵ۽ য٘ח Ѫਸ ו՝ Build(CI Pipeline)
Open Source Ѿઁ दझమ ࣗझ ٘о ҕѐغח Ѫ ۹ੋ ੌחؘ,
RIDI Pay ҃ܳ ࢤп೧ࠁݶ ҕѐ ޅ ೡ ਬо হ. ࠁউ ݶীࢲب хҊ ա Ѫب হ. য়۰ ؊ ݆.
https://github.com/ridi/style-guide/blob/master/OSS.md
ࠁউ ஂড ઁࠁ
ࠁউ ஂড ઁࠁ റ ࢤпٜ - ੌױ hot fix -
ࢎࣗೠ ӏध पࣻ۽ ߊࢤ೮݅, Ӓزউ Unit Testо ցޖ positive caseী ೧ࢲ݅ ࢿغࢲ ֬ଢ଼؍ Ѫ ইקө - ܻ٣ಕ ߔূ٘ ࢲߡীࢲ KCP Ѿઁ ݽٕী Ӕೡ ࣻ ח ܖܳ ୭ࣗച ೞ. - KCP HTTP Proxy - ઁۄب ࠁউ ܻझܳ ೠߣ ഛੋ೧ࠁݶ જѷ • https://www.owasp.org/index.php/OWASP_Secure_Coding_Practices_Checklist • https://www.owasp.org/images/3/33/OWASP_Application_Security_Verification_Standard_3.0.1.pdf
None
Ҋणפ!
More Decks by RIDI
See All by RIDI
원격 근무 팀 운영 경험 공유
ridi
0
2.4k
SVG Icon Design Guide
ridi
2
4.4k
Next.js는 정말 zero config였다.
ridi
0
2.3k
3일 걸릴 것 같던 구매목록 다운로드는 왜 3주가 걸렸을까?
ridi
0
530
원격으로 한 달 일해보니
ridi
0
1.6k
리디북스 앱에 S Pen Remote 연동하기
ridi
2
2.9k
UI 라이브러리 개발기
ridi
1
2.9k
테스트 환경 개선하기
ridi
8
3.7k
추천 API 최적화하기
ridi
4
2.4k
Other Decks in Programming
See All in Programming
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
180
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
1.2k
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
250
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.5k
SODA - FACT BOOK(JP)
sodainc
1
40k
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
630
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
290
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
310
Spec-driven Development with AI
simas
PRO
0
2.3k
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
300
まずはコードより業務と向き合う:テーブル解体のためにPdMを呼んだ話
sakawe_ee
0
220
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
3
1.7k
Featured
See All Featured
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
400
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.9k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
340
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
830
Designing Powerful Visuals for Engaging Learning
tmiket
1
650
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
630
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Practical Orchestrator
shlominoach
192
12k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k