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
Zero downtime development with Elixir and Kubernetes
Search
Bartosz Górka
March 06, 2019
Technology
0
43
Zero downtime development with Elixir and Kubernetes
Zero downtime development with Elixir and Kubernetes by Bartosz Górka
Bartosz Górka
March 06, 2019
Tweet
Share
More Decks by Bartosz Górka
See All by Bartosz Górka
Programowanie funkcyjne
bartoszgorka96
0
51
Build modern applications with Elixir lang
bartoszgorka96
0
42
spr1_2018ZR.pdf
bartoszgorka96
0
15
Other Decks in Technology
See All in Technology
Password cracking: past, present, future
openwall
0
310
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
5
38k
TypescriptでのContextualな構造化ロギングと社内全体への導入
leveragestech
3
620
複雑なビジネスルールに挑む:正確性と効率性を両立するfp-tsのチーム活用術 / Strike a balance between correctness and efficiency with fp-ts
kakehashi
5
3.7k
TailwindCSSでUIライブラリを作る際のハマりどころ
shuta13
0
230
データベース04: SQL (1/3) 単純質問 & 集約演算
trycycle
0
180
【SORACOM UG 四国】今だからこそ学ぶ!IoTの全体像と最新事例、生成AIの基礎
soracom
PRO
2
190
能動学習のいろは:書籍「Human-in-the-Loop機械学習」3〜5章
hiroyoshiito
0
310
知識と実践を紡ぐGenAI / Connecting Knowledge and experience with GenAI
aki_moon
2
190
エンジニアゼロの組織から内製開発の DX をどう実現したのか / How did we achieve DX in in-house development in an organization with zero engineers?
genkiogasawara
7
3.2k
QAエンジニアが伝えたい品質保証の羅針盤 / Compass for Quality Assurance
mii3king
2
350
20240509 CloudWatch でいろいろなものを監視してみよう
masaruogura
1
120
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
15
1.1k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
242
1.2M
What’s in a name? Adding method to the madness
productmarketing
PRO
17
2.7k
The Language of Interfaces
destraynor
151
23k
In The Pink: A Labor of Love
frogandcode
138
21k
Web Components: a chance to create the future
zenorocha
306
41k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.7k
Raft: Consensus for Rubyists
vanstee
133
6.3k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
Debugging Ruby Performance
tmm1
70
11k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
22
1.4k
Transcript
ZERO DOWNTIME DEVELOPMENT BartoszGorka96
Common issues Downtimes cost money Downtimes are risky and unpredictable
BartoszGorka96
… BartoszGorka96
Development Database Application BartoszGorka96
Our focus We are most focused on deployment stage and
often ignore data migration BartoszGorka96
… BartoszGorka96
- Task 1 - The risks of data migration BartoszGorka96
Risks - data migration process 1. Underestimating time and effort
2. Doing all at once 3. Performance limitations 5. No rollback plan 4. Poor testing and migrating BartoszGorka96
… BartoszGorka96
- Task 2 - Actions which we can do to
prevent bugs BartoszGorka96
Risks - data migration process 1. Underestimating time and effort
2. Doing all at once 3. Performance limitations 5. No rollback plan 4. Poor testing and migrating R E P L Y BartoszGorka96
We can use 1. down and up instead only change
2. raw sql instead structures 3. step by step - to be able to rollback changes 5. concurrently index build 4. drop only when confirmed BartoszGorka96
… BartoszGorka96
Example Add new column with NOT NULL constant* * with
default value also BartoszGorka96
Summary Always be careful with database migration. It’s is surely
safe to take a backup before execute migration. Always think of backward compatibility usually without reverting migration. BartoszGorka96
BartoszGorka96 Please give me a feedback