Web Applications
From Small-scale to Large-scale Applications to
Accommodate Large Number of Concurrent Users
‫من‬
‫ن‬ ‫ر‬
‫المستخدمي‬ ‫من‬ ‫ر‬
‫كبي‬‫عدد‬ ‫الستيعاب‬ ‫النطاق‬ ‫واسعة‬ ‫تطبيقات‬ ‫إىل‬ ‫ة‬ ‫ر‬
‫صغي‬ ‫تطبيقات‬
‫ن‬ ‫ر‬
‫امني‬‫ن‬
‫المي‬
Case Study:
MoHEGate: The Gate of the Ministry of Higher Education
Assist. Prof. Dr. Mohamed A. Alrshah
Alasmarya Islamic University, Zliten, Libya
IEEE Senior Member
01-06-2025
Slideshare
Introduction
Objective:
To discuss challenges of scaling web applications and modern solutions.
Key topics:
● Limitations of shared hosting.
● Solving single points of failure (SPOF).
● Scaling strategies: Vertical vs. Horizontal.
● Technologies: VPS, Elastic Cloud, Load Balancing.
Starting Point – Shared Hosting
What is Shared Hosting?
● Cheap, Easy to set up, Managed environment.
● Multiple apps share the same server resources (CPU, RAM, bandwidth).
Limitations:
● Limited capacity: Cannot handle traffic spikes.
● Typically handles tons of concurrent users.
● No isolation: "Noisy neighbors" Performance degradation and variability.
● Single point of failure (SPOF): Server crash = downtime.
● No scalability: Manual upgrades required.
Shared Hosting
Technologies for Scaling
Virtual Private Server (VPS):
● Dedicated resources within a shared physical server.
● Full root access, customizable.
● Fair Prices.
Elastic Cloud (AWS/GCP/Azure):
● Auto-scaling, pay-as-you-go.
● Global CDN, managed services.
● More Expensive.
How Content Delivery Network (CDN) Works?
Does the CDN always meet the requirements?
Scaling Beyond Shared Hosting
Solutions to Overcome Limitations:
Vertical Scaling (Upgrading VPS):
● Increase CPU/RAM of a Single Server.
● Hardware Ceiling Limit.
● Operating System ceiling Limit.
● 1 VPS => No Redundancy and Single Point of Failure (SPoF).
Horizontal Scaling (Multiple Servers):
● Distribute Load across Servers.
● Key Benefit: No Theoretical, Hardware or OS Limits.
● More VPSs => High Redundancy.
What if you were forced to use a private network that
only provides VPSs or bare metal servers?
In many cases where:
● The systems are related to national and/or government projects
● With high legal and security requirements
many barriers and limitations of the allowed technologies to use will be created.
So, "as an application designer or architect" you have to CREATE EVERYTHING YOURSELF!
Load-balancing:
 Session Persistence
 Health Checks
 Scalability
High-Availability:
 Redundant Servers
 Failover Mechanisms
 Database Replication
 Network Redundancy
Disaster Recovery:
 App & Database Backups
 Offsite or Remote Backups
High-Reliability:
 Automated Monitoring & Alerts
 Self-Healing Systems
 Graceful Degradation
Cashing Management:
 Application-Level Caching
 CDN (Content Delivery Network)
 Database Caching
 Cache Invalidation Strategy
Security:
 DDoS Protection: Rate limiting, Web Application Firewall.
 Encryption: SSL and TLS for traffic, encrypted backups.
Case Study:
MoHEGate: The Gate of the Ministry of Higher Education
● MoHEGate includes both a Web Application and a Mobile Application
● Targeted Organizations:
○ 28 Universities across Libya
○ 1 Libyan Research Authority including all research centers
○ 3 National Administrations
● Services:
○ Digital ID Cards
○ Profiles and Information Management
○ Academic and Job Promotions
○ Secondments, Scholarships, Study Leaves, Sabbatical Leaves
○ Transitions among Universities and Administrations
○ Assignments to Administrative Positions
○ Social and Job Variables (Retirements, Disabilities, Deaths)
○ Reports, Statistics, Dashboards and Graphical Info-boards
● Approximate Active Users:
○ Academic Staff ≈ 25K
○ Lecturer Assistants ≈ 6K
○ Employees ≈ 30K
○ Students ≈ 300K
---------------------------------------------------------
○ Approximate Total ≈ 361K
Case Study:
Horizontal Scaling with High-Availability Architecture over Multi-VPS
Important Notes:
● All tools used here are 100% free
● All Servers run Rocky Linux minimum
2x Load Balancers (Active/Passive)
● HAProxy Reverse Proxy and Load
Balancing.
● Keepalived for Failover Management.
4x Web Application Servers
● Blazor Server Web App / API
● Kestrel Self-Hosting + DotNet
Database Server and Live Replica:
● Keepalived for Failover Management.
● PostgreSQL with replication.
MoHEGate Demo
● Web App Statistics and Graphs https://www.mohe.edu.ly
● Mobile App – QR scan to validate identity and other uses
Thanks for Paying Attention.
Any Questions?

More Related Content

PPTX
Building-Scalable-Web-Applications.Presentation
PDF
Build A Scalable Mobile App
PDF
Best Practices for Building Scalable Web Applications.pdf
PPT
Vertical vs Horizontal Scaling
PDF
Ivo jansch - the art of scalability
PDF
Guide on scaling web app
PPTX
Application Scalability
PPTX
Scalable Web Architecture and Distributed Systems
Building-Scalable-Web-Applications.Presentation
Build A Scalable Mobile App
Best Practices for Building Scalable Web Applications.pdf
Vertical vs Horizontal Scaling
Ivo jansch - the art of scalability
Guide on scaling web app
Application Scalability
Scalable Web Architecture and Distributed Systems

Similar to Web Applications From Small to Large Scale Capacity (20)

PPTX
Cloud Computing Complete lecture Notes CCII.pptx
PDF
how_to_build_a_robust_web_application_in_2023.pdf
PPTX
Scalability and Reliability in the Cloud
PDF
How to Build a Scalable Web Application for Your Project
PPT
The economies of scaling software - Abdel Remani
PPTX
BDM37 - Simon Grondin - Scaling an API proxy in OCaml
PDF
How to Build a Robust Web Application in 2024.pdf
PPTX
Антон Бойко "Разделяй и властвуй — набор практик для построения масштабируемо...
PDF
How to Build a Robust Web Application in 2024.
PPTX
Building Blocks for Private and Hybrid Clouds
PPTX
Rightscale Webinar: Building Blocks for Private and Hybrid Clouds
PPT
The Economies of Scaling Software
DOCX
Architecting extremelylargescalewebapplications
PDF
The Science of Scaling: Engineering Perspectives from Vishu Goyal
PPTX
Scale your cloud native application.
PDF
Scalable Architecture on Amazon AWS Cloud - Indicthreads cloud computing conf...
PDF
How Scalable Application Development Services Drive Long-Term Business Success
PPTX
Cloud computing
PPTX
Cloud Computing - Geektalk
PPT
7 Stages of Scaling Web Applications
Cloud Computing Complete lecture Notes CCII.pptx
how_to_build_a_robust_web_application_in_2023.pdf
Scalability and Reliability in the Cloud
How to Build a Scalable Web Application for Your Project
The economies of scaling software - Abdel Remani
BDM37 - Simon Grondin - Scaling an API proxy in OCaml
How to Build a Robust Web Application in 2024.pdf
Антон Бойко "Разделяй и властвуй — набор практик для построения масштабируемо...
How to Build a Robust Web Application in 2024.
Building Blocks for Private and Hybrid Clouds
Rightscale Webinar: Building Blocks for Private and Hybrid Clouds
The Economies of Scaling Software
Architecting extremelylargescalewebapplications
The Science of Scaling: Engineering Perspectives from Vishu Goyal
Scale your cloud native application.
Scalable Architecture on Amazon AWS Cloud - Indicthreads cloud computing conf...
How Scalable Application Development Services Drive Long-Term Business Success
Cloud computing
Cloud Computing - Geektalk
7 Stages of Scaling Web Applications
Ad

More from Mohamed Alrshah (15)

PDF
Getting Ready For Successful Viva - Workshop
PPTX
المعايير الدولية للنشر في المجلات والدوريات عالية الجودة
PDF
الذكاء الإصطناعي لكل الناس
PDF
المعايير الدولية للنشر العلمي
PDF
Course of academic writing skills
PDF
International scientific publication standards and mechanisms almahfal 3
PDF
Publishing in high impact factor journals
PDF
Soho wireless network applications
PDF
Publishing in high impact factor journals - Universiti Putra Malaysia
PDF
International scientific publication standards and mechanisms
PDF
Publishing in high impact factor journals
PDF
Latex workshop: Essentials and Practices
PDF
Mendeley reference management tool
PDF
Concepts on some benificial research tools
PDF
Introduction to Latex
Getting Ready For Successful Viva - Workshop
المعايير الدولية للنشر في المجلات والدوريات عالية الجودة
الذكاء الإصطناعي لكل الناس
المعايير الدولية للنشر العلمي
Course of academic writing skills
International scientific publication standards and mechanisms almahfal 3
Publishing in high impact factor journals
Soho wireless network applications
Publishing in high impact factor journals - Universiti Putra Malaysia
International scientific publication standards and mechanisms
Publishing in high impact factor journals
Latex workshop: Essentials and Practices
Mendeley reference management tool
Concepts on some benificial research tools
Introduction to Latex
Ad

Recently uploaded (20)

PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
PPTX
future_of_ai_comprehensive_20250822032121.pptx
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PDF
Auditboard EB SOX Playbook 2023 edition.
PPTX
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PPTX
Training Program for knowledge in solar cell and solar industry
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PPTX
Build Your First AI Agent with UiPath.pptx
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PDF
Comparative analysis of machine learning models for fake news detection in so...
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PPTX
MuleSoft-Compete-Deck for midddleware integrations
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
Transform-Quality-Engineering-with-AI-A-60-Day-Blueprint-for-Digital-Success.pdf
future_of_ai_comprehensive_20250822032121.pptx
Basics of Cloud Computing - Cloud Ecosystem
Auditboard EB SOX Playbook 2023 edition.
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
Training Program for knowledge in solar cell and solar industry
The influence of sentiment analysis in enhancing early warning system model f...
Convolutional neural network based encoder-decoder for efficient real-time ob...
Build Your First AI Agent with UiPath.pptx
Lung cancer patients survival prediction using outlier detection and optimize...
Data Virtualization in Action: Scaling APIs and Apps with FME
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
Comparative analysis of machine learning models for fake news detection in so...
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
MuleSoft-Compete-Deck for midddleware integrations

Web Applications From Small to Large Scale Capacity

  • 1. Web Applications From Small-scale to Large-scale Applications to Accommodate Large Number of Concurrent Users ‫من‬ ‫ن‬ ‫ر‬ ‫المستخدمي‬ ‫من‬ ‫ر‬ ‫كبي‬‫عدد‬ ‫الستيعاب‬ ‫النطاق‬ ‫واسعة‬ ‫تطبيقات‬ ‫إىل‬ ‫ة‬ ‫ر‬ ‫صغي‬ ‫تطبيقات‬ ‫ن‬ ‫ر‬ ‫امني‬‫ن‬ ‫المي‬ Case Study: MoHEGate: The Gate of the Ministry of Higher Education Assist. Prof. Dr. Mohamed A. Alrshah Alasmarya Islamic University, Zliten, Libya IEEE Senior Member 01-06-2025 Slideshare
  • 2. Introduction Objective: To discuss challenges of scaling web applications and modern solutions. Key topics: ● Limitations of shared hosting. ● Solving single points of failure (SPOF). ● Scaling strategies: Vertical vs. Horizontal. ● Technologies: VPS, Elastic Cloud, Load Balancing.
  • 3. Starting Point – Shared Hosting What is Shared Hosting? ● Cheap, Easy to set up, Managed environment. ● Multiple apps share the same server resources (CPU, RAM, bandwidth). Limitations: ● Limited capacity: Cannot handle traffic spikes. ● Typically handles tons of concurrent users. ● No isolation: "Noisy neighbors" Performance degradation and variability. ● Single point of failure (SPOF): Server crash = downtime. ● No scalability: Manual upgrades required.
  • 5. Technologies for Scaling Virtual Private Server (VPS): ● Dedicated resources within a shared physical server. ● Full root access, customizable. ● Fair Prices. Elastic Cloud (AWS/GCP/Azure): ● Auto-scaling, pay-as-you-go. ● Global CDN, managed services. ● More Expensive.
  • 6. How Content Delivery Network (CDN) Works? Does the CDN always meet the requirements?
  • 7. Scaling Beyond Shared Hosting Solutions to Overcome Limitations: Vertical Scaling (Upgrading VPS): ● Increase CPU/RAM of a Single Server. ● Hardware Ceiling Limit. ● Operating System ceiling Limit. ● 1 VPS => No Redundancy and Single Point of Failure (SPoF). Horizontal Scaling (Multiple Servers): ● Distribute Load across Servers. ● Key Benefit: No Theoretical, Hardware or OS Limits. ● More VPSs => High Redundancy.
  • 8. What if you were forced to use a private network that only provides VPSs or bare metal servers? In many cases where: ● The systems are related to national and/or government projects ● With high legal and security requirements many barriers and limitations of the allowed technologies to use will be created. So, "as an application designer or architect" you have to CREATE EVERYTHING YOURSELF! Load-balancing:  Session Persistence  Health Checks  Scalability High-Availability:  Redundant Servers  Failover Mechanisms  Database Replication  Network Redundancy Disaster Recovery:  App & Database Backups  Offsite or Remote Backups High-Reliability:  Automated Monitoring & Alerts  Self-Healing Systems  Graceful Degradation Cashing Management:  Application-Level Caching  CDN (Content Delivery Network)  Database Caching  Cache Invalidation Strategy Security:  DDoS Protection: Rate limiting, Web Application Firewall.  Encryption: SSL and TLS for traffic, encrypted backups.
  • 9. Case Study: MoHEGate: The Gate of the Ministry of Higher Education ● MoHEGate includes both a Web Application and a Mobile Application ● Targeted Organizations: ○ 28 Universities across Libya ○ 1 Libyan Research Authority including all research centers ○ 3 National Administrations ● Services: ○ Digital ID Cards ○ Profiles and Information Management ○ Academic and Job Promotions ○ Secondments, Scholarships, Study Leaves, Sabbatical Leaves ○ Transitions among Universities and Administrations ○ Assignments to Administrative Positions ○ Social and Job Variables (Retirements, Disabilities, Deaths) ○ Reports, Statistics, Dashboards and Graphical Info-boards ● Approximate Active Users: ○ Academic Staff ≈ 25K ○ Lecturer Assistants ≈ 6K ○ Employees ≈ 30K ○ Students ≈ 300K --------------------------------------------------------- ○ Approximate Total ≈ 361K
  • 10. Case Study: Horizontal Scaling with High-Availability Architecture over Multi-VPS Important Notes: ● All tools used here are 100% free ● All Servers run Rocky Linux minimum 2x Load Balancers (Active/Passive) ● HAProxy Reverse Proxy and Load Balancing. ● Keepalived for Failover Management. 4x Web Application Servers ● Blazor Server Web App / API ● Kestrel Self-Hosting + DotNet Database Server and Live Replica: ● Keepalived for Failover Management. ● PostgreSQL with replication.
  • 11. MoHEGate Demo ● Web App Statistics and Graphs https://www.mohe.edu.ly ● Mobile App – QR scan to validate identity and other uses
  • 12. Thanks for Paying Attention. Any Questions?