The main function of the LikeCount service is fetch the number of likes on an item.
Although noSQL database is used but a proper Schema is maintained.
Shares this collection with LikeBatchUpdaterService. Although it violates the microservices design pattern, but it works because one service can only read and the other can only write.
Shares this collection with LikeBatchUpdaterService. Although it violates the microservices design pattern, but it works because one service can only read and the other can only write.
Fetches the number of like on an item (a post or comment) with id itemId (postId or commentId).
GET /api/likeCount/:itemId
The total likes on an item are calculated by summing the values of RTLikeCount and DailyLikeCount.