SlideShare ist ein Scribd-Unternehmen logo
1 von 4
While writing my previous blog https://prashanthpanduranga.wordpress.com/2015/04/22/architecting-
extremely-large-scale-web-applications-a-must-read-for-every-architect/,I hadplannedatrip to Tirupati.
It was long due and my LONG trip away from home to Liverpool was scheduled to be a week after.
My lastcoupleof visitswaswith friends andthiswasthe first visitwithChaitra (Wife) andRynia(my princess
daughter), and secondvisit with my mom and dad. The first with them was a long time ago when I was a
little boy. So I was super excited.
What I did NOT realize was that, it was a Friday, with Lunar Eclipse the next day and the summer holidays
had just started. On a Lunar Eclipse the temple was scheduled to be closed for over 11 hours. Being the
most visited place of worship in the world, the usually 100,000 visitors a day seemingly was double that.
It is usually good to book trips with agencies who organize the complete package. They obviously know
what’sbest? NOTREALLY.... Tirumala now has booking online, which obviously I dintknow, theagency dint
recommend thateither. Whenwe gotthere, they saidthe bestandthefastestway isvia theSarvaDarshan,
the free darshan, without any pre-booking, that’s the only option. To top it all, the Chief Minister was
visitingthe temple andthatonly meanslonger waiting time. . . . Wereached Tirupatiat3:30 am . . .and the
wait began . .
Waiting in the line, my bulwark against any kinds of phobia, had started to feel being crushed by
demophobia, 100’s of 1000’s of visitors rushing their way through like particles accelerated by a force
within, beingin alarge hadroncollider, I couldn’tbutstopthinkingabout thesheernumber, andthetemple
authority(TTD: Tirumala Tirupati Devasthanams) quandary.
Imagine processingthat many numberof requests - Cannotload balance, No denial of requests, Noerror
codes, requests cannot be processed concurrently, No way to distribute requests and No special way to
handle bursts in activity such as lunar eclipse
Few measures had been taken by TTD though: Throttling, Throttling and more Throttling
Queuing requests – Needless to say Sarva Darshan queue was the longest
There are different types of queues. Free queue (Sarva Darshan), Paid queues (multiple of them – All
booked via online now) and queue where visitor climb up the hills via the steps
And as we can expect, they are prioritized queues. Sarva Darshan having the lowest priority.
While bits and pieces of the queue processing design patterns such as Throttling pattern, Priority Queue
Pattern, Queue based load levelling pattern all seemed to have been applied here, It also reminded me of
the Leaky bucketalgorithm, where visitorscome tothe queuelike a water being addedto the bucket, with
a maximum request quota of few thousands beyond which is throttled with a restore rate of a hours.
Yes Hours !
Rynia kept the trip alive and fun with her playing, skillfully using the sketch pen around my neck and
Govinda, Govinda in between repeating after the piligrims
It is time to introduce the VaikuntamQueueComplex (VQC). A 57 room facility with 3 levels and19 rooms
on each level. After movingthroughthe standingqueue for hours, thevisitors are throttledin this facility.
We reached this facility by 12:30 pm. We were made to wait in it till 10:00 pm, before the queue started
to move again
When we came to thatroom, there was a boardwhich said thatthe darshanam (viewing God) is next day
morning4:00 am. In front of us, was a life size television with live abhishekamindisplay. Justlike
customersleaving website viewing somecached content, the wait time was so muchthat a few folks
decided to leave.
There was photocard systemin the buildingwhere in youcould get the cards, leave the buildingand get
back later, however apartfrom the “4:00 am” signthere wasn’tanybody whowould/couldexplain the
reasonfor the delay. Rememberno error codes, notime delay messages either.
And that“4:00 am” messagewas acting like a proxy server/request filter redirecting messagesto the CDN
with the cached requests, pushingvisitorsaway to come back to visit anotherday.
All credit to TTD thoughtoensure thatno visitorstayshungry. Be it the standingqueue or in the VQC,
frequently the team wouldcome by, to server food, snacksand all for free of cost.
The queue startedto move againat 10:30 pm. There was a small detour of further throttlingto collect
the ladduprasadamtickets anda confluence of visitors from all the queues. Finally an hourafter we
were endowed to be in front of the omnipresent.
Dint fail to notice one more thing, the request accelerators (TTD staff), who will not let u stand beyond a
second in front of the GOD
I have to say, the power of faith is far greater than mostperceive. Even after hoursand hoursof standing,
walking and waiting, My momwho has a nagging pain in her knees, dint feel the pain, and rather felt that
the pain she had, has reduced, my daughter got her wishful toys, my wife and dad happy and myself
relieved that the trip was safe, satisfied and venerational at different levels.
.

Weitere ähnliche Inhalte

Andere mochten auch (9)

Light suitcase
Light suitcaseLight suitcase
Light suitcase
 
Arch on global_hackathon
Arch on global_hackathonArch on global_hackathon
Arch on global_hackathon
 
C s rwe
C s rweC s rwe
C s rwe
 
Seeory
SeeorySeeory
Seeory
 
Asset anywhere
Asset anywhereAsset anywhere
Asset anywhere
 
Safesors
SafesorsSafesors
Safesors
 
Digital transformation
Digital transformationDigital transformation
Digital transformation
 
Air sync
Air syncAir sync
Air sync
 
Inevitability of Multi-Tenancy & SAAS in Product Engineering
Inevitability of Multi-Tenancy & SAAS in Product EngineeringInevitability of Multi-Tenancy & SAAS in Product Engineering
Inevitability of Multi-Tenancy & SAAS in Product Engineering
 

Mehr von Prashanth Panduranga (11)

WebApplicationArchitectureAzure.pptx
WebApplicationArchitectureAzure.pptxWebApplicationArchitectureAzure.pptx
WebApplicationArchitectureAzure.pptx
 
WebApplicationArchitectureAzure.pdf
WebApplicationArchitectureAzure.pdfWebApplicationArchitectureAzure.pdf
WebApplicationArchitectureAzure.pdf
 
Social review
Social reviewSocial review
Social review
 
Meet mi
Meet miMeet mi
Meet mi
 
Flex matics
Flex maticsFlex matics
Flex matics
 
Doc byyou
Doc byyouDoc byyou
Doc byyou
 
Being there
Being thereBeing there
Being there
 
Agri future
Agri futureAgri future
Agri future
 
Introduction to Enterprise architecture and the steps to perform an Enterpris...
Introduction to Enterprise architecture and the steps to perform an Enterpris...Introduction to Enterprise architecture and the steps to perform an Enterpris...
Introduction to Enterprise architecture and the steps to perform an Enterpris...
 
Why nosql also_why_somany
Why nosql also_why_somanyWhy nosql also_why_somany
Why nosql also_why_somany
 
Mongo learning series
Mongo learning series Mongo learning series
Mongo learning series
 

Kürzlich hochgeladen

Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 

Kürzlich hochgeladen (20)

Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 

Drawing parallels between tirupati and high scalability

  • 1. While writing my previous blog https://prashanthpanduranga.wordpress.com/2015/04/22/architecting- extremely-large-scale-web-applications-a-must-read-for-every-architect/,I hadplannedatrip to Tirupati. It was long due and my LONG trip away from home to Liverpool was scheduled to be a week after. My lastcoupleof visitswaswith friends andthiswasthe first visitwithChaitra (Wife) andRynia(my princess daughter), and secondvisit with my mom and dad. The first with them was a long time ago when I was a little boy. So I was super excited. What I did NOT realize was that, it was a Friday, with Lunar Eclipse the next day and the summer holidays had just started. On a Lunar Eclipse the temple was scheduled to be closed for over 11 hours. Being the most visited place of worship in the world, the usually 100,000 visitors a day seemingly was double that. It is usually good to book trips with agencies who organize the complete package. They obviously know what’sbest? NOTREALLY.... Tirumala now has booking online, which obviously I dintknow, theagency dint recommend thateither. Whenwe gotthere, they saidthe bestandthefastestway isvia theSarvaDarshan, the free darshan, without any pre-booking, that’s the only option. To top it all, the Chief Minister was visitingthe temple andthatonly meanslonger waiting time. . . . Wereached Tirupatiat3:30 am . . .and the wait began . . Waiting in the line, my bulwark against any kinds of phobia, had started to feel being crushed by demophobia, 100’s of 1000’s of visitors rushing their way through like particles accelerated by a force within, beingin alarge hadroncollider, I couldn’tbutstopthinkingabout thesheernumber, andthetemple authority(TTD: Tirumala Tirupati Devasthanams) quandary. Imagine processingthat many numberof requests - Cannotload balance, No denial of requests, Noerror codes, requests cannot be processed concurrently, No way to distribute requests and No special way to handle bursts in activity such as lunar eclipse Few measures had been taken by TTD though: Throttling, Throttling and more Throttling
  • 2. Queuing requests – Needless to say Sarva Darshan queue was the longest There are different types of queues. Free queue (Sarva Darshan), Paid queues (multiple of them – All booked via online now) and queue where visitor climb up the hills via the steps And as we can expect, they are prioritized queues. Sarva Darshan having the lowest priority. While bits and pieces of the queue processing design patterns such as Throttling pattern, Priority Queue Pattern, Queue based load levelling pattern all seemed to have been applied here, It also reminded me of the Leaky bucketalgorithm, where visitorscome tothe queuelike a water being addedto the bucket, with a maximum request quota of few thousands beyond which is throttled with a restore rate of a hours. Yes Hours ! Rynia kept the trip alive and fun with her playing, skillfully using the sketch pen around my neck and Govinda, Govinda in between repeating after the piligrims It is time to introduce the VaikuntamQueueComplex (VQC). A 57 room facility with 3 levels and19 rooms on each level. After movingthroughthe standingqueue for hours, thevisitors are throttledin this facility. We reached this facility by 12:30 pm. We were made to wait in it till 10:00 pm, before the queue started to move again
  • 3. When we came to thatroom, there was a boardwhich said thatthe darshanam (viewing God) is next day morning4:00 am. In front of us, was a life size television with live abhishekamindisplay. Justlike customersleaving website viewing somecached content, the wait time was so muchthat a few folks decided to leave. There was photocard systemin the buildingwhere in youcould get the cards, leave the buildingand get back later, however apartfrom the “4:00 am” signthere wasn’tanybody whowould/couldexplain the reasonfor the delay. Rememberno error codes, notime delay messages either. And that“4:00 am” messagewas acting like a proxy server/request filter redirecting messagesto the CDN with the cached requests, pushingvisitorsaway to come back to visit anotherday. All credit to TTD thoughtoensure thatno visitorstayshungry. Be it the standingqueue or in the VQC, frequently the team wouldcome by, to server food, snacksand all for free of cost.
  • 4. The queue startedto move againat 10:30 pm. There was a small detour of further throttlingto collect the ladduprasadamtickets anda confluence of visitors from all the queues. Finally an hourafter we were endowed to be in front of the omnipresent. Dint fail to notice one more thing, the request accelerators (TTD staff), who will not let u stand beyond a second in front of the GOD I have to say, the power of faith is far greater than mostperceive. Even after hoursand hoursof standing, walking and waiting, My momwho has a nagging pain in her knees, dint feel the pain, and rather felt that the pain she had, has reduced, my daughter got her wishful toys, my wife and dad happy and myself relieved that the trip was safe, satisfied and venerational at different levels. .