Skip to content
CertDirectory.io
Back to the blog
9 min read

Edge Location කියන්නේ මොකක්ද?

Kavinda Dilshan16 Oct 2026

Edge Location කියන්නේ මොකක්ද? – Content එක User ලඟට ගෙනෙන Cloud Magic එක

හිතන්න…

ඔයා Sri Lanka වල ඉඳලා website එකක් open කරනවා.

Website එකේ main servers තියෙන්නේ America වල.

Image එකක් load වෙනවා.

Video එකක් play වෙනවා.

CSS files එනවා.

JavaScript files download වෙනවා.

හැම request එකක්ම America වල server එකටම ගිහින් response එකක් එනකම් wait කරන්න වුණොත්?

Website එක slow වෙන්න පුළුවන්.

User experience එක poor වෙන්න පුළුවන්.

Latency වැඩි වෙන්න පුළුවන්.

එතකොට question එක:

“Content එක User ලඟට ගෙනියන්න බැරිද?”

පුළුවන්.

ඒකට Cloud world එකේ ගොඩක් වැදගත් concept එකක් තියෙනවා.

Edge Location.


Edge Location කියන්නේ මොකක්ද?

සරලව කියනවා නම්,

Edge Location කියන්නේ end users ලාට geographically ලඟින් content deliver කරන්න භාවිතා කරන infrastructure point එකක්.

Main Application Server එක Region එකක තියෙන්න පුළුවන්.

හැබැයි static content එක User කෙනාට ලඟ Edge Location එකක cache කරලා තියාගන්න පුළුවන්.

උදාහරණ:

  • Images

  • Videos

  • CSS files

  • JavaScript files

  • Downloads

  • Static web content

User කෙනා request එකක් කළාම, හැම වෙලාවෙම distant origin server එකට යන්න ඕන නෑ.

Nearest Edge Location එකෙන් content එක serve වෙන්න පුළුවන්.

මේකෙන් speed improve වෙනවා.

Latency අඩු වෙනවා.

User experience එක better වෙනවා.


Simple Example එකක්

හිතන්න ඔයාට Colombo වල friend කෙනෙක්ට book එකක් දෙන්න ඕන.

Book එක තියෙන්නේ New York වල.

හැම වෙලාවෙම New York ඉඳලා parcel එකක් එවන්න වුණොත්?

Time යනවා.

Cost වැඩි.

Delay වෙනවා.

හැබැයි ඒ book එකේ copy එකක් Colombo වල store එකක තියෙනවා නම්?

Friend කෙනාට local store එකෙන් ගන්න පුළුවන්.

Fast.

Easy.

Cloud world එකේ Edge Location එකත් roughly ඒ වගේ.

Main copy එක origin server එකේ.

Cached copy එක user ලඟ Edge Location එකේ.


Region, Availability Zone සහ Edge Location අතර වෙනස

මේ තුන confuse වෙන්න පුළුවන්.

Region

Large geographic area එකක්.

Application infrastructure, databases, servers වගේ resources run වෙන main cloud location.

Availability Zone

Region එකක් ඇතුළේ isolated infrastructure location එකක්.

High Availability සඳහා AZs කිහිපයක් use කරන්න පුළුවන්.

Edge Location

Users ලාට content ඉක්මනින් deliver කරන්න geographically closer point එකක්.

Simple hierarchy එකක් විදිහට:

Region → Application lives here

Availability Zones → Application stays available here

Edge Locations → Content reaches users faster here

මේ line තුන මතක තියාගන්න.


Edge Location එකේ main goal එක speed ද?

Mostly, yes.

හැබැයි speed විතරක් නෙවෙයි.

Edge Locations use කරන්නේ:

  • Latency අඩු කරන්න

  • Static content cache කරන්න

  • User experience improve කරන්න

  • Origin servers වල load එක අඩු කරන්න

  • Global users ලාට consistent performance දෙන්න

  • Security services edge එකේ apply කරන්න

මේ නිසා Edge Infrastructure modern internet එකේ ගොඩක් වැදගත්.


CloudFront එක්ක Edge Locations

AWS world එකේ Edge Locations ගැන කතා කරනකොට Amazon CloudFront අනිවාර්යයෙන්ම හම්බවෙන service එකක්.

CloudFront කියන්නේ AWS Content Delivery Network — CDN service එක.

සරලව:

Origin Server → CloudFront → Edge Location → User

හිතන්න website එකේ image එකක් origin server එකේ තියෙනවා.

User කෙනෙක් ඒ image එක request කරනවා.

CloudFront nearest edge point එකක image එක cache කරලා තියෙනවා නම්…

Origin server එකට යන්න ඕන නෑ.

Edge Location එකෙන්ම image එක serve වෙන්න පුළුවන්.

Fast.

Efficient.


Cache කියන්නේ මොකක්ද?

Edge Location තේරුම්ගන්න cache concept එකත් දැනගන්න ඕන.

Cache කියන්නේ frequently requested data temporary copy එකක් user ලඟට closer තැනක තියාගන්න එක.

Example එකක්.

Image එකක් 10,000 users ලා request කරනවා.

Origin server එකට 10,000 requests යවන්න වෙනවා නම් load වැඩි.

හැබැයි Edge Location එකේ image එක cache කරලා තියෙනවා නම්?

Users ගොඩක් same cached copy එකෙන් serve කරන්න පුළුවන්.

Origin server එකේ pressure අඩු වෙනවා.

Network travel distance අඩු වෙනවා.

Response time improve වෙනවා.


First Request එකට මොකද වෙන්නේ?

හිතන්න user කෙනෙක් content එක first time request කරනවා.

Edge Location එකේ ඒ file එක cache වෙලා නැහැ.

එතකොට Edge Location එක origin server එකට request කරනවා.

Origin එකෙන් content ගන්නවා.

Userට send කරනවා.

ඊට පස්සේ ඒ content එක cache එකේ තියාගන්න පුළුවන්.

Next user request කරනකොට?

Cache එකෙන්ම serve කරන්න පුළුවන්.

මේ concept එකට often:

Cache Miss සහ Cache Hit

කියලා කියනවා.

Cache Miss

Content එක edge cache එකේ නැහැ.

Origin එකෙන් ගන්න වෙනවා.

Cache Hit

Content එක already cache වෙලා තියෙනවා.

Edge එකෙන්ම serve කරනවා.

Cache Hit වැඩි නම් generally performance හොඳ වෙන්න පුළුවන්.


User ලඟට content ගෙනියන එකේ beauty එක

Cloud Computing වල ගොඩක් concepts central infrastructure ගැන.

Servers.

Databases.

Storage.

Regions.

හැබැයි Edge Computing සහ CDN කියන concepts එක different question එකක් අහනවා:

“User කෙනාට data ලඟට ගෙනියන්න පුළුවන්ද?”

මේ idea එක powerful.

මොකද internet speed කියන්නේ server CPU speed එක විතරක් නෙවෙයි.

Distance matters.

Network hops matter.

Latency matters.

User location matters.

ඒ නිසා system එක fast කරන්න server එක powerful කරන එක විතරක් enough නෑ.

Sometimes best solution එක:

Content එක user ලඟට move කරන එක.


Video Streaming Example එකක්

හිතන්න millions of users video එකක් stream කරනවා.

හැම user request එකම එක central server එකකට යවන්න වුණොත්?

Server load huge.

Network traffic massive.

Latency වැඩි.

Scaling hard.

CDN සහ Edge Locations use කරලා popular video segments users ලඟට closer locations වල distribute කරන්න පුළුවන්.

එතකොට:

User experience better.

Buffering අඩු.

Origin load අඩු.

Global delivery better.

මේ නිසා streaming platforms, gaming platforms, news sites, e-commerce sites, software download services වගේ systems වල edge delivery ගොඩක් වැදගත්.


E-commerce Example එකක්

Online store එකක් imagine කරන්න.

Product images thousands.

Users ලා world එක පුරා.

Product page එක open කරන හැම වෙලාවෙම images central server එකෙන් load වුණොත් page slow වෙන්න පුළුවන්.

Images CDN එකක cache කරලා Edge Locations හරහා serve කළොත්?

Page load faster.

User experience better.

Conversions වලටත් indirect impact එකක් වෙන්න පුළුවන්.

Technology decision එකක් sometimes business result එකකට directly connect වෙනවා.


Edge Location එකේ Application එක run වෙනවද?

Sometimes edge platforms compute capabilitiesත් දෙනවා.

හැබැයි basic CDN context එකේ Edge Location එකේ main purpose එක content users ලඟට cache සහ deliver කරන එක.

Region එකක run වෙන full application infrastructure එක සහ Edge Location එක එකම thing එකක් කියලා හිතන්න එපා.

මේක important.

Region = Core infrastructure

Edge = Userට closer delivery point


Origin කියන්නේ මොකක්ද?

CDN world එකේ අනිවාර්ය term එකක්:

Origin

Origin කියන්නේ original content source එක.

උදාහරණ:

  • Web Server

  • S3 Bucket

  • Application Server

  • API

  • Media Storage

Edge Location එකේ cache miss වුණොත් content එක origin එකෙන් fetch කරනවා.

ඒ නිසා flow එක මේ වගේ:

User

↓

Nearest Edge Location

↓

Cache තියෙනවද?

Yes → Serve immediately

No → Origin එකෙන් ගන්න → Cache කරන්න → Userට දෙන්න

Simple.


Edge Location සහ Security

Edge Infrastructure speed විතරක් නෙවෙයි, security පැත්තටත් useful.

Traffic origin server එකට එන්න කලින් edge layer එකේ inspect හෝ filter කරන්න පුළුවන්.

උදාහරණයක් විදිහට:

  • DDoS protection

  • Web Application Firewall rules

  • TLS termination

  • Bot filtering

  • Request filtering

වගේ security features edge infrastructure එක්ක combine කරන්න පුළුවන්.

මේකේ advantage එක:

Bad traffic origin එකට ලඟා වෙන්න කලින් stop කරන්න පුළුවන්.

ඒක performance සහ security දෙකටම useful.


Latency කියන්නේ ඇයි මේ තරම් වැදගත්?

User කෙනෙක් click කරනවා.

Response එකට තත්පර ගණනක් යනවා.

Userට architecture diagram එක වැදගත් නැහැ.

ඔහුට feeling එක simple.

“මේ website එක slow.”

Technology background එකේ tiny delays එකතු වෙලා user experience එකට ලොකු impact එකක් දෙන්න පුළුවන්.

DNS lookup.

Network travel.

TLS handshake.

Server processing.

Database query.

Asset downloads.

මේ හැම දෙයක්ම time ගන්නවා.

Edge Location එක මේ total journey එකේ distance සහ repeated content delivery cost අඩු කරන්න උදව් කරනවා.


Cloud Engineer කෙනෙක් මේ concept එක දැනගන්න ඕන ඇයි?

Application එක work කරනවා කියන එක enough නෑ.

Engineer කෙනෙක්ට තව questions අහන්න ඕන:

Users ලා කොහෙද?

Static content කොහෙන් serve වෙනවද?

Origin load කොච්චරද?

Cache policy එක හරිද?

TTL කොච්චරද?

Sensitive content cache වෙනවද?

Dynamic content edge එකෙන් handle කරන්න පුළුවන්ද?

CDN fail වුණොත් fallback එක මොකක්ද?

Security edge එකේ apply කරනවද?

මේ questions තමයි performance architecture එක improve කරන්නේ.


Cache හැම දෙයක්ටම use කරන්න පුළුවන්ද?

නැහැ.

හිතන්න User Aගේ personal bank balance එක.

ඒක public cache එකක save කරන්න බෑ.

Sensitive data.

Dynamic data.

Frequently changing data.

Personalized responses.

මේවාට cache strategy carefully design කරන්න ඕන.

ඒ නිසා CDN use කරන එක:

“Everything cache කරමු.”

කියන approach එකක් නෙවෙයි.

Correct question එක:

“මොන content එක cache කරන්න safe සහ useful ද?”

Good Engineering හැම වෙලාවෙම trade-offs ගැන.


Edge Location vs Local Zone

AWS වල තවත් term එකක් හම්බවෙන්න පුළුවන්:

Local Zone

ඒක Edge Location එකම thing එක නෙවෙයි.

Local Zone කියන්නේ certain workloads user ලඟට closer compute, storage සහ other cloud resources ගෙනෙන infrastructure extension එකක්.

Edge Location එක mainly content delivery සහ edge services සඳහා use වෙන concept එකක්.

ඒ නිසා terms දෙක confuse කරන්න එපා.


Simple Mental Model එක

මේක මතක තියාගන්න:

Region

“My main cloud infrastructure lives here.”

Availability Zone

“If one location fails, I have another one.”

Edge Location

“My users should not travel far to get common content.”

මේ sentences තුන මතක තිබ්බොත් concept එක easy.


Imagine කරන්න…

Sri Lanka වල user කෙනෙක් button එකක් click කරනවා.

Main origin server එක Europe හෝ America වල.

හැබැයි image එකක්, script එකක්, video segment එකක් userට geographically closer edge infrastructure එකක තියෙනවා.

Milliseconds වලින් content එක deliver වෙනවා.

Userට පේන්නේ simple webpage එකක්.

Engineer කෙනෙක්ට පේන්නේ:

DNS.

CDN.

Edge Cache.

Origin.

Network Paths.

TLS.

Security.

Monitoring.

මේ whole hidden system එකම එක goal එකකට වැඩ කරනවා:

Userට fast experience එකක් දෙන්න.

ඒක තමයි distributed systems වල beauty එක.


මතක තියාගන්න ලේසිම විදිහ

Edge Location කියන්නේ:

User ලඟට content ගෙනෙන infrastructure point එකක්.

CDN කියන්නේ:

Edge Locations භාවිතා කරලා content globally distribute කරන system එකක්.

Cache කියන්නේ:

Frequently requested content copy එකක් temporary තියාගන්න mechanism එක.

Origin කියන්නේ:

Original content තියෙන source එක.


අවසානයේ...

Cloud Architecture කියන්නේ servers powerful කරන story එකක් විතරක් නෙවෙයි.

Sometimes best performance improvement එක Server එක change කරන එක නෙවෙයි.

Database එක change කරන එකත් නෙවෙයි.

User සහ content අතර distance එක අඩු කරන එක.

ඒක තමයි Edge Locations අපිට teach කරන beautiful lesson එක.

Internet එක global.

Users ලා world එක පුරා.

හැබැයි user කෙනෙක්ට experience එක local වගේ feel වෙන්න ඕන.

Fast.

Responsive.

Smooth.

ඔහුට content එක ලෝකයේ කොහෙන් ආවද කියලා දැනෙන්න ඕන නෑ.

එතන තමයි Edge Infrastructure එක quietly තමන්ගේ වැඩේ කරන තැන.

Best infrastructure ගොඩක් වෙලාවට users ලාට පේන්නේ නැහැ.

ඔවුන්ට දැනෙන්නේ එකම දෙයක්.

“This feels fast.”

Edge Locations Bring Data Closer.png