SlideShare a Scribd company logo
SOA DOING RIGHT
Microservices
the trendy BUZZword
WTC
• ONE electricity supply
• ONE water supply
• ONE elevator
Monolithic Architecture
• Single SW application with ALL functionalities implemented/deployed
• Each floor a dedicate service (HR, Marketing ++)
• Monolithic SOA
• Coarse-grained (depend on others. Eg. Shipping service waiting
for approval from Admin service)
• Wider scope (manages many business cases)
• Complex message formats
Monolithic Architecture : Layered Architecture
Monolithic Architecture
Shipping : API  Logic 
Dao
98 Acres
• OWN refrigerator
• OWN water supply
• OWN power generator
• Tiny bit services are
bundled
CAN function
INDEPENDANTLY
Microservices Architecture
Online retail store :
ebay
Microservices
• Microservice
• Develop single application
• Fine-grained manner
• Independent of other services
• Deploy independently
• Misconceptions
• Line of Codes
• “Micro” (how small it is :O)
• Team Size
Design Consideration
• Single Responsibility Principle(SRP) : limited and focused business
scope. (IMPORTANT : righted sized services)
• Service boundaries + business capabilities
• Microservices = few Operations/Functionalities, simple Message
Formats
• Evolving process – Micro service might decomposed into future.
Messaging in Microservices
• Monolithic Architecture
• Function calls/ Language level methods
• SOA : SOAP, WS* with HTTP, JMS ++
• ESB
• Micro Services
• Simple
• Light weight
• ESB Killer
Messaging in Microservices
• Synchronous Messaging
• Client waits for response from service
• REST, Thrift
• Async Messaging
• NO or least expect a response
• Light weight
• AMQP, MQTT, STOMP
Integrating Microservices
• ESB Killer
• Monolithic SOA – client connections are forward to different APIs
• Microservices do not use ESB (different wiring mechanism)
• Microservices
• Smart Endpoints – Moves business logic to services and clients
• Dumb pipes – To connect services
Integrating Microservices
• Point to Point – Invoke service directly
Integrating Microservices
• API Gate-Way style
Integrating Microservices
• Message Broker style
Micro service can publish it’s service, as well as subscribe to services
of others
Deployment & Orchestration
• Each MS – deploy as separate
Docker(to deploy services) image
• Scaling - # of containers
• Early days – minor change in
one, deploy total
• Kubernetes - #Google (Stratos)
• Orchestration
Security & Governance
Pulse Security
• Salesforce Authorization
• Federated authorization
• OAuth
• Pulse Agent
• Which POS Device
Microservices Security
• Central user repository store
• OAuth 2.0
• Authorization
• Token Sharing
• OpenId Connect
• Authentication
• OAuth + ID token (user info)
Daham
Asynchronous Processing
in
Asynchronous Language
Is Node.js Really Single
Threaded?
Is Node Actually Single Threaded?
Possible Task Strategies
• Possible Task Strategies
• Foreground (In-line)
• Parallel
• Local Messages (Forking)
• Queues
Foreground (in-line)
caterRequest (req, res, next) {
doTask(function(err, data) {
if (err) {
return res.send(‘fail');
} else {
return res.send(’success');
}
});
}
Foreground (in-line)
• Good side
• Gives chance to other requests.
• Bad Side
• Using server resources to other tasks (e.g. email sending, AWS
calls)
• Timeout to client for partially success.
Parallel
caterRequest(req, res, next) {
doTask(function(err, data) {
});
return res.send(’success');
}
Just ignore the callback
Parallel
• Good side
• Very fast.
• No extra codes needed for thread life cycle manipulation.
• Bad Side
• 0 callbacks 0 data. No idea about what happened.
Local Messages (Forking)
Local Messages (Forking)
• Good side
• Web server process is completely independent of task process.(i.e.
email sender , AWS caller)
• Error handling, throttling and retrying can be achieved.
• Bad Side
• Only suitable for single host environment.
Queues
Queues
Advantages of Queues
• Decoupling work producers and work consumers
• Making retry logic easier to implement
• Distributing work load throughout time
• Distributing work load throughout space (nodes)
• Making asynchronous work
• Making external systems easier to integrate

More Related Content

PPTX
Visual Studio LightSwitch
PDF
JavaCro'15 - Secure Web Services Development - Askar Akhmerov
PDF
Introducing the WSO2 Elastic Load Balancer
PPTX
Windows Azure
PDF
Microservices - opportunities, dilemmas and problems
PDF
Mobile Offline First
PDF
Microservices Using Docker Containers for Magento 2
PDF
Microservices architecture
Visual Studio LightSwitch
JavaCro'15 - Secure Web Services Development - Askar Akhmerov
Introducing the WSO2 Elastic Load Balancer
Windows Azure
Microservices - opportunities, dilemmas and problems
Mobile Offline First
Microservices Using Docker Containers for Magento 2
Microservices architecture

What's hot (20)

PPTX
Un problème 10 solutions : Azure Fighter
PPTX
Identity in Openstack Icehouse
PPTX
Micro-services architecture
PPTX
presentation of VDI in a box
PDF
Microservices Architecture
PDF
Microservices architecture
PDF
WSO2Con USA 2017: Scalable Real-time Complex Event Processing at Uber
PPTX
Cooking Akka.net and Azure Service Fabric together
PPTX
Market Trends in Microsoft Azure
PDF
Service-oriented architecture
PDF
Monitoring docker: from zero to Azure
PDF
Evaluating Streaming Data Solutions
PPTX
Microservices Architecture
PDF
ESB integration for node.js
PPTX
Hybrid Solution Integration
PDF
Buiding and Deploying SaaS with WSO2 as as-a-Service
PPTX
Azure Cloud Services
PDF
To Kill a Monolith: Slaying the Demons of a Monolith with Node.js Microservic...
PPTX
Grails in the Cloud (2013)
PDF
SharePoint on Imaginary Hardware - IndyTechFest 2010
Un problème 10 solutions : Azure Fighter
Identity in Openstack Icehouse
Micro-services architecture
presentation of VDI in a box
Microservices Architecture
Microservices architecture
WSO2Con USA 2017: Scalable Real-time Complex Event Processing at Uber
Cooking Akka.net and Azure Service Fabric together
Market Trends in Microsoft Azure
Service-oriented architecture
Monitoring docker: from zero to Azure
Evaluating Streaming Data Solutions
Microservices Architecture
ESB integration for node.js
Hybrid Solution Integration
Buiding and Deploying SaaS with WSO2 as as-a-Service
Azure Cloud Services
To Kill a Monolith: Slaying the Demons of a Monolith with Node.js Microservic...
Grails in the Cloud (2013)
SharePoint on Imaginary Hardware - IndyTechFest 2010
Ad

Viewers also liked (7)

PPTX
Unleash the Technopreneur in You
PDF
Technopreneurship - Idea Generation
PPTX
Wisdom from 26 of the World's Greatest Technopreneurs and Business Leaders
PPTX
Technopreneurship
PPTX
Technopreneurship for everyone
PDF
Introduction to Technopreneurship
PDF
Technopreneurship: What it is and What its not
Unleash the Technopreneur in You
Technopreneurship - Idea Generation
Wisdom from 26 of the World's Greatest Technopreneurs and Business Leaders
Technopreneurship
Technopreneurship for everyone
Introduction to Technopreneurship
Technopreneurship: What it is and What its not
Ad

Similar to SOA Doing Right (20)

PPTX
Microservices-101
PPTX
Microservice vs. Monolithic Architecture
PDF
170215 msa intro
PPTX
Microservices.pptx
PDF
Microservices in Practice
PPTX
Microservice intro
PPTX
Service Mesh CTO Forum (Draft 3)
PDF
Microservice Architecture
PPTX
Microservices session 1
PDF
Microservice architecture
PDF
Microservices for java architects it-symposium-2015-09-15
PDF
Microservice Architecture
PDF
Microservices for Mortals by Bert Ertman at Codemotion Dubai
PPTX
Service Architectures at Scale
PDF
Understanding Microservices
PPTX
The Overview of Microservices Architecture
PDF
Microservices for Mortals
PDF
20141210 - Microservice Container
PDF
Building Microservices Software practics
PPTX
Concurrency at Scale: Evolution to Micro-Services
Microservices-101
Microservice vs. Monolithic Architecture
170215 msa intro
Microservices.pptx
Microservices in Practice
Microservice intro
Service Mesh CTO Forum (Draft 3)
Microservice Architecture
Microservices session 1
Microservice architecture
Microservices for java architects it-symposium-2015-09-15
Microservice Architecture
Microservices for Mortals by Bert Ertman at Codemotion Dubai
Service Architectures at Scale
Understanding Microservices
The Overview of Microservices Architecture
Microservices for Mortals
20141210 - Microservice Container
Building Microservices Software practics
Concurrency at Scale: Evolution to Micro-Services

More from Schezarnie Racip (8)

PPTX
Going Serverless
PPTX
Keep Payments Running
PPTX
UI Principles Behind Design Thinking
PPTX
Scaling Agile
PPT
What is Toastmasters?
PPTX
Search Engine Optimization(SEO)
PPTX
VR Development with JavaScript
PDF
Mobile Application Development: The JavaScript Way
Going Serverless
Keep Payments Running
UI Principles Behind Design Thinking
Scaling Agile
What is Toastmasters?
Search Engine Optimization(SEO)
VR Development with JavaScript
Mobile Application Development: The JavaScript Way

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
sap open course for s4hana steps from ECC to s4
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
KodekX | Application Modernization Development
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
sap open course for s4hana steps from ECC to s4
NewMind AI Weekly Chronicles - August'25 Week I
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
cuic standard and advanced reporting.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Network Security Unit 5.pdf for BCA BBA.
KodekX | Application Modernization Development
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Unlocking AI with Model Context Protocol (MCP)
Programs and apps: productivity, graphics, security and other tools
Spectral efficient network and resource selection model in 5G networks
Advanced methodologies resolving dimensionality complications for autism neur...
Understanding_Digital_Forensics_Presentation.pptx
Review of recent advances in non-invasive hemoglobin estimation
The AUB Centre for AI in Media Proposal.docx
Mobile App Security Testing_ A Comprehensive Guide.pdf

SOA Doing Right

Editor's Notes

  • #2: Is it really necessary to say company presentation here?
  • #5: OFFICE PICS.
  • #6: Layer fails, all the other services are also failing.
  • #7: When a default occurs, it affects only the corresponding cottage
  • #8: Let’s take a real world example of Microservices can be applied
  • #9: OFFICE PICS.
  • #10: SRP : only about one single tiny business logic. -> doesn’t mean small (always) That’s why I emphasized it’s a bit vague misleading term.
  • #11: Frist, let’s give a little though on how : traditional SOA, or the Monolithic Architecture perorms messaging.
  • #12: In comparison to synchronous messaging, where client waits for service response, in Async messaging, client doesn’t wait for response,
  • #13: Duty of the ESB to perform the wiring mechanism of services For a huge system to work, our famouse example Ebay to work, Each deployed micro service need to interact with outher micro services. ======================== You might think that, this is very cumbersome simply by looking at this, It’s not so. Microservices offers diversified approaches in integrating independent microservices
  • #14: What is the big fat question , When a client tries to invoke a service, directly, there can be vagues ways of invoking the service between them. So it is not encourage follow this approach eventhough, this is an integration pattern, So what would be the solution
  • #15: Here, the clint directly connects with the api gateway and API gateway manages the process of matching corresponding microservices to clients’s request
  • #16: Each micro service can publish it’s service, as well as subscribe to services of others 
  • #17: Each micro services can deploy as separate docker image
  • #18: Governance and security are two major aspects in services. In monolithic approach , we have to establish security and governance considering entire system., which is a complex dea Also chances are high for loop holes.
  • #19: OFFICE PICS.
  • #20: OFFICE PICS.