F
Forumar7mo ago
luffy

Database Replicas and optimization

Service တစ်ခုမှာ daily active user millionနဲ့ချီပြီးရှိတဲ့ဟာဆိုရင် database read replicas ထည့်တာ / cache သုံးတာအပြင် တခြားဘယ် technique တွေသုံးပြီး optimize လုပ်လို့ရသေးလဲဗျ။ write များတာဆိုရင်ကော master 1 node ထဲနဲ့တင်လုံလောက်လားဗျ။realworld မှာဆိုရင်ရောဘယ် approach တွေသုံးကြလဲဗျ။ share ပေးပါဦးဗျ။
Solution:
cqrs က write / read heavy scanerio မှာပိုပြီးသုံးတာလားဗျ။
Jump to solution
6 Replies
Shaung Bhone
Shaung Bhone7mo ago
@aungmyatmoe
aungmyatmoe
aungmyatmoe7mo ago
Node တစ်ခုတည်းမလောက်ဘူးဗျ ထပ် scale ရမှာ Code Level မှာလည်း CQRS ပြောင်းမှရမှာ ခုဟာက just resources scaling နဲ့ပဲဆင်နေတယ်
luffy
luffy7mo ago
ဟုတ်အကို write logic တွေကို command ကနေသွား ပြီးတော့ read တွေကို query ကနေလုပ်ပြီးတော့replicas ကနေဖတ်အဲ့လိုလားအကို။
Solution
luffy
luffy7mo ago
cqrs က write / read heavy scanerio မှာပိုပြီးသုံးတာလားဗျ။
luffy
luffy7mo ago
ရှာဖတ်ကြည့်လိုက်တာနားလည်သွားပါပြီဗျ။ ကျေးဇူးပါ။
aungmyatmoe
aungmyatmoe7mo ago
Yep