logo
glass Back to all postsAWS services

AWS 101: Amazon RDS

glassApril 29, 2025
glass3 min read
aws logo

ဒီနေ့ အလှည့်ကျတာကတော့ AWS ရဲ့ database service ဖြစ်တဲ့ Amazon RDS ပဲဖြစ်ပါတယ်။ RDS ရဲ့ အရှည်ကောက်က Relational Database Service ဖြစ်ပါတယ်။ RDS က relational database ဖြစ်တဲ့အတွက် SQL use case အတွက်ပဲသုံးလို့ရမယ်။ NoSQL use case ဆိုရင်တော့ AWS မှာ service သပ်သပ်တွေရှိတယ်, document, dynamo, neptune စတာတွေပေါ့။



RDS မှာ MySQL, Postgresql စတဲ့ database မျိုးစုံသုံးလို့ရတယ်။ RDS ကလဲ EC2 instance လိုပဲ Database instance ရွေးပေးရတယ်။ ဘယ် size သုံးမှာလဲ ဘယ် spec သုံးမှာလဲဆိုပြီးရွေးပေးရတယ်။ ပြီးရင် RDS မှာ နာမည်အကြီးဆုံး ကတော့ Aurora ပဲ။ Aurora က တော်တော် high performance ဖြစ်တယ်၊ AWS ရဲ့ fully managed service လဲဖြစ်တယ်။ fully managed ဆိုတဲ့အတိုင်း hardware provisioning တွေ database setup တွေ patching တွေ AWS ဘက်ကတာဝန်ယူပေးတယ်။ Amazon Aurora က ရိုးရိုး RDS ထပ် ကောင်းတယ်ဆိုတော့ ဈေးကလဲပိုကြီးတာပေါ့။ ဒါမယ့် ပေးရတဲ့ဈေးနဲ့ ရတဲ့ performance နဲ့တော်တော်တန်တယ်လို့ပြောရမယ်။



RDS မှာ High Availability မြင့်အောင်လုပ်လို့ရတဲ့ features တွေရှိတယ်။ Read Replica တို့ Multi-AZ Deployment တို့ပေါ့။ ဒီ feature နှစ်ခုအကြောင်းရှင်းပြပေးမယ်။ Read Replica က database ကို ပုံစံတူ တစ်ခုခွဲထုတ်ထားတာပဲ။ Read Replica က ဘယ်အချိန်တွေသုံးလဲဆို application nature က read query က write query ထပ် နှစ်ဆလောက်များနေရင် Read Replica သုံးသင့်တယ်။ Read Replica ဆိုတဲ့အတိုင်း database ရဲ့ ပုံစံတူ ဒါပေမယ့် read လုပ်ဖို့အတွက်ပဲ။ primary database မှာ read query တွေ အရမ်းများလာတဲ့အခါ performance ကျပြီး write query အတွက်ပါ impact ရှိလာနိုင်တဲ့အတွက် Read Replica ခွဲထုတ်ရခြင်းသဘောပါ။ အဓိက ကတော့ write query ကို primary database မှာလုပ်မယ်။ primary database က write data ကို ပြီးမှ read replica တွေဆီ ပြန် replicate ပေးတာ။ ဒါကြောင့် read replica ကို asynchronous replication နဲ့ replicate တယ်လို့ခေါ်တယ်။



Multi-AZ Deployment ကကျတော့ Multi-AZ ဆိုတဲ့အတိုင်း Region တစ်ခုရဲ့ Availability Zone နှစ်ခုရှိတယ်ဆို အဲ့ AZ နှစ်ခုမှာ database တစ်လုံးစီ သွား deploy မှာ။ Primary တစ်လုံးနဲ့ Standby နောက်တစ်လုံး။ Multi-AZ Deployment မှာ database နှစ်လုံးကို ကြားထဲမှာ synchronous replication နဲ့ replicate လုပ်တယ်။ တစ်လုံးမှာ လာ write ရင် အဲ့ write data ကို နောက်တစ်လုံးကို တန်း replicate လုပ်ပေးတယ်။



Read Write တစ်လုံးစီ ထားတဲ့ deployment မှာ read replica ကို primary database ရဲ့ region နဲ့ မတူတဲ့ region မှာ သွားဆောက်မယ်ဆိုရင်တော့ read replica ကဈေးပိုကြီးလိမ့်မယ်။ ဘာလို့ဆို region နှစ်ခု data replication လုပ်မှာဖြစ်တဲ့အတွက် data transfer in and out charges cost တွေရှိလာနိုင်တယ်။

footer background

Managed and
Professional
ICT Services
Provider

Contact Us

B8 ICT Solutions