Who Am I? I'm this guy
https://creativecommons.org/licenses/by-sa/4.0/
Why migrate your application to microservices?
https://redrat.com.br
Slide 3
Slide 3 text
Before all, what is monolith?
•
Business logic, libraries, assets, database access, all inside
one service or process
Why migrate your application to microservices?
Slide 4
Slide 4 text
What is microservices anyway?
•
Strategy of software architecture
•
Application as suite of services
•
High cohesion, low coupling, autonomous and independent
•
Simple and agnostic communication, HTTP, AMPQ
Why migrate your application to microservices?
Slide 5
Slide 5 text
Let's compare
Why migrate your application to microservices?
Slide 6
Slide 6 text
Let's compare
Why migrate your application to microservices?
Slide 7
Slide 7 text
And monolith, will die?
Why migrate your application to microservices?
Slide 8
Slide 8 text
Where it can have advantages?
•
Easily to understand and develop in small contexts
•
Vertical and/or horizontal scalability
•
Easily to deploy
•
Technology diversity
•
Easily to do tests
Why migrate your application to microservices?
Slide 9
Slide 9 text
Why migrate your application to microservices?
Source: https://www.thoughtworks.com/pt/insights/blog/microservices-nutshell
One monolithic application
have all your functionalities
in one unique process...
...and scales replicating the
monolithic in multiple servers
The microservices
architecture put every
element of functionality in a
separated service...
...and scales distributing the services
between servers, replicating by demand
Slide 10
Slide 10 text
And the disadvantages?
•
Complexity in implementation and operation of distributed
systems
•
Difficulty to monitoring
•
Premature optimization
•
Resistance to DevOps culture
•
Is a enemy of MVP
Why migrate your application to microservices?
Slide 11
Slide 11 text
Practical example
Why migrate your application to microservices?
Slide 12
Slide 12 text
Why migrate your application to microservices?
My , all running normally
Accounts
Collection
Invoices
Notifications
Streaming
Slide 13
Slide 13 text
Why migrate your application to microservices?
Then, promotion? So much people registering? We need to scale accounts!
Accounts
Collection
Invoices
Notifications
Streaming
Accounts
Accounts
Accounts
Accounts
Slide 14
Slide 14 text
Why migrate your application to microservices?
Ah, the promotion over? Sure, let’s return accounts to initial state
Accounts
Collection
Invoices
Notifications
Streaming
Slide 15
Slide 15 text
Why migrate your application to microservices?
We need to inform our clients about new videos, let's scale Notifications!
Accounts
Collection
Invoices
Notifications
Streaming
Notifications
Notifications
Notifications Notifications
Slide 16
Slide 16 text
Why migrate your application to microservices?
All people notified, all was right!
Accounts
Collection
Invoices
Notifications
Streaming
Slide 17
Slide 17 text
Why migrate your application to microservices?
Wow! Our invoices isn't working, our staff going to solve, but our clients can watch normally
Accounts
Collection
Invoices
Notifications
Streaming
Slide 18
Slide 18 text
Why migrate your application to microservices?
Yes! Solved, this give so much work :)
Accounts
Collection
Invoices
Notifications
Streaming
Slide 19
Slide 19 text
Questions?
Why migrate your application to microservices?
Slide 20
Slide 20 text
This and other talks
Why migrate your application to microservices?
https://bit.ly/joubertredrat-palestras
Slide 21
Slide 21 text
Thank you
Why migrate your application to microservices?