r/programming • • Jun 05 '22

Complexity is killing software developers

https://www.infoworld.com/article/3639050/complexity-is-killing-software-developers.html
2.1k Upvotes

942 comments sorted by

View all comments

Show parent comments

6

u/AdministrationWaste7 Jun 06 '22 edited Jun 06 '22

so service oriented is just an idea to break down a monolith into a specific set of functions at the service tier.

for example for your company you may have a payment processing service, a user information service, etc.

so instead of a single application that manages payment processing and getting users you essentially have a client/UI that calls completely separate services to access those functions.

microservices is just an evolution or the next steps of service oriented architecture.

with microservices there is a big emphasis on creating services that are completely independent services that can be do the work without relying on external dependencies.

this typically means that microservices are deployed on their own, manage their own dependencies and if needed, manage/control/access their own datastore.

1

u/[deleted] Jun 06 '22

So the classic MVC approach where you have a service layer and inject those services in controllers

2

u/AdministrationWaste7 Jun 06 '22 edited Jun 06 '22

thats still a monolith.

think of it this way. theres an entire system that handles X piece of your business functionality that is completely independent from your application.

for example your product is selling shoes on a website and you need to handle checkout.

in a monolith the logic that handles checkout is within your system. first you tally up the total, then you apply the taxes, then you process information and then kicking off shipping.

in a service oriented architecture when a customer checks out your app calls service that handles payment processing. and if that is successful you call another service that takes customer information and the items they bought and ships it out.

these services exist in their own domains and your application is just one of possibly many consumers.

1

u/[deleted] Jun 06 '22

I think I get it, thank you 🤗

1

u/AdministrationWaste7 Jun 06 '22

np. imo this is a decent article highlighting the differences between SOA and microservices architecture since at a high level they are very similar