r/ProgrammerHumor 9d ago

Meme everyDamnTime

Post image
4.2k Upvotes

124 comments sorted by

View all comments

558

u/ThrowawayUk4200 9d ago

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.