SlideShare a Scribd company logo
blogs.karthikeyanvk.in
How to Convert your Monolithic to Microservices
Karthikeyan VK
https://blogs.karthikeyanvk.in
@karthik3030
blogs.karthikeyanvk.in
Enter Text
Why Microservices ?
Resilience
Scaling
Removing Rewriting barrier
Ease of Deployment
blogs.karthikeyanvk.in
Enter Text
Why Microservices ?
Organization Alignment
Composability
Technology Heterogeneity
blogs.karthikeyanvk.in
Enter Text
Organization Alignment
• Microservices allows to align our architecture our
organization, by helping us minimizing the number of
people working on one codebase
• Smaller codebases tend to be more productive.
• Support Devops
blogs.karthikeyanvk.in
Enter Text
Composability
• Removing thinking in terms of narrow channel to
more holistic concepts of customer engagement such
as web/native/mobile/tablet/Wearable device and
exposing API as service
blogs.karthikeyanvk.in
Enter Text
Technology Heterogeneity
blogs.karthikeyanvk.in
Enter Text
What are Microservices ?
Microservices are small, autonomous services that
work together.
blogs.karthikeyanvk.in
Enter Text
How Small is Small ?
• Lines of Code ?
• Who has a system that is too big and that you’d like to
break down?
blogs.karthikeyanvk.in
Enter Text
How to define being small ?
• Smaller the service, the more you maximize the
benefits and downsides of Microservices architecture.
• When you get smaller, the benefits around
interdependence increase
• When you get too smaller, the complexity emerges
from having more and more moving parts
blogs.karthikeyanvk.in
Enter Text
Corporate Culture
• Open to technology
• Think of Task Force
• Leave behind process and procedures
• Culture of Automation
• Expect failure
• Autonomous
blogs.karthikeyanvk.in
Enter Text
Microservices Management
• Defining Strategy
• Implementing new projects
• Migrating existing project
blogs.karthikeyanvk.in
Enter Text
How to start ?
blogs.karthikeyanvk.in
Enter Text
Pet Store Functionality
Authentication
Search Pet
Order Pet
blogs.karthikeyanvk.in
Enter TextWhat Makes a Good Service?
blogs.karthikeyanvk.in
Enter Text
Main Principles in Splitting Microservices
Loose Coupling
High Cohesion
blogs.karthikeyanvk.in
Enter Text
Loose Coupling
• Loosely coupled service knows as little as it needs to
about the services with which it collaborates.
blogs.karthikeyanvk.in
Enter Text
High Cohesion
• Related behaviour to sit together, and unrelated
behaviour to sit elsewhere.
• Changing behaviour in lots of places to deliver a
change, signals lack of high cohesion
blogs.karthikeyanvk.in
Enter Text
Practices
Practices should underpin our principles
Sometimes practices reflect constraints in
your organization
Coding guidelines
Integration Style – HTTP/REST
blogs.karthikeyanvk.in
Enter Text
Combining Principles & Practices
One person’s principles are another’s
practices
.NET Team practices and Java Team practises
based on principles
blogs.karthikeyanvk.in
Enter Text
What is Bounded Context?
• Specific responsibility enforced by explicit boundaries.
blogs.karthikeyanvk.in
Enter Text
What is Bounded Context?
• A Domain consists of multiple bounded contexts, and
residing within each are models that do not need to
be communicated outside as well as things that are
shared externally with other bounded contexts.
blogs.karthikeyanvk.in
Enter Text
What is Bounded Context?
• Each bounded context has an explicit interface, where
it decides what models to share with other contexts.
blogs.karthikeyanvk.in
Enter Text
Models & Shared Models
blogs.karthikeyanvk.in
Enter Text
Business Capabilities
• Don’t think in terms of data that is shared
• Think in terms of bounded context capabilities that is
provided in the rest of the domain.
• Communication in Terms of Business Concepts
blogs.karthikeyanvk.in
Enter Text
Principles Of Microservices
1. Modelled around Business
2. Culture of Automation
3. Deploy Independently
4. Consumer first
5. Isolate failure
6. Highly Observable
7. Hide Implementation
8. Decentralize all things
blogs.karthikeyanvk.in
Enter Text
Setup your Handson
http://bit.ly/M2MSetup
blogs.karthikeyanvk.in
Enter Text
Principles Of Microservices – Part 1
Modelled around Business &
Culture of Automation
blogs.karthikeyanvk.in
Enter Text
Principles Of Microservices – Part 2
Deploy Independently &
Consumer first
blogs.karthikeyanvk.in
Enter Text
Hands-on
http://bit.ly/M2MPart1
http://bit.ly/M2MPart2
http://bit.ly/M2MPart4
blogs.karthikeyanvk.in
Enter Text
Principles Of Microservices – Part 4
Hide Implementation &
Decentralize all things
blogs.karthikeyanvk.in
Enter Text
Hands-on
http://bit.ly/M2MPart5
blogs.karthikeyanvk.in
Enter Text
Principles Of Microservices – Part 3
Isolate failure &
Highly Observable
blogs.karthikeyanvk.in
Enter Text
Hands-on
http://bit.ly/M2MPart6
blogs.karthikeyanvk.in
Enter Text
Orchestration Versus Choreography
• Orchestration
blogs.karthikeyanvk.in
Enter Text
Orchestration Versus Choreography
• Choreography
blogs.karthikeyanvk.in
Enter Text
Conway's law and System Design
• Any organization that designs a system (defined more broadly
here than just information systems) will inevitably produce a
design whose structure is a copy of the organization’s
communication structure.
blogs.karthikeyanvk.in
Enter Text
Premature Decomposition
• Don’t start decomposition too quickly.
• Initial Service boundary will not be right
• CI/CD will break
• Decompose into Microservices is much easier than
trying to go to Microservices from the beginning.
blogs.karthikeyanvk.in
Enter Text
DEMO
blogs.karthikeyanvk.in
Enter Text
References
@karthik3030
• https://middlewareblog.redhat.com/2017/12/05/the-state-of-microservices-survey-2017-
eight-trends-you-need-to-know/
blogs.karthikeyanvk.in
Enter Text
@karthik3030
Thank you
/Q&A

More Related Content

PPTX
Convert monolithic .Net Applications to microservices
KEY
Assign2 hosting-service
PPTX
Monolithic to Microservices - Handson
PPTX
Culture Is More Important Than Competence In IT.pptx
PDF
Culture is more important than competence in IT outsourcing
PDF
20161220 - microservice
PDF
Microservices best practices: Integration platforms, APIs, and more
PPTX
Microservices music city code v2
Convert monolithic .Net Applications to microservices
Assign2 hosting-service
Monolithic to Microservices - Handson
Culture Is More Important Than Competence In IT.pptx
Culture is more important than competence in IT outsourcing
20161220 - microservice
Microservices best practices: Integration platforms, APIs, and more
Microservices music city code v2

Similar to Convert monolithic .Net Applications to microservices With Principles (20)

PPTX
Cloud design pattern using azure
PPT
The Role Of An Architect
PDF
Microservices Architecture for e-Commerce
PPTX
What are microservices
PPTX
Microsoft Microservices
PDF
The Reality of Managing Microservices in Your CD Pipeline
PDF
Architecting for speed: how agile innovators accelerate growth through micros...
PDF
Architecting for speed: how agile innovators accelerate growth through micros...
PPTX
Software AG’s webMethods Integration Cloud: Integrate Cloud Apps with ease
PPTX
Software Architectures, Week 3 - Microservice-based Architectures
PDF
Microservices
PPTX
Microservices Architecture
PPTX
Fun Times with Microservices
PPTX
Fun Times With Microservices
PDF
CWIN17 Utrecht / cg u services - frank van der wal
PDF
ExperiaSphere: Open-Source Management and Orchestration--Introduction
PPTX
Over view of software artitecture
PPTX
Best Practices Building Cloud Scale Apps with Microservices
PDF
From Monoliths to Services: Grafually paying your Technical Debt
PDF
How To Build A Career In Blockchain
Cloud design pattern using azure
The Role Of An Architect
Microservices Architecture for e-Commerce
What are microservices
Microsoft Microservices
The Reality of Managing Microservices in Your CD Pipeline
Architecting for speed: how agile innovators accelerate growth through micros...
Architecting for speed: how agile innovators accelerate growth through micros...
Software AG’s webMethods Integration Cloud: Integrate Cloud Apps with ease
Software Architectures, Week 3 - Microservice-based Architectures
Microservices
Microservices Architecture
Fun Times with Microservices
Fun Times With Microservices
CWIN17 Utrecht / cg u services - frank van der wal
ExperiaSphere: Open-Source Management and Orchestration--Introduction
Over view of software artitecture
Best Practices Building Cloud Scale Apps with Microservices
From Monoliths to Services: Grafually paying your Technical Debt
How To Build A Career In Blockchain
Ad

More from Karthikeyan VK (20)

PPTX
GCD ChatGPT.pptx
PPTX
DataScience-101
PPTX
How to become a Software Architect.pptx
PPTX
Blockchain workshop 101
PPTX
Event Streaming Architecture - Deep Dive
PPTX
Anti patterns
PPTX
Tips & Tricks to build software architecture document
PPTX
How to double your productivity as a developer
PPTX
How to be an expert in Debugging .Net Applications
PPTX
Cloud Design Patterns
PPTX
Pillars of great Azure Architecture
PPTX
Chat bot LUIS
PPTX
Enterprise security kubernetes
PPTX
Save Azure Cost
PPTX
Learning graphql .Net
PPTX
Azure devspaces
PPTX
Azure Event Grid
PPTX
Machine Learning Basics using Azure ML
PPTX
Cognitive Intelligence using azure search
PPTX
Azure container instances
GCD ChatGPT.pptx
DataScience-101
How to become a Software Architect.pptx
Blockchain workshop 101
Event Streaming Architecture - Deep Dive
Anti patterns
Tips & Tricks to build software architecture document
How to double your productivity as a developer
How to be an expert in Debugging .Net Applications
Cloud Design Patterns
Pillars of great Azure Architecture
Chat bot LUIS
Enterprise security kubernetes
Save Azure Cost
Learning graphql .Net
Azure devspaces
Azure Event Grid
Machine Learning Basics using Azure ML
Cognitive Intelligence using azure search
Azure container instances
Ad

Recently uploaded (20)

PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Introduction to Artificial Intelligence
PPTX
assetexplorer- product-overview - presentation
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPT
Introduction Database Management System for Course Database
PPTX
Computer Software and OS of computer science of grade 11.pptx
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
Transform Your Business with a Software ERP System
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
System and Network Administration Chapter 2
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Introduction to Artificial Intelligence
assetexplorer- product-overview - presentation
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Introduction Database Management System for Course Database
Computer Software and OS of computer science of grade 11.pptx
Reimagine Home Health with the Power of Agentic AI​
Transform Your Business with a Software ERP System
How to Migrate SBCGlobal Email to Yahoo Easily
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Upgrade and Innovation Strategies for SAP ERP Customers
System and Network Administration Chapter 2
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
VVF-Customer-Presentation2025-Ver1.9.pptx
Odoo Companies in India – Driving Business Transformation.pdf
wealthsignaloriginal-com-DS-text-... (1).pdf
PTS Company Brochure 2025 (1).pdf.......

Convert monolithic .Net Applications to microservices With Principles

Editor's Notes

  • #3: Resilience – One part of the service fails and whole application fails, so running application in spite of failures Scaling – One part of application needs more resources and scalling is easy when Microservices Removing Rewriting Barrier – Technology can be changed easily if it is small for specific needs
  • #4: Composability - a system design principle that deals with the inter-relationships of components. essential features - self-contained,Stateless
  • #6: Composability - a system design principle that deals with the inter-relationships of components. essential features - self-contained, Stateless
  • #8: Gather together those things that change for the same reason, and separate those things that change for different reasons
  • #9: Gather together those things that change for the same reason, and separate those things that change for different reasons
  • #11: learn new runtimes, technologies, or frameworks In Search of Excellence - Tom Peters and Robert H. Waterman, Jr.. Published in 1982
  • #14: Composability - a system design principle that deals with the inter-relationships of components. essential features - self-contained,Stateless
  • #16: A loosely coupled service knows as little as it needs to about the services with which it collaborates. This also means we probably want to limit the number of different types of calls from one service to another, because beyond the potential performance problem, chatty communication can lead to tight coupling. We want related behavior to sit together, and unrelated behavior to sit elsewhere. System design is all about trade-offs
  • #20: A loosely coupled service knows as little as it needs to about the services with which it collaborates. This also means we probably want to limit the number of different types of calls from one service to another, because beyond the potential performance problem, chatty communication can lead to tight coupling. We want related behavior to sit together, and unrelated behavior to sit elsewhere. System design is all about trade-offs,
  • #22: Warehouse, finance, sales, front desk
  • #25: These capabilities may require the interchange of information — shared models — but I have seen too often that thinking about data leads to anemic, CRUD-based (create, read, update, delete) services. So ask first “What does this context do?”, and then “So what data does it need to do that?” When modeled as services, these capabilities become the key operations that will be exposed over the wire to other collaborators. Communication in Terms of Business Concepts - It’s also important to think of the communication between these microservices in terms of the same business concepts.
  • #27: Consumer first – expose API
  • #29: Consumer first – expose API , API Standards, Swagger, Service discovery, zookeeper, Humane registry
  • #30: Consumer first – expose API , API Standards, Swagger
  • #35: The downside to this orchestration approach is that the customer service can become too much of a central governing authority. It can become the hub in the middle of a web, and a central point where logic starts to live. I have seen this approach result in a small number of smart “god” services telling anemic CRUD-based services what to do.
  • #36: Services should be dumb With a choreographed approach, we could instead just have the customer service emit an event in an asynchronous manner
  • #37: Organizational issues to consider as well Explain moore’s law two-pizza teams owning the whole lifecycle of their services Explain how about three tier architecture and Microservices fits here wrt to teams