I am implementing quora like application in which I have Post(question, answers, comments, likes/dislikes) as one microservice and User details as another microservice. I need user details in the post microservice. I need to relate user details with questions, answers, comments and also likes and dislikes? How can I do this? If I do feign client to get user details then where should I store those details? Entities in post microservice need to have a userId as an attribute.
I am using spring boot and sql database.