SlideShare a Scribd company logo
.NET Angluar Full Stack
Building Microservices with .NET Core 2.0
Microservices
F. BZIOU
Développement Web
Module:
F. BZIOU 2.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Plan
 Origin of microservices
 Discussing microservices
 Understanding the microservice architecture
 Advantages of microservices
 SOA versus microservices
 Understanding the problems with the monolithic architectural style
 Summary
A.Mazoul 3Programmation Mobile
.NET Core 2.0
Microservices
An Introduction to Microservices
Origin of microservices
“ Microservices is a specialization of and implementation approach for
SOA used to build flexible, independently deployable software systems.”
“ 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, often an HTTP
resource API. These services are built around business capabilities and
independently deployable by fully automated deployment machinery. There is a
bare minimum of centralized management of these services, which may be
written in different programming languages and use different data storage
technologies.”
F. BZIOU .NET AngularMicroservices
F. BZIOU 4.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Discussing microservices
 We implement microservices to satisfy business features and implement them with
reduced time to market and greater flexibility.
 Two important architectures that led to its existence:
The monolithic architecture style.
SOA.
F. BZIOU 5.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Discussing microservices( Monolithic Architecture)
 Large code base: This is a scenario where the code lines outnumber the
comments
by a great margin. As components are interconnected, we will have to bear with a
repetitive code base.
 Too many business modules: This is in regard to modules within the same
system.
 Codebase complexity: This results in a higher chance of code-breaking due to
the fix required in other modules or services.
 Complex code deployment: You may come across minor changes that would
require whole system deployment.
 One module failure affecting the whole system: This is in regard to modules that
depend on each other.
 Scalability: This is required for the entire system and not just the modules in it.
Intermodule dependency: This is due to tight coupling.
 Spiraling development time: This is due to code complexity and
interdependency.
 Inability to easily adapt to a new technology: In this case, the entire system
would need to be upgraded.
F. BZIOU 6.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Discussing microservices(Service-Oriented Architecture)
“ The main difference between SOA and monolithic is not one or multiple
assemblies. As the service in SOA runs as a separate process, SOA scales better compared
to monolithic.”
What is a service?
It can be a piece of code, program, or software that provides functionality to
other system components.
 This piece of code can interact directly with the database or indirectly through
another service.
It can be consumed by clients directly, where the client may be a website,
desktop app, mobile app, or any other device app.
F. BZIOU 7.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Discussing microservices(Service-Oriented Architecture)
F. BZIOU 8.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Discussing microservices(Service-Oriented Architecture)
Reusability: Multiple clients can consume the service. The service can also be simultaneously consumed
by other services. For example, OrderService is consumed by web and mobile clients. Now, OrderService can
also be used by the Reporting Dashboard UI.
Stateless: Services do not persist any state between requests from the client, that is, the service doesn't
know, nor care that the subsequent request has come from the client that has/hasn't made the previous
request.
Contract-based: Interfaces make it technology-agnostic on both sides of implementation and
consumption. It also serves to make it immune to the code updates in the underlying functionality.
Scalability: A system can be scaled up; SOA can be individually clustered with appropriate load balancing.
Upgradation: It is very easy to roll out new functionalities or introduce new versions of the existing
functionality. The system doesn't stop you from keeping multiple versions of the same business
functionality.
F. BZIOU 9.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Understanding the microservice architecture
“ The microservice architecture is a way to develop a single application
containing a set of smaller services. These services are independent of each other and
run in their own processes. ”
Smaller codebase: Each service is small, and therefore,
easier to develop and deploy as a unit.
Ease of independent environment: With the separation
of services, all developers work independently, deploy
independently, and no one is bothered about any
module dependency.
F. BZIOU 10.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Understanding the microservice architecture
How does the microservice architecture work?
 It's programming of the modern era, where we are expected to follow all SOLID principles. It's object-
oriented programming (OOP).
 It is the best way is to expose the functionality to other or external components in a way so that any other
programming language will be able to use the functionality without adhering to any specific user interfaces,
that is, services (web services, APIs, rest services, and so on).
 The whole system works as per a type of collaboration that is not interconnected or interdependent.
 Every component is liable for its own responsibilities. In other words, components are responsible for only
one functionality.
 It segregates code with a separation concept, and segregated code is reusable.
F. BZIOU 11.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Advantages of microservices
 Cost effective to scale
 Clear code boundaries
 Easier code changes
 Easy deployment
 Technology adaptation
 Distributed system
F. BZIOU 12.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
SOA versus microservices
The underlying communication system of SOA inherently suffers from
the following problems:
The fact that a system developed in SOA depends upon its components, which
are interacting with each other. So no matter how hard you try, it is eventually
going to face a bottleneck in the message queue.
Another focal point of SOA is imperative monogramming. With this, we lose
the path to make a unit of code reusable with respect to OOP.
F. BZIOU 13.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
SOA versus microservices :
Prerequisites of the microservice architecture
 Deployment and QA
 A collaboration platform for development
and operations team
 A monitoring framework
F. BZIOU 14.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Understanding problems with the monolithic architecture style
 Fault tolerance : Monolithic applications have high module interdependency as they are tightly coupled.
 Deployment challenges : any change in the order module would require the entire application to be
deployed again.
“ Scalability of a system is its capability to handle an
increasing/increased load of work. There are two main strategies or types of
scalability in which we can scale our application.”
( Vertical scaling or scale up , Horizontal scaling or scale out )
F. BZIOU 15.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Important microservices advantages
 Technology independence : we now have the power to use different technologies for each
microservice.
 Interdependency removal : it is easy to add new features, fix bugs, or upgrade technology within
each one. This will have no impact on other microservices.
 Alignment with business goals : respond to business needs and adapt to marketing trends is not a
by-product of microservices, but their goal.
 Cost benefits : Each microservice becomes an investment for the business since it can easily be
consumed by other microservices without having to redo the same code again and again.
 Security : You can have a part of the microservice ecosystem behind firewalls and
another part to user encryption.
…
F. BZIOU 16.NET AngularMicroservices
.NET Core 2.0
Microservices
An Introduction to Microservices
Summary
F.BZIOU 17.NET AngularMicroservices
Ad

More Related Content

What's hot (8)

Testing strategies in a microservices architecture. Independence vs integration
Testing strategies in a microservices architecture.  Independence vs integrationTesting strategies in a microservices architecture.  Independence vs integration
Testing strategies in a microservices architecture. Independence vs integration
HYS Enterprise
 
Cloud computing
Cloud computingCloud computing
Cloud computing
Niva tharan
 
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
CrimsonpublishersPRSP
 
Migration and Security in SOA | Torry Harris Whitepaper
Migration and Security in SOA | Torry Harris WhitepaperMigration and Security in SOA | Torry Harris Whitepaper
Migration and Security in SOA | Torry Harris Whitepaper
Torry Harris Business Solutions
 
Secure Computing With Java
Secure Computing With JavaSecure Computing With Java
Secure Computing With Java
white paper
 
Microservices&ap imanagement
Microservices&ap imanagementMicroservices&ap imanagement
Microservices&ap imanagement
pramodkumards
 
Wireless mobile content genteration application with RSS feed integration
Wireless mobile content genteration application with RSS feed integrationWireless mobile content genteration application with RSS feed integration
Wireless mobile content genteration application with RSS feed integration
Mike Taylor
 
1st Periodical Test
1st Periodical Test1st Periodical Test
1st Periodical Test
Airel Atendido
 
Testing strategies in a microservices architecture. Independence vs integration
Testing strategies in a microservices architecture.  Independence vs integrationTesting strategies in a microservices architecture.  Independence vs integration
Testing strategies in a microservices architecture. Independence vs integration
HYS Enterprise
 
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
CrimsonpublishersPRSP
 
Secure Computing With Java
Secure Computing With JavaSecure Computing With Java
Secure Computing With Java
white paper
 
Microservices&ap imanagement
Microservices&ap imanagementMicroservices&ap imanagement
Microservices&ap imanagement
pramodkumards
 
Wireless mobile content genteration application with RSS feed integration
Wireless mobile content genteration application with RSS feed integrationWireless mobile content genteration application with RSS feed integration
Wireless mobile content genteration application with RSS feed integration
Mike Taylor
 

Similar to Introduction to Microservices (20)

What are the Advantages and Disadvantages of Microservices?
What are the Advantages and Disadvantages of Microservices? What are the Advantages and Disadvantages of Microservices?
What are the Advantages and Disadvantages of Microservices?
Zoe Gilbert
 
Microservices with mule
Microservices with muleMicroservices with mule
Microservices with mule
Govind Mulinti
 
Comparative Analysis of Software Architectures.pptx
Comparative Analysis of Software Architectures.pptxComparative Analysis of Software Architectures.pptx
Comparative Analysis of Software Architectures.pptx
ssuserecd44f
 
Microservices: Detailed Guide
Microservices: Detailed GuideMicroservices: Detailed Guide
Microservices: Detailed Guide
Biztech Consulting & Solutions
 
Microservices
MicroservicesMicroservices
Microservices
Jean-Christophe HUC (Jay C)
 
Microservices with mule
Microservices with muleMicroservices with mule
Microservices with mule
alfa
 
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
IJwest
 
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
dannyijwest
 
Unlocking the Future of Software Development with Microservices Architecture.pdf
Unlocking the Future of Software Development with Microservices Architecture.pdfUnlocking the Future of Software Development with Microservices Architecture.pdf
Unlocking the Future of Software Development with Microservices Architecture.pdf
Mobisoft Infotech
 
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...
Jesper Nordström
 
Meetup6 microservices for the IoT
Meetup6 microservices for the IoTMeetup6 microservices for the IoT
Meetup6 microservices for the IoT
Francesco Rago
 
Unit No. II Architecture.pptx Cloud Microservices & Application
Unit No. II Architecture.pptx Cloud Microservices & ApplicationUnit No. II Architecture.pptx Cloud Microservices & Application
Unit No. II Architecture.pptx Cloud Microservices & Application
Priyanka855141
 
Microservices Interview Questions and Answers PDF By ScholarHat
Microservices Interview Questions and Answers PDF By ScholarHatMicroservices Interview Questions and Answers PDF By ScholarHat
Microservices Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Microservices.pptx
Microservices.pptxMicroservices.pptx
Microservices.pptx
EverestMedinilla2
 
Term paper 2073131
Term paper   2073131Term paper   2073131
Term paper 2073131
mtestman
 
Basics of Java Microservices: Frameworks, Examples & Use Cases
Basics of Java Microservices: Frameworks, Examples & Use CasesBasics of Java Microservices: Frameworks, Examples & Use Cases
Basics of Java Microservices: Frameworks, Examples & Use Cases
GrapesTech Solutions
 
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...
3gamma
 
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...
Jesper Nordström
 
Operational impact: monolithic vs. microservices
Operational impact: monolithic vs. microservicesOperational impact: monolithic vs. microservices
Operational impact: monolithic vs. microservices
Codemech Solutions
 
MicroserviceArchitecture in detail over Monolith.
MicroserviceArchitecture in detail over Monolith.MicroserviceArchitecture in detail over Monolith.
MicroserviceArchitecture in detail over Monolith.
PLovababu
 
What are the Advantages and Disadvantages of Microservices?
What are the Advantages and Disadvantages of Microservices? What are the Advantages and Disadvantages of Microservices?
What are the Advantages and Disadvantages of Microservices?
Zoe Gilbert
 
Microservices with mule
Microservices with muleMicroservices with mule
Microservices with mule
Govind Mulinti
 
Comparative Analysis of Software Architectures.pptx
Comparative Analysis of Software Architectures.pptxComparative Analysis of Software Architectures.pptx
Comparative Analysis of Software Architectures.pptx
ssuserecd44f
 
Microservices with mule
Microservices with muleMicroservices with mule
Microservices with mule
alfa
 
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
IJwest
 
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
dannyijwest
 
Unlocking the Future of Software Development with Microservices Architecture.pdf
Unlocking the Future of Software Development with Microservices Architecture.pdfUnlocking the Future of Software Development with Microservices Architecture.pdf
Unlocking the Future of Software Development with Microservices Architecture.pdf
Mobisoft Infotech
 
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...
Jesper Nordström
 
Meetup6 microservices for the IoT
Meetup6 microservices for the IoTMeetup6 microservices for the IoT
Meetup6 microservices for the IoT
Francesco Rago
 
Unit No. II Architecture.pptx Cloud Microservices & Application
Unit No. II Architecture.pptx Cloud Microservices & ApplicationUnit No. II Architecture.pptx Cloud Microservices & Application
Unit No. II Architecture.pptx Cloud Microservices & Application
Priyanka855141
 
Microservices Interview Questions and Answers PDF By ScholarHat
Microservices Interview Questions and Answers PDF By ScholarHatMicroservices Interview Questions and Answers PDF By ScholarHat
Microservices Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Term paper 2073131
Term paper   2073131Term paper   2073131
Term paper 2073131
mtestman
 
Basics of Java Microservices: Frameworks, Examples & Use Cases
Basics of Java Microservices: Frameworks, Examples & Use CasesBasics of Java Microservices: Frameworks, Examples & Use Cases
Basics of Java Microservices: Frameworks, Examples & Use Cases
GrapesTech Solutions
 
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...
3gamma
 
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...
Jesper Nordström
 
Operational impact: monolithic vs. microservices
Operational impact: monolithic vs. microservicesOperational impact: monolithic vs. microservices
Operational impact: monolithic vs. microservices
Codemech Solutions
 
MicroserviceArchitecture in detail over Monolith.
MicroserviceArchitecture in detail over Monolith.MicroserviceArchitecture in detail over Monolith.
MicroserviceArchitecture in detail over Monolith.
PLovababu
 
Ad

Recently uploaded (20)

Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New VersionPixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
saimabibi60507
 
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
ssuserb14185
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Ranjan Baisak
 
Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025
kashifyounis067
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
The Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdfThe Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdf
drewplanas10
 
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
Andre Hora
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New VersionPixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
Pixologic ZBrush Crack Plus Activation Key [Latest 2025] New Version
saimabibi60507
 
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...Explaining GitHub Actions Failures with Large Language Models Challenges, In...
Explaining GitHub Actions Failures with Large Language Models Challenges, In...
ssuserb14185
 
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Requirements in Engineering AI- Enabled Systems: Open Problems and Safe AI Sy...
Lionel Briand
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Ranjan Baisak
 
Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025
kashifyounis067
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)
Andre Hora
 
The Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdfThe Significance of Hardware in Information Systems.pdf
The Significance of Hardware in Information Systems.pdf
drewplanas10
 
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
Andre Hora
 
Ad

Introduction to Microservices

  • 1. .NET Angluar Full Stack Building Microservices with .NET Core 2.0 Microservices F. BZIOU Développement Web Module:
  • 2. F. BZIOU 2.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Plan  Origin of microservices  Discussing microservices  Understanding the microservice architecture  Advantages of microservices  SOA versus microservices  Understanding the problems with the monolithic architectural style  Summary
  • 3. A.Mazoul 3Programmation Mobile .NET Core 2.0 Microservices An Introduction to Microservices Origin of microservices “ Microservices is a specialization of and implementation approach for SOA used to build flexible, independently deployable software systems.” “ 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, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare minimum of centralized management of these services, which may be written in different programming languages and use different data storage technologies.” F. BZIOU .NET AngularMicroservices
  • 4. F. BZIOU 4.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Discussing microservices  We implement microservices to satisfy business features and implement them with reduced time to market and greater flexibility.  Two important architectures that led to its existence: The monolithic architecture style. SOA.
  • 5. F. BZIOU 5.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Discussing microservices( Monolithic Architecture)  Large code base: This is a scenario where the code lines outnumber the comments by a great margin. As components are interconnected, we will have to bear with a repetitive code base.  Too many business modules: This is in regard to modules within the same system.  Codebase complexity: This results in a higher chance of code-breaking due to the fix required in other modules or services.  Complex code deployment: You may come across minor changes that would require whole system deployment.  One module failure affecting the whole system: This is in regard to modules that depend on each other.  Scalability: This is required for the entire system and not just the modules in it. Intermodule dependency: This is due to tight coupling.  Spiraling development time: This is due to code complexity and interdependency.  Inability to easily adapt to a new technology: In this case, the entire system would need to be upgraded.
  • 6. F. BZIOU 6.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Discussing microservices(Service-Oriented Architecture) “ The main difference between SOA and monolithic is not one or multiple assemblies. As the service in SOA runs as a separate process, SOA scales better compared to monolithic.” What is a service? It can be a piece of code, program, or software that provides functionality to other system components.  This piece of code can interact directly with the database or indirectly through another service. It can be consumed by clients directly, where the client may be a website, desktop app, mobile app, or any other device app.
  • 7. F. BZIOU 7.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Discussing microservices(Service-Oriented Architecture)
  • 8. F. BZIOU 8.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Discussing microservices(Service-Oriented Architecture) Reusability: Multiple clients can consume the service. The service can also be simultaneously consumed by other services. For example, OrderService is consumed by web and mobile clients. Now, OrderService can also be used by the Reporting Dashboard UI. Stateless: Services do not persist any state between requests from the client, that is, the service doesn't know, nor care that the subsequent request has come from the client that has/hasn't made the previous request. Contract-based: Interfaces make it technology-agnostic on both sides of implementation and consumption. It also serves to make it immune to the code updates in the underlying functionality. Scalability: A system can be scaled up; SOA can be individually clustered with appropriate load balancing. Upgradation: It is very easy to roll out new functionalities or introduce new versions of the existing functionality. The system doesn't stop you from keeping multiple versions of the same business functionality.
  • 9. F. BZIOU 9.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Understanding the microservice architecture “ The microservice architecture is a way to develop a single application containing a set of smaller services. These services are independent of each other and run in their own processes. ” Smaller codebase: Each service is small, and therefore, easier to develop and deploy as a unit. Ease of independent environment: With the separation of services, all developers work independently, deploy independently, and no one is bothered about any module dependency.
  • 10. F. BZIOU 10.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Understanding the microservice architecture How does the microservice architecture work?  It's programming of the modern era, where we are expected to follow all SOLID principles. It's object- oriented programming (OOP).  It is the best way is to expose the functionality to other or external components in a way so that any other programming language will be able to use the functionality without adhering to any specific user interfaces, that is, services (web services, APIs, rest services, and so on).  The whole system works as per a type of collaboration that is not interconnected or interdependent.  Every component is liable for its own responsibilities. In other words, components are responsible for only one functionality.  It segregates code with a separation concept, and segregated code is reusable.
  • 11. F. BZIOU 11.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Advantages of microservices  Cost effective to scale  Clear code boundaries  Easier code changes  Easy deployment  Technology adaptation  Distributed system
  • 12. F. BZIOU 12.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices SOA versus microservices The underlying communication system of SOA inherently suffers from the following problems: The fact that a system developed in SOA depends upon its components, which are interacting with each other. So no matter how hard you try, it is eventually going to face a bottleneck in the message queue. Another focal point of SOA is imperative monogramming. With this, we lose the path to make a unit of code reusable with respect to OOP.
  • 13. F. BZIOU 13.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices SOA versus microservices : Prerequisites of the microservice architecture  Deployment and QA  A collaboration platform for development and operations team  A monitoring framework
  • 14. F. BZIOU 14.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Understanding problems with the monolithic architecture style  Fault tolerance : Monolithic applications have high module interdependency as they are tightly coupled.  Deployment challenges : any change in the order module would require the entire application to be deployed again. “ Scalability of a system is its capability to handle an increasing/increased load of work. There are two main strategies or types of scalability in which we can scale our application.” ( Vertical scaling or scale up , Horizontal scaling or scale out )
  • 15. F. BZIOU 15.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Important microservices advantages  Technology independence : we now have the power to use different technologies for each microservice.  Interdependency removal : it is easy to add new features, fix bugs, or upgrade technology within each one. This will have no impact on other microservices.  Alignment with business goals : respond to business needs and adapt to marketing trends is not a by-product of microservices, but their goal.  Cost benefits : Each microservice becomes an investment for the business since it can easily be consumed by other microservices without having to redo the same code again and again.  Security : You can have a part of the microservice ecosystem behind firewalls and another part to user encryption. …
  • 16. F. BZIOU 16.NET AngularMicroservices .NET Core 2.0 Microservices An Introduction to Microservices Summary