SlideShare uma empresa Scribd logo
1 de 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.
.

Mais conteúdo relacionado

Destaque (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
 

Mais de 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
 

Último

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 

Último (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 

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. .