Microservices Pros: Code reusability?
Please ELI5 how I get better code reuseability in microservices than in my monolith with separated concerns into libraries and helper modules.
Please ELI5 how I get better code reuseability in microservices than in my monolith with separated concerns into libraries and helper modules.
If you have an authenticate() function in an auth helper library, you can move that around to new web apps to help users authenticate with different parts of your site(s).
Your authenticate() function for a microservice is probably going to be part of a broader "microservice api library" that gets reused, but I can't imagine reusing the microservice code itself - you're supposed to just spin up a new one.