SlideShare a Scribd company logo
Architecture
Migration
Ramakrishnan Seshagiri
Problem Statement
> A Start-up has
- A monolithic application
- Traditional 3-tier architecture (web server, JBoss, MySQL)
- Intends to migrate to an architecture that can handle future needs
> Futuristic Architecture needs
- Highly-scalable, highly-available, highly-performing
- Secure, efficient and elastic
- Easy to maintain
Customer's Specific Objectives
• Service Discovery
• Granularity of a microservice
• Autoscaling of microservices
• DB design (1 DB instance per microservice or 1 common DB instance)
• Data consistency across Microservices
• Loadbalancer configuration for distributing load
• Logging
• Avoiding Downtime
• Use of managed services to manage the microservices
Scalability & High-availability
> Network & Infrastructure load
- Load balancer for web servers to handle exponential growth in web traffic
- Cluster of web servers are run to ensure high-availability
- Based on rate limits or CPU/RAM usage limits, new containers will be
automatically spawned via Kubernetes
> Application load
- Incoming traffic is routed through an API gateway,
- Kubernetes Ingress & Application Load balancer (Layer 7) are used to
manage very high spurts
Modularity & Communication
> System is reduced to a number of much smaller pieces of
independent business logic (microservice)
> Each microservice will have its independent data persistence capability
- Depending on the service, the database could be RDBMS or NoSQL
> Each service can communicate with several or every other service
- IPC mechanism and data exchange mechanism for each communication
will be driven by the specific need (REST, XML/JSON or pub-sub with
queues)
> Server-side services discovery pattern using Kubernetes DNS
Fault Tolerance
> Service Failures
- Limit the number of waiting requests per service instance
- If number of failed requests breach threshold, mark the instance as "unresponsive" for a
specified period of time
- For non-transactional / information requests, cached data could be provided as a response
> Data Consistency Issues
- Services that deal with non-transactional information are recommended to have NoSQL
databases (scalable & flexible for different structured/unstructured formats of data)
- As much as possible, transaction logic should be contained within least number of services
(preferably 1) to prevent data inconsistency
Architecture
Web
Server
Web
Server
Web
Server
Clients
API
Gateway
Layer 7
LB
K8s
Ingress
S1
S4
S3
S2
S5
PrometheusLogstash
Architecture on AWS
Clients

More Related Content

What's hot (20)

PDF
Saga transactions msa_ architecture
Mauro Vocale
 
PPTX
Amazon web services (aws) main developer services
Anderson Carvalho
 
PDF
REST vs. Messaging For Microservices
Eberhard Wolff
 
PDF
[WSO2Con EU 2017] How a Large Organization Weighted on a WSO2 Integration Pla...
WSO2
 
PDF
Kenzan: Architecting for Microservices
Darren Bathgate
 
PDF
Messaging Connectivity in Hybrid Kubernetes Cloud Environments
DevOps.com
 
PDF
Stream Processing with Kafka and KSQL in Jupiter | Namit Mahuvakar, Jupiter
HostedbyConfluent
 
DOC
Balancing performance, accuracy, and precision for secure cloud transactions
Papitha Velumani
 
DOCX
balancing performance, accuracy, and precision for secure cloud transactions
swathi78
 
PPT
Gavin M
Ontico
 
PDF
Psdot 15 performance analysis of cloud computing
ZTech Proje
 
PDF
WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...
WSO2
 
PPTX
Azure reference architectures
Masashi Narumoto
 
PPTX
CQRS
Touraj Ebrahimi
 
PDF
A middleware system between web and database servers
Hyun Dong Lee
 
PPTX
Modern architecture
Renato Guimaraes
 
PDF
Nats meetup sf 20150826
Apcera
 
PPTX
Geek Sync | Top Metrics to Monitor in Your MySQL Databases
IDERA Software
 
PPT
E business n_tier_arch
Radiant Minds
 
PPTX
CQRS
Fabian Vilers
 
Saga transactions msa_ architecture
Mauro Vocale
 
Amazon web services (aws) main developer services
Anderson Carvalho
 
REST vs. Messaging For Microservices
Eberhard Wolff
 
[WSO2Con EU 2017] How a Large Organization Weighted on a WSO2 Integration Pla...
WSO2
 
Kenzan: Architecting for Microservices
Darren Bathgate
 
Messaging Connectivity in Hybrid Kubernetes Cloud Environments
DevOps.com
 
Stream Processing with Kafka and KSQL in Jupiter | Namit Mahuvakar, Jupiter
HostedbyConfluent
 
Balancing performance, accuracy, and precision for secure cloud transactions
Papitha Velumani
 
balancing performance, accuracy, and precision for secure cloud transactions
swathi78
 
Gavin M
Ontico
 
Psdot 15 performance analysis of cloud computing
ZTech Proje
 
WSO2 Customer Webinar: WEST Interactive’s Deployment Approach and DevOps Prac...
WSO2
 
Azure reference architectures
Masashi Narumoto
 
A middleware system between web and database servers
Hyun Dong Lee
 
Modern architecture
Renato Guimaraes
 
Nats meetup sf 20150826
Apcera
 
Geek Sync | Top Metrics to Monitor in Your MySQL Databases
IDERA Software
 
E business n_tier_arch
Radiant Minds
 

Similar to Scalable micorservices based architecture (20)

PDF
Full lifecycle of a microservice
Luigi Bennardis
 
PPTX
Microservices architecture
Faren faren
 
PDF
CMPE282_009994036_PROJECT_REPORT
Sandyarathi Das
 
PDF
Microservices on a budget meetup
Matthew Reynolds
 
PPTX
Cloud to hybrid edge cloud evolution Jun112020.pptx
Michel Burger
 
PDF
microservices in action.pdf
musiczenparty
 
PDF
Stay productive while slicing up the monolith
Markus Eisele
 
PPTX
Micro Services Architecture
Ranjan Baisak
 
PDF
Stay productive while slicing up the monolith
Markus Eisele
 
PPTX
Microservices approach for Websphere commerce
HARIHARAN ANANTHARAMAN
 
PPTX
Architecting extremelylarge scale web applications
Prashanth Panduranga
 
PDF
Software Architecture for Cloud Infrastructure
Tapio Rautonen
 
PDF
OSGi Cloud Ecosystems (EclipseCon 2013)
David Bosschaert
 
PDF
OSGi Cloud Ecosystems (OSGi Users Forum Germany)
David Bosschaert
 
PDF
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
Allan Mangune
 
PPTX
Service Mesh CTO Forum (Draft 3)
Rick Hightower
 
PDF
Docker microservices and the service mesh
Docker, Inc.
 
PDF
Modern Software Architecture - Cloud Scale Computing
Giragadurai Vallirajan
 
PPTX
Microservices
Shubhani Jain
 
PDF
Production-Ready_Microservices_excerpt.pdf
ajcob123
 
Full lifecycle of a microservice
Luigi Bennardis
 
Microservices architecture
Faren faren
 
CMPE282_009994036_PROJECT_REPORT
Sandyarathi Das
 
Microservices on a budget meetup
Matthew Reynolds
 
Cloud to hybrid edge cloud evolution Jun112020.pptx
Michel Burger
 
microservices in action.pdf
musiczenparty
 
Stay productive while slicing up the monolith
Markus Eisele
 
Micro Services Architecture
Ranjan Baisak
 
Stay productive while slicing up the monolith
Markus Eisele
 
Microservices approach for Websphere commerce
HARIHARAN ANANTHARAMAN
 
Architecting extremelylarge scale web applications
Prashanth Panduranga
 
Software Architecture for Cloud Infrastructure
Tapio Rautonen
 
OSGi Cloud Ecosystems (EclipseCon 2013)
David Bosschaert
 
OSGi Cloud Ecosystems (OSGi Users Forum Germany)
David Bosschaert
 
From the Trenches: Effectively Scaling Your Cloud Infrastructure and Optimizi...
Allan Mangune
 
Service Mesh CTO Forum (Draft 3)
Rick Hightower
 
Docker microservices and the service mesh
Docker, Inc.
 
Modern Software Architecture - Cloud Scale Computing
Giragadurai Vallirajan
 
Microservices
Shubhani Jain
 
Production-Ready_Microservices_excerpt.pdf
ajcob123
 
Ad

Recently uploaded (20)

PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
Sustainable and comertially viable mining process.pdf
Avijit Kumar Roy
 
PDF
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
Sustainable and comertially viable mining process.pdf
Avijit Kumar Roy
 
Novus Safe Lite- What is Novus Safe Lite.pdf
Novus Hi-Tech
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Ad

Scalable micorservices based architecture

  • 2. Problem Statement > A Start-up has - A monolithic application - Traditional 3-tier architecture (web server, JBoss, MySQL) - Intends to migrate to an architecture that can handle future needs > Futuristic Architecture needs - Highly-scalable, highly-available, highly-performing - Secure, efficient and elastic - Easy to maintain
  • 3. Customer's Specific Objectives • Service Discovery • Granularity of a microservice • Autoscaling of microservices • DB design (1 DB instance per microservice or 1 common DB instance) • Data consistency across Microservices • Loadbalancer configuration for distributing load • Logging • Avoiding Downtime • Use of managed services to manage the microservices
  • 4. Scalability & High-availability > Network & Infrastructure load - Load balancer for web servers to handle exponential growth in web traffic - Cluster of web servers are run to ensure high-availability - Based on rate limits or CPU/RAM usage limits, new containers will be automatically spawned via Kubernetes > Application load - Incoming traffic is routed through an API gateway, - Kubernetes Ingress & Application Load balancer (Layer 7) are used to manage very high spurts
  • 5. Modularity & Communication > System is reduced to a number of much smaller pieces of independent business logic (microservice) > Each microservice will have its independent data persistence capability - Depending on the service, the database could be RDBMS or NoSQL > Each service can communicate with several or every other service - IPC mechanism and data exchange mechanism for each communication will be driven by the specific need (REST, XML/JSON or pub-sub with queues) > Server-side services discovery pattern using Kubernetes DNS
  • 6. Fault Tolerance > Service Failures - Limit the number of waiting requests per service instance - If number of failed requests breach threshold, mark the instance as "unresponsive" for a specified period of time - For non-transactional / information requests, cached data could be provided as a response > Data Consistency Issues - Services that deal with non-transactional information are recommended to have NoSQL databases (scalable & flexible for different structured/unstructured formats of data) - As much as possible, transaction logic should be contained within least number of services (preferably 1) to prevent data inconsistency