SlideShare ist ein Scribd-Unternehmen logo
1 von 51
Downloaden Sie, um offline zu lesen
How to Manage
                          Software Complexity
                               with OSGi
                              Peter Kriens & David Savage




donderdag 24 maart 2011
What is Complexity?



donderdag 24 maart 2011
Complex?




donderdag 24 maart 2011
The puzzle looks very simple,
                     contrary to many other wire
                    puzzles, that look scary and
                    complex right from the start.
                      Nevertheless, its looks are
                     deceiving, as it can prove to
                      be frustratingly difficult to
                                 solve.
donderdag 24 maart 2011
Complex?




donderdag 24 maart 2011
Complex?




                          Worlds Largest Jigsaw Puzzle
                                24.000 pieces
                                   (4.28m x 1.57m)


donderdag 24 maart 2011
The Eye Of The
                                Beholder
                   • Complexity of a task is the energy you use
                          to complete that task



                              c = √E/m
donderdag 24 maart 2011
The Eye Of The
                                Beholder
                   • Complexity of a task is the energy you use
                          to complete that task



                              c = √E/m
donderdag 24 maart 2011
Energy?

                   • Understanding the problem
                   • Learning the solution
                   • Accidental complexity
                   • Size matters!

donderdag 24 maart 2011
Energy?
                                          Subjective Complexity

                   • Understanding the problem
                   • Learning the solution
                   • Accidental complexity
                   • Size matters!

donderdag 24 maart 2011
Energy?
                                          Subjective Complexity

                   • Understanding the problem
                   • Learning the solution
                   • Accidental complexity
                   • Size matters!
                                            Absolute Complexity
                                                size related

donderdag 24 maart 2011
What’s Modularity
                   Got to do With Size???


donderdag 24 maart 2011
Modularity
                   •       Functions
                          • local variables
                   •       Object Oriented
                          • fields, methods, inheritance,
                             polymorphism
                          • instances
                   •       Bundles
                          • implementations, services
                          • components
donderdag 24 maart 2011
Modularity
                   •       Functions
                          • local variables
                   •       Object Oriented
                          • fields, methods, inheritance,
                             polymorphism
                          • instances
                   •       Bundles
                          • implementations, services
                          • components
donderdag 24 maart 2011
Modularity
               • Modularity is about
                      creating a difference
                      between an inside and an    A        B
                      outside                         AB
                                                      CD
               • Chunking - having an
                      anchor for an aggregation   C        D

               • Visibility - is reduced,
                      reducing the scope to
                      attend for changes

donderdag 24 maart 2011
Modularity
               • Modularity is about
                      creating a difference
                      between an inside and an     A   B
                      outside
               • Chunking - having an
                      anchor for an aggregation    C
                                                  AB
                                                  CD
                                                       D

               • Visibility - is reduced,
                      reducing the scope to
                      attend for changes

donderdag 24 maart 2011
Modularity
               • modules have a private
                      space and share a
                      public space              A   B
               •      modules limit their
                      visibility and exposure
                                                C   D
               •      Reduces geometric to
                      linear complexity



donderdag 24 maart 2011
Modularity
               • modules have a private
                      space and share a
                      public space              A         B
               •      modules limit their           Pub
                      visibility and exposure
                                                C         D
               •      Reduces geometric to
                      linear complexity



donderdag 24 maart 2011
Modularity
               • modules have a private
                      space and share a
                      public space              A         B
               •      modules limit their           Pub
                      visibility and exposure
                                                C         D
               •      Reduces geometric to
                      linear complexity



donderdag 24 maart 2011
Entropy
  E functionality




                           Emodularization
donderdag 24 maart 2011
Entropy
  E functionality




                           Emodularization
donderdag 24 maart 2011
Entropy
  E functionality




                           Emodularization
donderdag 24 maart 2011
Entropy
  E functionality




                           Emodularization
donderdag 24 maart 2011
Entropy
  E functionality




                           Emodularization
donderdag 24 maart 2011
Entropy
  E functionality




                           Emodularization
donderdag 24 maart 2011
#1 OSGi Complaint:
                            Class Loaders!



donderdag 24 maart 2011
Classloaders & Modularity




donderdag 24 maart 2011
Class Loading Revisited

                   • Class.forName
                   • Class path Scanning
                   • Service Loader
                   • Thread Context Class Loaders
                   • Factory, and FactoryBuilders

donderdag 24 maart 2011
Class Loading Revisited
               • Class loaders are used
                      to provide extensibility
                      and decoupling             A         B
               •      They were not                  Pub
                      designed for this
                      purpose,                   C         D
               •      And class loaders break
                      module boundaries


donderdag 24 maart 2011
Class Loading Revisited
                             A              B




                                   Public




donderdag 24 maart 2011
Class Loading Revisited
                             A                B
                                 C




                                     Public




donderdag 24 maart 2011
Class Loading Revisited
                             A                    B
                                 C            I




                                     Public




donderdag 24 maart 2011
Class Loading Revisited
                             A                    B
                                 C    X       I




                                     Public




donderdag 24 maart 2011
Class Loading Revisited
                             A                    B
                                 C            P




                                        I


                                     Public




donderdag 24 maart 2011
Would be nice to mention
        how µServices reduce surface
        area of design
                                          µServices
        efficiency of packet based
        approaches?

        but cost of packet based system
        is congestion - leads into
        dependency hell?




donderdag 24 maart 2011
#2 OSGi Complaint:
                           Dependency Hell


donderdag 24 maart 2011
Metadata Hell?




donderdag 24 maart 2011
Transitive Hell?




donderdag 24 maart 2011
Coupling
               • Modules require other
                      modules
               •      Dependencies are        A         B
                      transitive                  Pub
               • A→C→D                        C         D




donderdag 24 maart 2011
Coupling
               • Modules require other
                      modules
               •      Dependencies are        A         B
                      transitive                  Pub
               • A→C→D                        C         D




donderdag 24 maart 2011
Cohesion
               • Fan out is a problem
               • A does not transitively
                      depend on D!              A   B
               •      The dependency is
                      caused by
                                                C   D
                      (unnecessarily) packing
                      1 and 2 in the same
                      module


donderdag 24 maart 2011
Cohesion
               • Fan out is a problem
               • A does not transitively
                      depend on D!                A A     B
               •      The dependency is
                      caused by                   1   2   D
                      (unnecessarily) packing C
                      1 and 2 in the same
                      module


donderdag 24 maart 2011
Cohesion
               • Refactoring can
                      increase the cohesion
                      and reduce coupling      A     B
               •      But now A depends on
                      C1 and B depends on C2
                                             C 1 C
                                                 2   D
               •      Package dependencies C
                      are more robust to
                      changes


donderdag 24 maart 2011
Cohesion
               • Refactoring can
                      increase the cohesion
                      and reduce coupling          A       B
               •      But now A depends on
                      C1 and B depends on C2
                                               C
                                               1       C
                                                       2   D
               •      Package dependencies
                      are more robust to
                      changes


donderdag 24 maart 2011
Metadata Heaven?




donderdag 24 maart 2011
Requires Tools




donderdag 24 maart 2011
Tools
              1   Request deployment of a
                  component, e.g. a Bundle,
                    WAR, WAB or EAR

                                2    Refer to
                                    Application
                                      Policy              Resolver
                App
               Policy
                               3  Resolve
                               Dependencies       4  Provision
                                according to      component and
                                   Policy          dependencies
           Repository




                                                          Nimble




donderdag 24 maart 2011
Tools
              1   Request deployment of a
                  component, e.g. a Bundle,
                    WAR, WAB or EAR

                                2    Refer to
                                    Application
                                      Policy              Resolver
                App
               Policy
                               3  Resolve
                               Dependencies       4  Provision
                                according to      component and
                                   Policy          dependencies
           Repository




                                                          Nimble




donderdag 24 maart 2011
OSGi           OSGi            OSGi
                      Build Tools   Runtime Tools   Cloud Tools




                                                         ...

donderdag 24 maart 2011
OSGi           OSGi            OSGi
                      Build Tools   Runtime Tools   Cloud Tools




                                                         ...

donderdag 24 maart 2011
How to Manage
                              Complexity?
                   • Prepare to spend energy!
                   • Architecture = µservice model
                   • Use tools to manage Metadata and
                          Dependencies
                   • Small increments
                   • One test is worth a thousand opinions.
donderdag 24 maart 2011

Weitere ähnliche Inhalte

Kürzlich hochgeladen

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
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
 
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
 
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
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
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...Drew Madelung
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
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
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
🐬 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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 

Kürzlich hochgeladen (20)

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
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
 
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
 
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
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
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
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Empfohlen

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

How to manage software complexity with OSGi

  • 1. How to Manage Software Complexity with OSGi Peter Kriens & David Savage donderdag 24 maart 2011
  • 4. The puzzle looks very simple, contrary to many other wire puzzles, that look scary and complex right from the start. Nevertheless, its looks are deceiving, as it can prove to be frustratingly difficult to solve. donderdag 24 maart 2011
  • 6. Complex? Worlds Largest Jigsaw Puzzle 24.000 pieces (4.28m x 1.57m) donderdag 24 maart 2011
  • 7. The Eye Of The Beholder • Complexity of a task is the energy you use to complete that task c = √E/m donderdag 24 maart 2011
  • 8. The Eye Of The Beholder • Complexity of a task is the energy you use to complete that task c = √E/m donderdag 24 maart 2011
  • 9. Energy? • Understanding the problem • Learning the solution • Accidental complexity • Size matters! donderdag 24 maart 2011
  • 10. Energy? Subjective Complexity • Understanding the problem • Learning the solution • Accidental complexity • Size matters! donderdag 24 maart 2011
  • 11. Energy? Subjective Complexity • Understanding the problem • Learning the solution • Accidental complexity • Size matters! Absolute Complexity size related donderdag 24 maart 2011
  • 12. What’s Modularity Got to do With Size??? donderdag 24 maart 2011
  • 13. Modularity • Functions • local variables • Object Oriented • fields, methods, inheritance, polymorphism • instances • Bundles • implementations, services • components donderdag 24 maart 2011
  • 14. Modularity • Functions • local variables • Object Oriented • fields, methods, inheritance, polymorphism • instances • Bundles • implementations, services • components donderdag 24 maart 2011
  • 15. Modularity • Modularity is about creating a difference between an inside and an A B outside AB CD • Chunking - having an anchor for an aggregation C D • Visibility - is reduced, reducing the scope to attend for changes donderdag 24 maart 2011
  • 16. Modularity • Modularity is about creating a difference between an inside and an A B outside • Chunking - having an anchor for an aggregation C AB CD D • Visibility - is reduced, reducing the scope to attend for changes donderdag 24 maart 2011
  • 17. Modularity • modules have a private space and share a public space A B • modules limit their visibility and exposure C D • Reduces geometric to linear complexity donderdag 24 maart 2011
  • 18. Modularity • modules have a private space and share a public space A B • modules limit their Pub visibility and exposure C D • Reduces geometric to linear complexity donderdag 24 maart 2011
  • 19. Modularity • modules have a private space and share a public space A B • modules limit their Pub visibility and exposure C D • Reduces geometric to linear complexity donderdag 24 maart 2011
  • 20. Entropy E functionality Emodularization donderdag 24 maart 2011
  • 21. Entropy E functionality Emodularization donderdag 24 maart 2011
  • 22. Entropy E functionality Emodularization donderdag 24 maart 2011
  • 23. Entropy E functionality Emodularization donderdag 24 maart 2011
  • 24. Entropy E functionality Emodularization donderdag 24 maart 2011
  • 25. Entropy E functionality Emodularization donderdag 24 maart 2011
  • 26. #1 OSGi Complaint: Class Loaders! donderdag 24 maart 2011
  • 28. Class Loading Revisited • Class.forName • Class path Scanning • Service Loader • Thread Context Class Loaders • Factory, and FactoryBuilders donderdag 24 maart 2011
  • 29. Class Loading Revisited • Class loaders are used to provide extensibility and decoupling A B • They were not Pub designed for this purpose, C D • And class loaders break module boundaries donderdag 24 maart 2011
  • 30. Class Loading Revisited A B Public donderdag 24 maart 2011
  • 31. Class Loading Revisited A B C Public donderdag 24 maart 2011
  • 32. Class Loading Revisited A B C I Public donderdag 24 maart 2011
  • 33. Class Loading Revisited A B C X I Public donderdag 24 maart 2011
  • 34. Class Loading Revisited A B C P I Public donderdag 24 maart 2011
  • 35. Would be nice to mention how µServices reduce surface area of design µServices efficiency of packet based approaches? but cost of packet based system is congestion - leads into dependency hell? donderdag 24 maart 2011
  • 36. #2 OSGi Complaint: Dependency Hell donderdag 24 maart 2011
  • 39. Coupling • Modules require other modules • Dependencies are A B transitive Pub • A→C→D C D donderdag 24 maart 2011
  • 40. Coupling • Modules require other modules • Dependencies are A B transitive Pub • A→C→D C D donderdag 24 maart 2011
  • 41. Cohesion • Fan out is a problem • A does not transitively depend on D! A B • The dependency is caused by C D (unnecessarily) packing 1 and 2 in the same module donderdag 24 maart 2011
  • 42. Cohesion • Fan out is a problem • A does not transitively depend on D! A A B • The dependency is caused by 1 2 D (unnecessarily) packing C 1 and 2 in the same module donderdag 24 maart 2011
  • 43. Cohesion • Refactoring can increase the cohesion and reduce coupling A B • But now A depends on C1 and B depends on C2 C 1 C 2 D • Package dependencies C are more robust to changes donderdag 24 maart 2011
  • 44. Cohesion • Refactoring can increase the cohesion and reduce coupling A B • But now A depends on C1 and B depends on C2 C 1 C 2 D • Package dependencies are more robust to changes donderdag 24 maart 2011
  • 47. Tools 1 Request deployment of a component, e.g. a Bundle, WAR, WAB or EAR 2 Refer to Application Policy Resolver App Policy 3 Resolve Dependencies 4 Provision according to component and Policy dependencies Repository Nimble donderdag 24 maart 2011
  • 48. Tools 1 Request deployment of a component, e.g. a Bundle, WAR, WAB or EAR 2 Refer to Application Policy Resolver App Policy 3 Resolve Dependencies 4 Provision according to component and Policy dependencies Repository Nimble donderdag 24 maart 2011
  • 49. OSGi OSGi OSGi Build Tools Runtime Tools Cloud Tools ... donderdag 24 maart 2011
  • 50. OSGi OSGi OSGi Build Tools Runtime Tools Cloud Tools ... donderdag 24 maart 2011
  • 51. How to Manage Complexity? • Prepare to spend energy! • Architecture = µservice model • Use tools to manage Metadata and Dependencies • Small increments • One test is worth a thousand opinions. donderdag 24 maart 2011