Currently there is a users microservice in my project, which handles all the authentication logic and stores user data (email, name, bio etc.)
One of my application's features will be posts. I want posts to be contained in a separate microservice, which will use a separate database, storing just the user ID. However, that would require doing two HTTP calls:
- One to get new posts
- Another one to get user details for each post author
It is big overhead, when just updating the feed. Maybe it is worth to combine the microservices, or to use one database for both posts and users?