SlideShare ist ein Scribd-Unternehmen logo
1 von 8
MICROSERVICES
MONOLITHIC APPLICATION
 Typical applications using a framework, or all the applications we have been
developing are divided into different parts, such frontend, backend and
database, an also use Model-View-Controller (MVC) pattern or Client/Server
Applications or even Host/Terminal applications.
WHAT ARE MICROSERVICES?
 We can define a microservice as an extended Service Oriented Architecture. In
other words, it is a way to develop an application by following the required
steps to turn it into various little services.
 Each service will execute itself and communicate with others through
requests, usually using APIs on HTTP.
 A microservice is simple, isolated entity with a concrete proposal.
 It is independent and works with the rest of the microservices by
communicating through an agreed channel.
SOA VERSUS MICROSERVICES
 SOA focuses on integrating monolithic applications between themselves and it uses as Enterprise Service
BU to achieve this.
 SOA includes:
 Business process Management (BPM)
 Service repositories
 Register
 BPEL
 Microservices tried to connect different components between themselves using APIs.
SOA VERSUS MICROSERVICES
 Microservice architecture:
 Ready to fail: Microservices are designed to fail. In a web application, microservices
communicate with each other and if one of them fails, the rest should work to avoid a cascading
failure. Attempt to avoid communicating synchronously using async calls, queues, system based
on actors, and streams instead.
 Unix philosophy: Each microservice must be designed to do one thing only, and should only be
small and independent.
 Communication layer: Each microservice communicates with the others with the others through
HTTP requests and messages, executing the business logic, querying the database, exchanging
messages with the required systems and, an the end returing a JSON (or HTML/XML) response.
 Scalability: The main reason to choose a microservice architecture is that it is possible to scale
the application easily.
DISADVANTAGES OF MICROSERVICES
 Debugging
 Maintain every single microservice as an entire server, in other words, every single microservice can have
one or more database, logs, different services, or library versions, and even the code can be in different
language
 Communication gaps
 Learn tools for Full automatization (Continuous Integration – Continuous Delivery) (CI/CD)
 Jenkins, Docker, Terraform, Packer, Ansible, Chef, Puppet, Kubernetes.
 Network latency
DEVELOPMENT ON MICROSERVICES
 The most important idea behind microservice is the need to decompose your application into smaller
logical pieces.
 Always create small logical black boxes. Each microservice is likea a black box with a public interface,
which is the only way to interact with your software.
 Each service can be scaled up or down.
 Use a lightweight communication protocol. Like HTTP or REST.
 Use queues to reduce a service load or make async executions.
 Be ready for the worst case scenario, like cascade failure.
 Each service is different, so keep different repositories and build environments.
BASIC PLATFORM FOR MICROSERVICES
REVERSE PROXY to balance the load
NGINX as a gateway for the API build
CACHE to reduce the load and increase
performance
QUEUE system to execute big resource
consuming tasks or tasks need to be
executed deferred
DATA STORE for saving data for authorized
users
Telemetry for stats system from the container
Autodiscovery helps to see which container
is working properly

Weitere ähnliche Inhalte

Ähnlich wie Microservices.pptx

Ähnlich wie Microservices.pptx (20)

AppDev with Microservices
AppDev with MicroservicesAppDev with Microservices
AppDev with Microservices
 
Introduction to Microservices
Introduction to MicroservicesIntroduction to Microservices
Introduction to Microservices
 
Architecting for speed: How agile innovators accelerate growth through micros...
Architecting for speed: How agile innovators accelerate growth through micros...Architecting for speed: How agile innovators accelerate growth through micros...
Architecting for speed: How agile innovators accelerate growth through micros...
 
Architecting for speed - how agile innovators accelerate growth through micro...
Architecting for speed - how agile innovators accelerate growth through micro...Architecting for speed - how agile innovators accelerate growth through micro...
Architecting for speed - how agile innovators accelerate growth through micro...
 
اساليب البرمجيات الحديثة Modern Software Development
اساليب البرمجيات الحديثة Modern Software Developmentاساليب البرمجيات الحديثة Modern Software Development
اساليب البرمجيات الحديثة Modern Software Development
 
Microservices Design Principles.pdf
Microservices Design Principles.pdfMicroservices Design Principles.pdf
Microservices Design Principles.pdf
 
Introduction to Microservices.pdf
Introduction to Microservices.pdfIntroduction to Microservices.pdf
Introduction to Microservices.pdf
 
SELECTION MECHANISM OF MICRO-SERVICES ORCHESTRATION VS. CHOREOGRAPHY
SELECTION MECHANISM OF MICRO-SERVICES ORCHESTRATION VS. CHOREOGRAPHY SELECTION MECHANISM OF MICRO-SERVICES ORCHESTRATION VS. CHOREOGRAPHY
SELECTION MECHANISM OF MICRO-SERVICES ORCHESTRATION VS. CHOREOGRAPHY
 
SELECTION MECHANISM OF MICRO-SERVICES ORCHESTRATION VS. CHOREOGRAPHY
SELECTION MECHANISM OF MICRO-SERVICES ORCHESTRATION VS. CHOREOGRAPHYSELECTION MECHANISM OF MICRO-SERVICES ORCHESTRATION VS. CHOREOGRAPHY
SELECTION MECHANISM OF MICRO-SERVICES ORCHESTRATION VS. CHOREOGRAPHY
 
Microservices Architecture, Monolith Migration Patterns
Microservices Architecture, Monolith Migration PatternsMicroservices Architecture, Monolith Migration Patterns
Microservices Architecture, Monolith Migration Patterns
 
Micro services vs Monolith Architecture
Micro services vs Monolith ArchitectureMicro services vs Monolith Architecture
Micro services vs Monolith Architecture
 
Architecting for speed: how agile innovators accelerate growth through micros...
Architecting for speed: how agile innovators accelerate growth through micros...Architecting for speed: how agile innovators accelerate growth through micros...
Architecting for speed: how agile innovators accelerate growth through micros...
 
Architecting for speed: how agile innovators accelerate growth through micros...
Architecting for speed: how agile innovators accelerate growth through micros...Architecting for speed: how agile innovators accelerate growth through micros...
Architecting for speed: how agile innovators accelerate growth through micros...
 
[WSO2Con EU 2017] Microservices for Enterprises
[WSO2Con EU 2017] Microservices for Enterprises[WSO2Con EU 2017] Microservices for Enterprises
[WSO2Con EU 2017] Microservices for Enterprises
 
Integrating microservices with JBoss Fuse
Integrating microservices with JBoss FuseIntegrating microservices with JBoss Fuse
Integrating microservices with JBoss Fuse
 
Introduction to Micro Services
Introduction to Micro ServicesIntroduction to Micro Services
Introduction to Micro Services
 
Microservices approach for Websphere commerce
Microservices approach for Websphere commerceMicroservices approach for Websphere commerce
Microservices approach for Websphere commerce
 
Microservices for Enterprises
Microservices for Enterprises Microservices for Enterprises
Microservices for Enterprises
 
Microservice architecture
Microservice architectureMicroservice architecture
Microservice architecture
 
Microservices-101
Microservices-101Microservices-101
Microservices-101
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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
 
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
 
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, ...
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
🐬 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...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Microservices.pptx

  • 2. MONOLITHIC APPLICATION  Typical applications using a framework, or all the applications we have been developing are divided into different parts, such frontend, backend and database, an also use Model-View-Controller (MVC) pattern or Client/Server Applications or even Host/Terminal applications.
  • 3. WHAT ARE MICROSERVICES?  We can define a microservice as an extended Service Oriented Architecture. In other words, it is a way to develop an application by following the required steps to turn it into various little services.  Each service will execute itself and communicate with others through requests, usually using APIs on HTTP.  A microservice is simple, isolated entity with a concrete proposal.  It is independent and works with the rest of the microservices by communicating through an agreed channel.
  • 4. SOA VERSUS MICROSERVICES  SOA focuses on integrating monolithic applications between themselves and it uses as Enterprise Service BU to achieve this.  SOA includes:  Business process Management (BPM)  Service repositories  Register  BPEL  Microservices tried to connect different components between themselves using APIs.
  • 5. SOA VERSUS MICROSERVICES  Microservice architecture:  Ready to fail: Microservices are designed to fail. In a web application, microservices communicate with each other and if one of them fails, the rest should work to avoid a cascading failure. Attempt to avoid communicating synchronously using async calls, queues, system based on actors, and streams instead.  Unix philosophy: Each microservice must be designed to do one thing only, and should only be small and independent.  Communication layer: Each microservice communicates with the others with the others through HTTP requests and messages, executing the business logic, querying the database, exchanging messages with the required systems and, an the end returing a JSON (or HTML/XML) response.  Scalability: The main reason to choose a microservice architecture is that it is possible to scale the application easily.
  • 6. DISADVANTAGES OF MICROSERVICES  Debugging  Maintain every single microservice as an entire server, in other words, every single microservice can have one or more database, logs, different services, or library versions, and even the code can be in different language  Communication gaps  Learn tools for Full automatization (Continuous Integration – Continuous Delivery) (CI/CD)  Jenkins, Docker, Terraform, Packer, Ansible, Chef, Puppet, Kubernetes.  Network latency
  • 7. DEVELOPMENT ON MICROSERVICES  The most important idea behind microservice is the need to decompose your application into smaller logical pieces.  Always create small logical black boxes. Each microservice is likea a black box with a public interface, which is the only way to interact with your software.  Each service can be scaled up or down.  Use a lightweight communication protocol. Like HTTP or REST.  Use queues to reduce a service load or make async executions.  Be ready for the worst case scenario, like cascade failure.  Each service is different, so keep different repositories and build environments.
  • 8. BASIC PLATFORM FOR MICROSERVICES REVERSE PROXY to balance the load NGINX as a gateway for the API build CACHE to reduce the load and increase performance QUEUE system to execute big resource consuming tasks or tasks need to be executed deferred DATA STORE for saving data for authorized users Telemetry for stats system from the container Autodiscovery helps to see which container is working properly