Professional Documents
Culture Documents
ARCHITECTURE
Integrasi Proses Bisnis dengan Microservice
• Avoid some of the biggest pitfalls that have plagued other attempts at
SOA!
So, with that in mind, we should look at some different ways in which we might want to work with
customers in our MusicCorp system.
• Having lots of lines of code that do the same thing makes your codebase
larger than needed, and therefore harder to reason about.
• DRY is what leads us to create code that can be reused.
• Perhaps we go as far as making a shared library that we can use
everywhere!
• This approach, however, can be deceptively dangerous in a microservice
architecture.
• Sometimes, however, the use of shared code can create coupling system.
• Rule of thumb: don’t violate DRY within a microservice but be relaxed
about violating DRY across all services.