4 ms·
If it takes 100k LOC to manage your user logins, I doubt you can really put it behind a "simple" API. You're still going to have intricate details that everyone
by awj 10y ago
If it takes 100k LOC to manage your user logins, I doubt you can really put it behind a "simple" API. You're still going to have intricate details that everyone needs to know, but now you're adding all of the issues of networked communication and (often) allowing teams to use different languages/stacks/etc which prohibit inspection to understand the system they're calling.
- mabbo 10y agoSo break that logic up into smaller services yet, again splitting up the domain into smaller pieces. No one said a microservice can't call another microservice! Logins are a bad example because it really shouldn't take 100k lines to handle it, but replace 'logins' with any business domain logic that you need. And honestly, the biggest challenge often is building the simplest API possible without limiting your clients.