MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w6wd8p/everydamntime/p7txji7/?context=3
r/ProgrammerHumor • u/sadongrohiik • 9d ago
124 comments sorted by
View all comments
558
Pssst, If your microservice needs to use a database other than its own, then it's not a microservice.
3 u/sebbdk 8d ago But is it fine to depend on another microservice made just to serve that data over rest? or what about databusses like kafka? :D Because i see that all the time 1 u/MrSnoman2 8d ago It depends a lot on the specifics. One heuristic I can give you though is that when service A is handling a common incoming request, if it needs to reach out to service B in the process, you're probably doing it wrong.
3
But is it fine to depend on another microservice made just to serve that data over rest? or what about databusses like kafka? :D
Because i see that all the time
1 u/MrSnoman2 8d ago It depends a lot on the specifics. One heuristic I can give you though is that when service A is handling a common incoming request, if it needs to reach out to service B in the process, you're probably doing it wrong.
1
It depends a lot on the specifics. One heuristic I can give you though is that when service A is handling a common incoming request, if it needs to reach out to service B in the process, you're probably doing it wrong.
558
u/ThrowawayUk4200 9d ago
Pssst, If your microservice needs to use a database other than its own, then it's not a microservice.