SlideShare une entreprise Scribd logo
1  sur  26
Télécharger pour lire hors ligne
Understanding	
  Microservice	
  
Architecture	
  	
  (MSA)	
  
Sagara	
  Gunathunga	
  
So7ware	
  Architect	
  
WSO2	
  
	
  
Monolithic	
  Applica-ons	
  	
  
Built	
  as	
  a	
  single	
  unit,	
  so	
  they	
  are	
  responsible	
  for	
  every	
  possible	
  funcConality:	
  
handling	
  HTTP	
  requests,	
  UIs,	
  execuCng	
  domain	
  logic,	
  database	
  operaCons,	
  
communicaCon	
  with	
  the	
  browser/client,	
  handling	
  authenCcaCon	
  and	
  so	
  on.	
  
Drawbacks	
  of	
  Monolithic	
  
u  Even	
  smallest	
  changes	
  involves	
  building	
  and	
  deploying	
  the	
  whole	
  
applicaCon.	
  
u  Scalability	
  issues	
  :	
  have	
  to	
  run	
  mulCple	
  instances,	
  even	
  if	
  you	
  know	
  that	
  
boPlenecks	
  are	
  lay	
  on	
  one	
  component.	
  
u  One	
  technical	
  stack	
  is	
  defined	
  for	
  whole	
  soluCon,	
  without	
  considering	
  
most	
  suitable	
  technology	
  for	
  each	
  components.	
  	
  	
  
u  High	
  coupling	
  among	
  project	
  teams.	
  	
  	
  
u  Can’t	
  evolve	
  or	
  replace	
  part	
  of	
  the	
  applicaCon	
  easily.	
  	
  
What	
  is	
  ‘MSA’	
  ?	
  	
  
An	
  architectural	
  style	
  to	
  developing	
  a	
  single	
  applica-on	
  
	
  as	
  a	
  suite	
  of	
  small	
  services	
  
	
  
	
  	
  
	
  
	
  	
  
	
  -­‐	
  Mar&n	
  Fowler	
  
Monolithic	
  Vs	
  Microservice	
  
‘MSA’	
  -­‐	
  	
  Two	
  Architecture	
  Viewpoints	
  
The	
  Inner	
  Architecture	
  -­‐	
  Architecture	
  of	
  an	
  individual	
  Microservice.	
  
The	
  Outer	
  Architecture	
  -­‐	
  Architecture	
  of	
  the	
  ecosystem	
  in	
  which	
  Microservices	
  
will	
  be	
  built,	
  deployed	
  and	
  executed.	
  
Inner	
  	
  
Architecture	
  	
  
Outer	
  
Architecture	
  	
  
‘MSA’	
  -­‐	
  	
  Inner	
  Architecture	
  	
  
Inner	
  	
  
Architecture	
  	
  
Characteris-cs	
  of	
  	
  Microservice	
  
1.	
  “Micro"	
  is	
  a	
  concept	
  of	
  scope	
  rather	
  than	
  size.	
  A	
  microservice	
  
must	
  have	
  a	
  single	
  purpose	
  and	
  be	
  loosely	
  coupled	
  in	
  design	
  
	
  
	
  	
  
	
  
	
  	
  
•  NOT	
  	
  a	
  service	
  implemented	
  with	
  a	
  small	
  amount	
  
of	
  code.	
  
•  NOT	
  a	
  	
  simple	
  API	
  to	
  a	
  more	
  complex	
  service	
  	
  
	
  	
  	
  	
  	
  	
  implemented	
  as	
  part	
  of	
  a	
  monolithic	
  applicaCon.	
  
	
  
•  NOT	
  a	
  service	
  exposed	
  via	
  API	
  by	
  another	
  party	
  	
  
	
  	
  
2.	
  Microservices	
  should	
  be	
  independently	
  deployable	
  and	
  
independently	
  	
  disposable	
  	
  	
  
	
  
	
  
	
  
	
  
	
  	
  
	
  
Characteris-cs	
  	
  Microservice	
  
•  Microservices	
  must	
  to	
  be	
  disposable.	
  If	
  a	
  microservice	
  
fails	
  or	
  is	
  superseded	
  a	
  bePer	
  service,	
  then	
  simply	
  dispose	
  
of	
  the	
  old	
  one.	
  	
  
•  Require	
  lot	
  of	
  support	
  from	
  deployment	
  architecture	
  and	
  
operaConal	
  environment	
  in	
  which	
  microservices	
  will	
  be	
  
built,	
  deployed	
  and	
  executed.	
  
3.	
  Organized	
  around	
  Business	
  CapabiliCes	
  not	
  around	
  
management	
  focused	
  teams	
  such	
  as	
  	
  UI	
  ,server-­‐side,	
  DB	
  	
  	
  
	
  
	
  
	
  	
  
	
  
	
  	
  
Characteris-cs	
  of	
  	
  Microservice	
  
4.	
  Decentralized	
  Data	
  Management	
  
	
  
	
  
	
  	
  
	
  
	
  	
  
Characteris-cs	
  of	
  Microservice	
  
5.	
  Supports	
  Technology	
  Heterogeneity	
  among	
  services	
  	
  
	
  
	
  
	
  	
  
	
  
	
  	
  
Characteris-cs	
  of	
  	
  Microservice	
  
MSA	
  and	
  SOA	
  
MSA	
  is	
  not	
  based	
  on	
  all-­‐new	
  architectural	
  principle;	
  It	
  combines	
  
SOA	
  best	
  prac-ces	
  with	
  modern	
  applica-on	
  delivery	
  tooling	
  
and	
  organiza-onal	
  disciplines.	
  	
  
+	
  
‘MSA’	
  -­‐	
  	
  Outer	
  Architecture	
  
Outer	
  
Architecture	
  	
  
‘MSA’	
  -­‐	
  	
  Outer	
  Architecture	
  
•  Service	
  Gateway	
  	
  
•  	
  Expose	
  services	
  as	
  managed	
  APIs	
  
•  Provides	
  traffic	
  and	
  policy	
  (security)	
  management	
  
	
  
•  Service	
  RouCng	
  
•  Route	
  message	
  to	
  right	
  service	
  based	
  on	
  clients	
  and	
  service	
  polices	
  
	
  
•  Load	
  Balancing	
  
•  Support	
  service	
  scalability	
  
•  Service	
  Discovery	
  
•  Register	
  and	
  find	
  services	
  and	
  endpoints	
  dynamically	
  
‘MSA’	
  -­‐	
  	
  Outer	
  Architecture	
  
•  Shared	
  configuraCon	
  
•  Sharing	
  configuraCon	
  details	
  among	
  new	
  nodes.	
  	
  
•  Dependency	
  management	
  	
  
•  Track	
  and	
  manage	
  dependencies	
  among	
  services	
  	
  
•  Messaging	
  channels	
  
•  Support	
  asynchronous	
  communicaCon	
  based	
  on	
  publish/subscribe	
  
and	
  event	
  sourcing	
  paPerns.	
  	
  	
  
MSA	
  challenges	
  –	
  End	
  to	
  end	
  Monitoring	
  	
  
1.  Service	
  level	
  (APM)	
  	
  &	
  deployment	
  level	
  dashboards	
  	
  
	
  
2.  TransacCon	
  tracing,	
  replay	
  and	
  log	
  analysis	
  	
  
	
  
3.  Service	
  InstrumentaCon	
  	
  	
  
	
  
MSA	
  challenges	
  –	
  Security	
  
1.  AuthenCcaCon	
  and	
  AuthorizaCon	
  	
  
2.  Security	
  context	
  propagaCon	
  among	
  services	
  	
  	
  
MSA	
  challenges	
  –	
  Service	
  Discovery	
  
•  Client-­‐side	
  Service	
  Discovery	
  	
  	
  	
  	
  	
  	
  •  Server-­‐Side	
  Service	
  Discovery	
  	
  
	
  
MSA	
  challenges	
  –	
  Deployment	
  Scalability	
  
	
  
•  ApplicaCon	
  pladorm	
  as	
  a	
  service	
  (aPaaS)	
  
•  WSO2	
  AppCloud	
  	
  
	
  
•  OS	
  container	
  management	
  systems	
  	
  
•  Google	
  Kubernetes	
  
•  Apache	
  Mesos	
  	
  
	
  
•  Lightweight	
  server	
  OS	
  
•  CoreOS	
  
•  Atomic	
   	
  	
  	
  
MSA	
  and	
  WSO2	
  
Although	
  aPaaS	
  pladorms	
  come	
  closest,	
  they	
  are	
  sCll	
  general-­‐purpose	
  pladorms,	
  and	
  
there	
  is	
  currently	
  no	
  such	
  thing	
  as	
  a	
  holisCc,	
  commercially	
  supported	
  "microservice	
  
pladorm"	
  that	
  brings	
  together	
  all	
  of	
  the	
  necessary	
  capabiliCes.	
  	
  
- Gartner (January 2015)
WSO2	
  offer	
  ….	
  	
  
	
  
① 	
  A	
  compeCCve	
  Microservice	
  framework	
  to	
  support	
  “Inner	
  
Architecture”	
  	
  	
  (WSO2	
  MSF4J)	
  
② A	
  complete	
  pladorm	
  to	
  support	
  	
  “Outer	
  Architecture	
  “	
  	
  (	
  AnalyCcs,	
  Security,	
  
discovery	
  ,	
  gateways,	
  MQ	
  etc.)	
  	
  
MSA	
  and	
  WSO2	
  
Service	
  Gateway	
  	
  
	
  	
  
Service	
  Rou-ng	
  
	
  
	
  
	
  
Service	
  Discovery	
  
Shared	
  Configura-on	
  
Dependency	
  
Management	
  
	
  
	
  
	
  
Messaging	
  
	
  
	
  
Monitoring	
  	
  	
  
Security	
  	
  
	
  
	
  
WSO2	
  MSF4J	
  	
  
2.30	
  PM	
  
MSA	
  Drawbacks	
  	
  
•  Complexity	
  Is	
  Moved	
  Not	
  Removed	
  	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  -­‐	
  Understanding,	
  managing	
  and	
  tesCng	
  dependencies	
  is	
  difficult.	
  
	
  
•  Centralized	
  governance	
  is	
  not	
  possible	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  -­‐	
  Large	
  numbers	
  of	
  Microservices	
  are	
  difficult	
  to	
  orchestrate	
  
	
  
•  Increase	
  Network	
  communicaCon	
  
	
  	
  	
  	
  	
  	
  	
  	
  -­‐	
  Independently	
  running	
  component	
  interact	
  with	
  each	
  other	
  using	
  N/W	
  	
  	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  calls.	
  Such	
  system	
  require	
  reliable	
  and	
  fast	
  network	
  connecCons.	
  
	
  
	
  
MSA	
  Drawbacks	
  	
  
	
  
•  Network	
  Security	
  
	
  	
  	
  	
  	
  	
  	
  -­‐	
  Inter	
  Service	
  CommunicaCon	
  need	
  to	
  be	
  secured	
  to	
  avoid	
  any	
  inter	
  
communicaCon	
  security	
  breach	
  these	
  applicaCon	
  	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  are	
  more	
  prone	
  to	
  security	
  vulnerabiliCes.	
  
•  ProducCon	
  monitoring	
  	
  
	
  	
  	
  	
  	
  	
  	
  -­‐	
  Monitoring	
  the	
  applicaCon	
  in	
  producCon	
  deployment	
  becomes	
  a	
  complex	
  
job,	
  with	
  mulCple	
  services.	
  	
  
	
  
	
  
Thank	
  You	
  

Contenu connexe

Tendances

ServiceFabric-Arch
ServiceFabric-ArchServiceFabric-Arch
ServiceFabric-Arch
Saravanan G
 
Think BIG, Spend Small A Look at how WSO2 Can Help Scale Up with Less Cost
Think BIG, Spend Small A Look at how WSO2 Can Help Scale Up with Less Cost Think BIG, Spend Small A Look at how WSO2 Can Help Scale Up with Less Cost
Think BIG, Spend Small A Look at how WSO2 Can Help Scale Up with Less Cost
WSO2
 
SUSE Cloud and WSO2 Stratos - Bridging OpenStack and PaaS to Deliver the Serv...
SUSE Cloud and WSO2 Stratos - Bridging OpenStack and PaaS to Deliver the Serv...SUSE Cloud and WSO2 Stratos - Bridging OpenStack and PaaS to Deliver the Serv...
SUSE Cloud and WSO2 Stratos - Bridging OpenStack and PaaS to Deliver the Serv...
WSO2
 
Building A Cloud Platform
Building A Cloud PlatformBuilding A Cloud Platform
Building A Cloud Platform
WSO2
 
API and Big Data Solution Patterns
API and Big Data Solution Patterns API and Big Data Solution Patterns
API and Big Data Solution Patterns
WSO2
 

Tendances (20)

WSO2Con ASIA 2016: DevOps & Cloud: Lessons & Stories
WSO2Con ASIA 2016: DevOps & Cloud: Lessons & StoriesWSO2Con ASIA 2016: DevOps & Cloud: Lessons & Stories
WSO2Con ASIA 2016: DevOps & Cloud: Lessons & Stories
 
WSO2Con EU 2016: Understanding the WSO2 API Management Platform
WSO2Con EU 2016: Understanding the WSO2 API Management PlatformWSO2Con EU 2016: Understanding the WSO2 API Management Platform
WSO2Con EU 2016: Understanding the WSO2 API Management Platform
 
ServiceFabric-Arch
ServiceFabric-ArchServiceFabric-Arch
ServiceFabric-Arch
 
Understanding Microservice Architecture WSO2Con Asia 2016
Understanding Microservice Architecture WSO2Con Asia 2016 Understanding Microservice Architecture WSO2Con Asia 2016
Understanding Microservice Architecture WSO2Con Asia 2016
 
Steampunk App Servers in
Steampunk App Servers in Steampunk App Servers in
Steampunk App Servers in
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architecture
 
High Productivity Platform
High Productivity PlatformHigh Productivity Platform
High Productivity Platform
 
[WSO2Con EU 2017] Resilience Patterns with Ballerina
[WSO2Con EU 2017] Resilience Patterns with Ballerina[WSO2Con EU 2017] Resilience Patterns with Ballerina
[WSO2Con EU 2017] Resilience Patterns with Ballerina
 
[WSO2Con EU 2017] Microservices for Enterprises
[WSO2Con EU 2017] Microservices for Enterprises[WSO2Con EU 2017] Microservices for Enterprises
[WSO2Con EU 2017] Microservices for Enterprises
 
An introduction to Microservices
An introduction to MicroservicesAn introduction to Microservices
An introduction to Microservices
 
Think BIG, Spend Small A Look at how WSO2 Can Help Scale Up with Less Cost
Think BIG, Spend Small A Look at how WSO2 Can Help Scale Up with Less Cost Think BIG, Spend Small A Look at how WSO2 Can Help Scale Up with Less Cost
Think BIG, Spend Small A Look at how WSO2 Can Help Scale Up with Less Cost
 
SUSE Cloud and WSO2 Stratos - Bridging OpenStack and PaaS to Deliver the Serv...
SUSE Cloud and WSO2 Stratos - Bridging OpenStack and PaaS to Deliver the Serv...SUSE Cloud and WSO2 Stratos - Bridging OpenStack and PaaS to Deliver the Serv...
SUSE Cloud and WSO2 Stratos - Bridging OpenStack and PaaS to Deliver the Serv...
 
Building A Cloud Platform
Building A Cloud PlatformBuilding A Cloud Platform
Building A Cloud Platform
 
WSO2 Cloud and Platform as a Service Strategy
WSO2 Cloud and Platform as a Service StrategyWSO2 Cloud and Platform as a Service Strategy
WSO2 Cloud and Platform as a Service Strategy
 
Microservices Architecture (MSA) - Presentation made at AEA-MN quarterly even...
Microservices Architecture (MSA) - Presentation made at AEA-MN quarterly even...Microservices Architecture (MSA) - Presentation made at AEA-MN quarterly even...
Microservices Architecture (MSA) - Presentation made at AEA-MN quarterly even...
 
Microservices Architecture (MSA) - Presentation made at The Open Group confer...
Microservices Architecture (MSA) - Presentation made at The Open Group confer...Microservices Architecture (MSA) - Presentation made at The Open Group confer...
Microservices Architecture (MSA) - Presentation made at The Open Group confer...
 
Airbnb, From Monolith to Microservices: How to Scale Your Architecture, Futur...
Airbnb, From Monolith to Microservices: How to Scale Your Architecture, Futur...Airbnb, From Monolith to Microservices: How to Scale Your Architecture, Futur...
Airbnb, From Monolith to Microservices: How to Scale Your Architecture, Futur...
 
Bring N-Tier Apps to containers 2015 ContainerCon
Bring N-Tier Apps to containers  2015 ContainerConBring N-Tier Apps to containers  2015 ContainerCon
Bring N-Tier Apps to containers 2015 ContainerCon
 
Nats meetup sf 20150826
Nats meetup sf   20150826Nats meetup sf   20150826
Nats meetup sf 20150826
 
API and Big Data Solution Patterns
API and Big Data Solution Patterns API and Big Data Solution Patterns
API and Big Data Solution Patterns
 

Similaire à WSO2Con ASIA 2016: Understanding Microservice Architecture

TransitioningToMicroServonDocker_MS
TransitioningToMicroServonDocker_MSTransitioningToMicroServonDocker_MS
TransitioningToMicroServonDocker_MS
Lana Kalashnyk
 

Similaire à WSO2Con ASIA 2016: Understanding Microservice Architecture (20)

Enterprise Integration in Cloud Native Microservices Architectures
Enterprise Integration in Cloud Native Microservices ArchitecturesEnterprise Integration in Cloud Native Microservices Architectures
Enterprise Integration in Cloud Native Microservices Architectures
 
APIdays Paris 2019 - Cloud native API Management for Microservices on a Servi...
APIdays Paris 2019 - Cloud native API Management for Microservices on a Servi...APIdays Paris 2019 - Cloud native API Management for Microservices on a Servi...
APIdays Paris 2019 - Cloud native API Management for Microservices on a Servi...
 
Introduction to microservices
Introduction to microservicesIntroduction to microservices
Introduction to microservices
 
Microservices for Enterprises
Microservices for Enterprises Microservices for Enterprises
Microservices for Enterprises
 
Microservices Design Principles.pdf
Microservices Design Principles.pdfMicroservices Design Principles.pdf
Microservices Design Principles.pdf
 
Comparison of Current Service Mesh Architectures
Comparison of Current Service Mesh ArchitecturesComparison of Current Service Mesh Architectures
Comparison of Current Service Mesh Architectures
 
Service Fabric – building tomorrows applications today
Service Fabric – building tomorrows applications todayService Fabric – building tomorrows applications today
Service Fabric – building tomorrows applications today
 
[APIdays Paris 2019] API Management in Service Mesh Using Istio and WSO2 API ...
[APIdays Paris 2019] API Management in Service Mesh Using Istio and WSO2 API ...[APIdays Paris 2019] API Management in Service Mesh Using Istio and WSO2 API ...
[APIdays Paris 2019] API Management in Service Mesh Using Istio and WSO2 API ...
 
Micro service architecture
Micro service architecture  Micro service architecture
Micro service architecture
 
Microservices Tutorial for Beginners | All You Need to Get Started
Microservices Tutorial for Beginners | All You Need to Get StartedMicroservices Tutorial for Beginners | All You Need to Get Started
Microservices Tutorial for Beginners | All You Need to Get Started
 
Basics of Java Microservices: Frameworks, Examples & Use Cases
Basics of Java Microservices: Frameworks, Examples & Use CasesBasics of Java Microservices: Frameworks, Examples & Use Cases
Basics of Java Microservices: Frameworks, Examples & Use Cases
 
Microservices in Practice
Microservices in PracticeMicroservices in Practice
Microservices in Practice
 
Scalable Fault-tolerant microservices
Scalable Fault-tolerant microservicesScalable Fault-tolerant microservices
Scalable Fault-tolerant microservices
 
Introduction to Microservices_Architecture.pptx
Introduction to Microservices_Architecture.pptxIntroduction to Microservices_Architecture.pptx
Introduction to Microservices_Architecture.pptx
 
Best Practices Building Cloud Scale Apps with Microservices
Best Practices Building Cloud Scale Apps with MicroservicesBest Practices Building Cloud Scale Apps with Microservices
Best Practices Building Cloud Scale Apps with Microservices
 
Microservices session 1
Microservices session 1Microservices session 1
Microservices session 1
 
Microservices
MicroservicesMicroservices
Microservices
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architecture
 
Microservices
MicroservicesMicroservices
Microservices
 
TransitioningToMicroServonDocker_MS
TransitioningToMicroServonDocker_MSTransitioningToMicroServonDocker_MS
TransitioningToMicroServonDocker_MS
 

Plus de WSO2

Plus de WSO2 (20)

Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
 
WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AI
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
WSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the CloudWSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the Cloud
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital Businesses
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

WSO2Con ASIA 2016: Understanding Microservice Architecture

  • 1. Understanding  Microservice   Architecture    (MSA)   Sagara  Gunathunga   So7ware  Architect   WSO2    
  • 2. Monolithic  Applica-ons     Built  as  a  single  unit,  so  they  are  responsible  for  every  possible  funcConality:   handling  HTTP  requests,  UIs,  execuCng  domain  logic,  database  operaCons,   communicaCon  with  the  browser/client,  handling  authenCcaCon  and  so  on.  
  • 3. Drawbacks  of  Monolithic   u  Even  smallest  changes  involves  building  and  deploying  the  whole   applicaCon.   u  Scalability  issues  :  have  to  run  mulCple  instances,  even  if  you  know  that   boPlenecks  are  lay  on  one  component.   u  One  technical  stack  is  defined  for  whole  soluCon,  without  considering   most  suitable  technology  for  each  components.       u  High  coupling  among  project  teams.       u  Can’t  evolve  or  replace  part  of  the  applicaCon  easily.    
  • 4. What  is  ‘MSA’  ?     An  architectural  style  to  developing  a  single  applica-on    as  a  suite  of  small  services                -­‐  Mar&n  Fowler  
  • 6. ‘MSA’  -­‐    Two  Architecture  Viewpoints   The  Inner  Architecture  -­‐  Architecture  of  an  individual  Microservice.   The  Outer  Architecture  -­‐  Architecture  of  the  ecosystem  in  which  Microservices   will  be  built,  deployed  and  executed.   Inner     Architecture     Outer   Architecture    
  • 7. ‘MSA’  -­‐    Inner  Architecture     Inner     Architecture    
  • 8. Characteris-cs  of    Microservice   1.  “Micro"  is  a  concept  of  scope  rather  than  size.  A  microservice   must  have  a  single  purpose  and  be  loosely  coupled  in  design               •  NOT    a  service  implemented  with  a  small  amount   of  code.   •  NOT  a    simple  API  to  a  more  complex  service                implemented  as  part  of  a  monolithic  applicaCon.     •  NOT  a  service  exposed  via  API  by  another  party        
  • 9. 2.  Microservices  should  be  independently  deployable  and   independently    disposable                     Characteris-cs    Microservice   •  Microservices  must  to  be  disposable.  If  a  microservice   fails  or  is  superseded  a  bePer  service,  then  simply  dispose   of  the  old  one.     •  Require  lot  of  support  from  deployment  architecture  and   operaConal  environment  in  which  microservices  will  be   built,  deployed  and  executed.  
  • 10. 3.  Organized  around  Business  CapabiliCes  not  around   management  focused  teams  such  as    UI  ,server-­‐side,  DB                     Characteris-cs  of    Microservice  
  • 11. 4.  Decentralized  Data  Management                 Characteris-cs  of  Microservice  
  • 12. 5.  Supports  Technology  Heterogeneity  among  services                   Characteris-cs  of    Microservice  
  • 13. MSA  and  SOA   MSA  is  not  based  on  all-­‐new  architectural  principle;  It  combines   SOA  best  prac-ces  with  modern  applica-on  delivery  tooling   and  organiza-onal  disciplines.     +  
  • 14. ‘MSA’  -­‐    Outer  Architecture   Outer   Architecture    
  • 15. ‘MSA’  -­‐    Outer  Architecture   •  Service  Gateway     •   Expose  services  as  managed  APIs   •  Provides  traffic  and  policy  (security)  management     •  Service  RouCng   •  Route  message  to  right  service  based  on  clients  and  service  polices     •  Load  Balancing   •  Support  service  scalability   •  Service  Discovery   •  Register  and  find  services  and  endpoints  dynamically  
  • 16. ‘MSA’  -­‐    Outer  Architecture   •  Shared  configuraCon   •  Sharing  configuraCon  details  among  new  nodes.     •  Dependency  management     •  Track  and  manage  dependencies  among  services     •  Messaging  channels   •  Support  asynchronous  communicaCon  based  on  publish/subscribe   and  event  sourcing  paPerns.      
  • 17. MSA  challenges  –  End  to  end  Monitoring     1.  Service  level  (APM)    &  deployment  level  dashboards       2.  TransacCon  tracing,  replay  and  log  analysis       3.  Service  InstrumentaCon        
  • 18. MSA  challenges  –  Security   1.  AuthenCcaCon  and  AuthorizaCon     2.  Security  context  propagaCon  among  services      
  • 19. MSA  challenges  –  Service  Discovery   •  Client-­‐side  Service  Discovery              •  Server-­‐Side  Service  Discovery      
  • 20. MSA  challenges  –  Deployment  Scalability     •  ApplicaCon  pladorm  as  a  service  (aPaaS)   •  WSO2  AppCloud       •  OS  container  management  systems     •  Google  Kubernetes   •  Apache  Mesos       •  Lightweight  server  OS   •  CoreOS   •  Atomic        
  • 21. MSA  and  WSO2   Although  aPaaS  pladorms  come  closest,  they  are  sCll  general-­‐purpose  pladorms,  and   there  is  currently  no  such  thing  as  a  holisCc,  commercially  supported  "microservice   pladorm"  that  brings  together  all  of  the  necessary  capabiliCes.     - Gartner (January 2015) WSO2  offer  ….       ①   A  compeCCve  Microservice  framework  to  support  “Inner   Architecture”      (WSO2  MSF4J)   ② A  complete  pladorm  to  support    “Outer  Architecture  “    (  AnalyCcs,  Security,   discovery  ,  gateways,  MQ  etc.)    
  • 22. MSA  and  WSO2   Service  Gateway         Service  Rou-ng         Service  Discovery   Shared  Configura-on   Dependency   Management         Messaging       Monitoring       Security        
  • 23. WSO2  MSF4J     2.30  PM  
  • 24. MSA  Drawbacks     •  Complexity  Is  Moved  Not  Removed                        -­‐  Understanding,  managing  and  tesCng  dependencies  is  difficult.     •  Centralized  governance  is  not  possible                    -­‐  Large  numbers  of  Microservices  are  difficult  to  orchestrate     •  Increase  Network  communicaCon                  -­‐  Independently  running  component  interact  with  each  other  using  N/W                          calls.  Such  system  require  reliable  and  fast  network  connecCons.      
  • 25. MSA  Drawbacks       •  Network  Security                -­‐  Inter  Service  CommunicaCon  need  to  be  secured  to  avoid  any  inter   communicaCon  security  breach  these  applicaCon                      are  more  prone  to  security  vulnerabiliCes.   •  ProducCon  monitoring                  -­‐  Monitoring  the  applicaCon  in  producCon  deployment  becomes  a  complex   job,  with  mulCple  services.