SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Microservices
Evolution of middleware
Ramesh Kumar
Senior web Developer
Today’s Agenda
• Monolithic System
• Mircoservice and its Charecteristics?
• Microservice Achitecture
• Legacy Systems
• Monolitic Systems
• SOA
• Monolithic vs Microservice
• Advantage & Disadvantage.
• Benefits of Microservices
• Examples
• Takeaway
• Q&A
Monolithic Architecture
• A monolithic application is self-contained, and independent from other
computing applications. The design philosophy is that the application is
responsible not just for a particular task, but can perform every step
needed to complete a particular function.
• Complete task, end to end
• Work together
• No Modularity
• Reuse of parts of the application logic
• Maintenance by allowing repair or replacement of parts
Basic Monolithic enterprise application
Examples
• Most programs you deal with day-to-day
• word processing, spreadsheets , powerpoint
• e-mail (?)
• development environments
• Compilers
• many games
• Large, corporate batch systems
• payroll
• reports
• astounding number of very large mainframe
Characteristics
• Usually written in a single programming language.
• Everything compiled and linked into a single (monolithic) application
• May operate in both batch and GUI
• Data
• – load into memory – write all back on explicit save
• – No simultaneous data sharing
• May have concurrency
• – multi-threading
• – multi-processing (but only one executable)
Advantages
• Performance
– Reading and writing of data can be optimized for performance without regard to
issues such as multi-user data sharing.
– read data directly from the disk via file system
– read data less directly from the disk via layers of intervening software (e.g.,
RDBMS, OODBMS, distributed data server).
– modifying data needn’t worry about writers in other address spaces.
• In-memory is massively quicker
• Caching would present many subtle issues for shared data systems – No IPC overhead
• Simplicity – less code to write – fewer issues to deal with
• locking, transactions, integrity, performance, geographic distribution
Disadvantages
• Lack of support for shared access, forces one-at-a-time access
• Mitigate:
• allowing datasets that merge multiple files
• hybrid approaches
• complex monolithic analysis software
• simple data client/server update software
• Quantity of data
– when quantity of data is too large to load into memory
– too much time to load too much virtual memory used
– Depending on which is possible
– sequential access (lock db or shadow db)
– selective access
Some Definitions...
• Microservices are small, autonomous services that work together.
• The microservice architectural style is an approach to developing a
single application as a suite of small services, each running in its own
process and communicating with lightweight mechanisms.
• A typically referenced guideline is the Two-Pizza Team rule, which states
if you cannot feed the team building a microservice with two pizzas,
your microservice is too big.
What is Microservice?
• Each service is loosely coupled / independently deployable.
• Changes made only to this service.
• Each service has a bounded context.
• Service should not know about surrounding service.
• Remotely accessible service (typically http).
• Does “one thing” (and does it well?).
• Executes stand alone in a container (JVM - in this case).
• Can be composed into a larger service.
Challenges
• Scaling monolithic applications is challenging as we have just one
degree of freedom to scale out
• The same challenge applies to replication
• Innovation is constrained by the fact that we cannot easily mix different
technologies for implementing the various functionalities
• Incremental Change is constrained by the fact that can’t incrementally
deploy new functionalities . We needto redeploy an entire subsystem.
• Loose Coupling and High Cohesion are harder to achieve and especially
to preserve as the barriers” between functionalities are very thin
Why not monolithic?
• Development Phase
• Apps grow (teams grow too!)
• Different parts change at different rates.
• Different execution container needs (resources)
• Different teams?
• Company grows?
• Deployment Phase
• Deploying a change to a microservice does not
• Increase blood pressure as much as deploying the
• ONE MASSIVE APP THAT RUNS EVERYTHING
• Fear of deploying a change.
• Risk of trying a new technique, new framework.
Why Microservices?
Characteristics
• Services
• Products vs Projects
• Smart endpoints / dumb pipes
• Decentralized governance
• Decentralised data management
• Automation
• Design for failure
• Evolutionary design
Microservice Architectures
• Individual functionalities become unit of deployment and run
in their own process
• Microservices communicate
through some lightweight
mechanism.
Monolithic vs. Mircoservice
• A monolithic applications merges multiple functionalities in the
same executable.
Advantages
• Small code base / easier to test / maintain
• Easy to scale - clone
• Easy to throw away
• Easy to deploy and track errors
• Freedom to switch tech stack
• Maximise team agility
• Maximise resource utilisation
• Debugging
• Smooth deployments
Disadvantages
• Devops challenge on multiple fronts
• Complexity in messaging and front end
• Most container technologies still new
• Freedom of tech stack not always good news (for the future
and for the CTO)
• Cost
• Performance
• Deployment and
• Operation
Anatomy of a Microservice
• Decoupled Middleware design pattern
• Microservices communicate across a Service Bus (Kafka, RabbitMQ,
NATS.io)
• Service Bus is centralised
• Microservices are distributed
• TCP communication is generally favoured
• Microservices do 1 thing only, and they do it very well
• Not restricted to a specific technology
• Facilitates Circuit Breaker, Bulkhead, and Handshaking design patterns
• Avoids cascading failure
Technical Benefits
• Eliminates dependencies
• Failure is isolated
• React to change quicker
• Scale is less expensive
• More intuitive learning curve
• Technology stack is not limited to specific skillsets
• Shielded from legal pitfalls
• Reusable components
• Flexible – will bend rather than break under pressure
Micro Service and agility
• Modern agile practice can not ignore tech
• No modern tech = no absolute agility
• Micro services enable agility in a special way
• Enforce team creation
• Enforce faster deployments / better & easier tests
• CI / CD
• Easier communication flow methods (APIs)
• Each service = small scale product
Container Technology in micros
• Containers assist micro architecture in
• Visualising services
• Building / sharing services between coders
• Deploying services
• Utilising server resources to run containers
• irrespective of underlying tech
• Popular container technologies
• Docker
• Rocket
Container Management
• Used to maintain and utilize containers /services
• Make sure all services up and running
• Make sure server utilisation is maxed out
• Popular container management technologies
• CoreOS fleet
• Docker-machine
• Mesos
• Kubernetes
• AWS ECS / Google Container Engine
The Anatomy of a hybrid Service
List of Companies following Microservice Architecture
•
Comcast
• Cable
• Uber
• Netflix
• Amazon
• Ebay
• Sound Cloud
• Karma
• Groupon
• Hailo
• Gilt
Microservice intro
Microservice intro

Weitere ähnliche Inhalte

Was ist angesagt?

Microservices
MicroservicesMicroservices
MicroservicesSmartBear
 
What are Microservices | Microservices Architecture Training | Microservices ...
What are Microservices | Microservices Architecture Training | Microservices ...What are Microservices | Microservices Architecture Training | Microservices ...
What are Microservices | Microservices Architecture Training | Microservices ...Edureka!
 
Microservices Architecture - Bangkok 2018
Microservices Architecture - Bangkok 2018Microservices Architecture - Bangkok 2018
Microservices Architecture - Bangkok 2018Araf Karsh Hamid
 
Microservice vs. Monolithic Architecture
Microservice vs. Monolithic ArchitectureMicroservice vs. Monolithic Architecture
Microservice vs. Monolithic ArchitecturePaul Mooney
 
Microservices Architecture & Testing Strategies
Microservices Architecture & Testing StrategiesMicroservices Architecture & Testing Strategies
Microservices Architecture & Testing StrategiesAraf Karsh Hamid
 
Monoliths and Microservices
Monoliths and Microservices Monoliths and Microservices
Monoliths and Microservices Bozhidar Bozhanov
 
Microservices in Practice
Microservices in PracticeMicroservices in Practice
Microservices in PracticeKasun Indrasiri
 
Microservice Architecture
Microservice ArchitectureMicroservice Architecture
Microservice Architecturetyrantbrian
 
Microservices, Containers, Kubernetes, Kafka, Kanban
Microservices, Containers, Kubernetes, Kafka, KanbanMicroservices, Containers, Kubernetes, Kafka, Kanban
Microservices, Containers, Kubernetes, Kafka, KanbanAraf Karsh Hamid
 
A Pattern Language for Microservices
A Pattern Language for MicroservicesA Pattern Language for Microservices
A Pattern Language for MicroservicesChris Richardson
 
Introduction to microservices
Introduction to microservicesIntroduction to microservices
Introduction to microservicesAnil Allewar
 
Understanding MicroSERVICE Architecture with Java & Spring Boot
Understanding MicroSERVICE Architecture with Java & Spring BootUnderstanding MicroSERVICE Architecture with Java & Spring Boot
Understanding MicroSERVICE Architecture with Java & Spring BootKashif Ali Siddiqui
 
Introduction to Microservices
Introduction to MicroservicesIntroduction to Microservices
Introduction to MicroservicesMahmoudZidan41
 
Communication in a Microservice Architecture
Communication in a Microservice ArchitectureCommunication in a Microservice Architecture
Communication in a Microservice ArchitecturePer Bernhardt
 

Was ist angesagt? (20)

Microservices
MicroservicesMicroservices
Microservices
 
What are Microservices | Microservices Architecture Training | Microservices ...
What are Microservices | Microservices Architecture Training | Microservices ...What are Microservices | Microservices Architecture Training | Microservices ...
What are Microservices | Microservices Architecture Training | Microservices ...
 
Architecture: Microservices
Architecture: MicroservicesArchitecture: Microservices
Architecture: Microservices
 
Microservices Architecture - Bangkok 2018
Microservices Architecture - Bangkok 2018Microservices Architecture - Bangkok 2018
Microservices Architecture - Bangkok 2018
 
Introduction to Microservices
Introduction to MicroservicesIntroduction to Microservices
Introduction to Microservices
 
Microservice vs. Monolithic Architecture
Microservice vs. Monolithic ArchitectureMicroservice vs. Monolithic Architecture
Microservice vs. Monolithic Architecture
 
Introduction to microservices
Introduction to microservicesIntroduction to microservices
Introduction to microservices
 
Microservices Architecture & Testing Strategies
Microservices Architecture & Testing StrategiesMicroservices Architecture & Testing Strategies
Microservices Architecture & Testing Strategies
 
Monoliths and Microservices
Monoliths and Microservices Monoliths and Microservices
Monoliths and Microservices
 
Microservices in Practice
Microservices in PracticeMicroservices in Practice
Microservices in Practice
 
Introduction to Microservices
Introduction to MicroservicesIntroduction to Microservices
Introduction to Microservices
 
Introduction to Microservices
Introduction to MicroservicesIntroduction to Microservices
Introduction to Microservices
 
Microservice Architecture
Microservice ArchitectureMicroservice Architecture
Microservice Architecture
 
Microservices, Containers, Kubernetes, Kafka, Kanban
Microservices, Containers, Kubernetes, Kafka, KanbanMicroservices, Containers, Kubernetes, Kafka, Kanban
Microservices, Containers, Kubernetes, Kafka, Kanban
 
A Pattern Language for Microservices
A Pattern Language for MicroservicesA Pattern Language for Microservices
A Pattern Language for Microservices
 
Introduction to microservices
Introduction to microservicesIntroduction to microservices
Introduction to microservices
 
Micro frontend
Micro frontendMicro frontend
Micro frontend
 
Understanding MicroSERVICE Architecture with Java & Spring Boot
Understanding MicroSERVICE Architecture with Java & Spring BootUnderstanding MicroSERVICE Architecture with Java & Spring Boot
Understanding MicroSERVICE Architecture with Java & Spring Boot
 
Introduction to Microservices
Introduction to MicroservicesIntroduction to Microservices
Introduction to Microservices
 
Communication in a Microservice Architecture
Communication in a Microservice ArchitectureCommunication in a Microservice Architecture
Communication in a Microservice Architecture
 

Ähnlich wie Microservice intro

Understanding Microservices
Understanding Microservices Understanding Microservices
Understanding Microservices M A Hossain Tonu
 
Serverless microservices
Serverless microservicesServerless microservices
Serverless microservicesLalit Kale
 
MicroserviceArchitecture in detail over Monolith.
MicroserviceArchitecture in detail over Monolith.MicroserviceArchitecture in detail over Monolith.
MicroserviceArchitecture in detail over Monolith.PLovababu
 
MICROSERVICES ARCHITECTURE unit -2.pptx
MICROSERVICES ARCHITECTURE unit -2.pptxMICROSERVICES ARCHITECTURE unit -2.pptx
MICROSERVICES ARCHITECTURE unit -2.pptxMohammedShahid562503
 
Micro Services Architecture
Micro Services ArchitectureMicro Services Architecture
Micro Services ArchitectureRabbani Mohideen
 
Alex Thissen (Xpirit) - Een verschuiving in architectuur: op weg naar microse...
Alex Thissen (Xpirit) - Een verschuiving in architectuur: op weg naar microse...Alex Thissen (Xpirit) - Een verschuiving in architectuur: op weg naar microse...
Alex Thissen (Xpirit) - Een verschuiving in architectuur: op weg naar microse...AFAS Software
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Karmanjay Verma
 
Microservice Architecture
Microservice ArchitectureMicroservice Architecture
Microservice ArchitectureEngin Yoeyen
 
QCon 2015 - Microservices Track Notes
QCon 2015 - Microservices Track Notes QCon 2015 - Microservices Track Notes
QCon 2015 - Microservices Track Notes Abdul Basit Munda
 
Software Architectures, Week 3 - Microservice-based Architectures
Software Architectures, Week 3 - Microservice-based ArchitecturesSoftware Architectures, Week 3 - Microservice-based Architectures
Software Architectures, Week 3 - Microservice-based ArchitecturesAngelos Kapsimanis
 
Iot cloud service v2.0
Iot cloud service v2.0Iot cloud service v2.0
Iot cloud service v2.0Vinod Wilson
 
The Overview of Microservices Architecture
The Overview of Microservices ArchitectureThe Overview of Microservices Architecture
The Overview of Microservices ArchitectureParia Heidari
 
Micro service session 1
Micro service   session 1Micro service   session 1
Micro service session 1Amin Arab
 
Grokking microservices in 5 minutes
Grokking microservices in 5 minutesGrokking microservices in 5 minutes
Grokking microservices in 5 minutesAndrew Siemer
 
MicroServices architecture @ Ctrip v1.1
MicroServices architecture @ Ctrip v1.1MicroServices architecture @ Ctrip v1.1
MicroServices architecture @ Ctrip v1.1William Yang
 
Micro-services architecture
Micro-services architectureMicro-services architecture
Micro-services architectureFarwa Ansari
 
Microserces Architecture
Microserces ArchitectureMicroserces Architecture
Microserces ArchitectureHadi Rasouli
 
Pros & Cons of Microservices Architecture
Pros & Cons of Microservices ArchitecturePros & Cons of Microservices Architecture
Pros & Cons of Microservices ArchitectureAshwini Kuntamukkala
 
DEVNET-1142 Decomposing Monolithic Applications to Microservices
DEVNET-1142	Decomposing Monolithic Applications to MicroservicesDEVNET-1142	Decomposing Monolithic Applications to Microservices
DEVNET-1142 Decomposing Monolithic Applications to MicroservicesCisco DevNet
 

Ähnlich wie Microservice intro (20)

Understanding Microservices
Understanding Microservices Understanding Microservices
Understanding Microservices
 
Serverless microservices
Serverless microservicesServerless microservices
Serverless microservices
 
Microservices Architecture
Microservices ArchitectureMicroservices Architecture
Microservices Architecture
 
MicroserviceArchitecture in detail over Monolith.
MicroserviceArchitecture in detail over Monolith.MicroserviceArchitecture in detail over Monolith.
MicroserviceArchitecture in detail over Monolith.
 
MICROSERVICES ARCHITECTURE unit -2.pptx
MICROSERVICES ARCHITECTURE unit -2.pptxMICROSERVICES ARCHITECTURE unit -2.pptx
MICROSERVICES ARCHITECTURE unit -2.pptx
 
Micro Services Architecture
Micro Services ArchitectureMicro Services Architecture
Micro Services Architecture
 
Alex Thissen (Xpirit) - Een verschuiving in architectuur: op weg naar microse...
Alex Thissen (Xpirit) - Een verschuiving in architectuur: op weg naar microse...Alex Thissen (Xpirit) - Een verschuiving in architectuur: op weg naar microse...
Alex Thissen (Xpirit) - Een verschuiving in architectuur: op weg naar microse...
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#
 
Microservice Architecture
Microservice ArchitectureMicroservice Architecture
Microservice Architecture
 
QCon 2015 - Microservices Track Notes
QCon 2015 - Microservices Track Notes QCon 2015 - Microservices Track Notes
QCon 2015 - Microservices Track Notes
 
Software Architectures, Week 3 - Microservice-based Architectures
Software Architectures, Week 3 - Microservice-based ArchitecturesSoftware Architectures, Week 3 - Microservice-based Architectures
Software Architectures, Week 3 - Microservice-based Architectures
 
Iot cloud service v2.0
Iot cloud service v2.0Iot cloud service v2.0
Iot cloud service v2.0
 
The Overview of Microservices Architecture
The Overview of Microservices ArchitectureThe Overview of Microservices Architecture
The Overview of Microservices Architecture
 
Micro service session 1
Micro service   session 1Micro service   session 1
Micro service session 1
 
Grokking microservices in 5 minutes
Grokking microservices in 5 minutesGrokking microservices in 5 minutes
Grokking microservices in 5 minutes
 
MicroServices architecture @ Ctrip v1.1
MicroServices architecture @ Ctrip v1.1MicroServices architecture @ Ctrip v1.1
MicroServices architecture @ Ctrip v1.1
 
Micro-services architecture
Micro-services architectureMicro-services architecture
Micro-services architecture
 
Microserces Architecture
Microserces ArchitectureMicroserces Architecture
Microserces Architecture
 
Pros & Cons of Microservices Architecture
Pros & Cons of Microservices ArchitecturePros & Cons of Microservices Architecture
Pros & Cons of Microservices Architecture
 
DEVNET-1142 Decomposing Monolithic Applications to Microservices
DEVNET-1142	Decomposing Monolithic Applications to MicroservicesDEVNET-1142	Decomposing Monolithic Applications to Microservices
DEVNET-1142 Decomposing Monolithic Applications to Microservices
 

Kürzlich hochgeladen

OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...Shane Coughlan
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationJuha-Pekka Tolvanen
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyviewmasabamasaba
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2
 
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?WSO2
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...masabamasaba
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
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...WSO2
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 

Kürzlich hochgeladen (20)

OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
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?
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
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...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 

Microservice intro

  • 1. Microservices Evolution of middleware Ramesh Kumar Senior web Developer
  • 2. Today’s Agenda • Monolithic System • Mircoservice and its Charecteristics? • Microservice Achitecture • Legacy Systems • Monolitic Systems • SOA • Monolithic vs Microservice • Advantage & Disadvantage. • Benefits of Microservices • Examples • Takeaway • Q&A
  • 3. Monolithic Architecture • A monolithic application is self-contained, and independent from other computing applications. The design philosophy is that the application is responsible not just for a particular task, but can perform every step needed to complete a particular function. • Complete task, end to end • Work together • No Modularity • Reuse of parts of the application logic • Maintenance by allowing repair or replacement of parts
  • 5. Examples • Most programs you deal with day-to-day • word processing, spreadsheets , powerpoint • e-mail (?) • development environments • Compilers • many games • Large, corporate batch systems • payroll • reports • astounding number of very large mainframe
  • 6. Characteristics • Usually written in a single programming language. • Everything compiled and linked into a single (monolithic) application • May operate in both batch and GUI • Data • – load into memory – write all back on explicit save • – No simultaneous data sharing • May have concurrency • – multi-threading • – multi-processing (but only one executable)
  • 7. Advantages • Performance – Reading and writing of data can be optimized for performance without regard to issues such as multi-user data sharing. – read data directly from the disk via file system – read data less directly from the disk via layers of intervening software (e.g., RDBMS, OODBMS, distributed data server). – modifying data needn’t worry about writers in other address spaces. • In-memory is massively quicker • Caching would present many subtle issues for shared data systems – No IPC overhead • Simplicity – less code to write – fewer issues to deal with • locking, transactions, integrity, performance, geographic distribution
  • 8. Disadvantages • Lack of support for shared access, forces one-at-a-time access • Mitigate: • allowing datasets that merge multiple files • hybrid approaches • complex monolithic analysis software • simple data client/server update software • Quantity of data – when quantity of data is too large to load into memory – too much time to load too much virtual memory used – Depending on which is possible – sequential access (lock db or shadow db) – selective access
  • 9. Some Definitions... • Microservices are small, autonomous services that work together. • The microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms. • A typically referenced guideline is the Two-Pizza Team rule, which states if you cannot feed the team building a microservice with two pizzas, your microservice is too big.
  • 10. What is Microservice? • Each service is loosely coupled / independently deployable. • Changes made only to this service. • Each service has a bounded context. • Service should not know about surrounding service. • Remotely accessible service (typically http). • Does “one thing” (and does it well?). • Executes stand alone in a container (JVM - in this case). • Can be composed into a larger service.
  • 11. Challenges • Scaling monolithic applications is challenging as we have just one degree of freedom to scale out • The same challenge applies to replication • Innovation is constrained by the fact that we cannot easily mix different technologies for implementing the various functionalities • Incremental Change is constrained by the fact that can’t incrementally deploy new functionalities . We needto redeploy an entire subsystem. • Loose Coupling and High Cohesion are harder to achieve and especially to preserve as the barriers” between functionalities are very thin
  • 12. Why not monolithic? • Development Phase • Apps grow (teams grow too!) • Different parts change at different rates. • Different execution container needs (resources) • Different teams? • Company grows? • Deployment Phase • Deploying a change to a microservice does not • Increase blood pressure as much as deploying the • ONE MASSIVE APP THAT RUNS EVERYTHING • Fear of deploying a change. • Risk of trying a new technique, new framework.
  • 14. Characteristics • Services • Products vs Projects • Smart endpoints / dumb pipes • Decentralized governance • Decentralised data management • Automation • Design for failure • Evolutionary design
  • 15. Microservice Architectures • Individual functionalities become unit of deployment and run in their own process • Microservices communicate through some lightweight mechanism.
  • 16.
  • 17. Monolithic vs. Mircoservice • A monolithic applications merges multiple functionalities in the same executable.
  • 18.
  • 19.
  • 20. Advantages • Small code base / easier to test / maintain • Easy to scale - clone • Easy to throw away • Easy to deploy and track errors • Freedom to switch tech stack • Maximise team agility • Maximise resource utilisation • Debugging • Smooth deployments
  • 21. Disadvantages • Devops challenge on multiple fronts • Complexity in messaging and front end • Most container technologies still new • Freedom of tech stack not always good news (for the future and for the CTO) • Cost • Performance • Deployment and • Operation
  • 22. Anatomy of a Microservice • Decoupled Middleware design pattern • Microservices communicate across a Service Bus (Kafka, RabbitMQ, NATS.io) • Service Bus is centralised • Microservices are distributed • TCP communication is generally favoured • Microservices do 1 thing only, and they do it very well • Not restricted to a specific technology • Facilitates Circuit Breaker, Bulkhead, and Handshaking design patterns • Avoids cascading failure
  • 23. Technical Benefits • Eliminates dependencies • Failure is isolated • React to change quicker • Scale is less expensive • More intuitive learning curve • Technology stack is not limited to specific skillsets • Shielded from legal pitfalls • Reusable components • Flexible – will bend rather than break under pressure
  • 24. Micro Service and agility • Modern agile practice can not ignore tech • No modern tech = no absolute agility • Micro services enable agility in a special way • Enforce team creation • Enforce faster deployments / better & easier tests • CI / CD • Easier communication flow methods (APIs) • Each service = small scale product
  • 25. Container Technology in micros • Containers assist micro architecture in • Visualising services • Building / sharing services between coders • Deploying services • Utilising server resources to run containers • irrespective of underlying tech • Popular container technologies • Docker • Rocket
  • 26.
  • 27. Container Management • Used to maintain and utilize containers /services • Make sure all services up and running • Make sure server utilisation is maxed out • Popular container management technologies • CoreOS fleet • Docker-machine • Mesos • Kubernetes • AWS ECS / Google Container Engine
  • 28.
  • 29. The Anatomy of a hybrid Service
  • 30. List of Companies following Microservice Architecture • Comcast • Cable • Uber • Netflix • Amazon • Ebay • Sound Cloud • Karma • Groupon • Hailo • Gilt