For the seeder script in our Docker setup I have it create some entities automatically. One thing I've recently looked into is making some API requests in parallel. When doing this for the like/vote requests on a post, I noticed that the post score doesn't end up matching reality.
For example, I create 20 different +1 votes(from different users) on a single post. I do this by sending 20 API requests towards POST /api/v3/post/like at the same time.
I can then retrieve all 20 vote entities using the GET /api/v3/post/like/list route. But when I retrieve the post itself, either via GET /api/v3/post or GET /api/v3/post/list, its score will be less than 20. Usually in the range of 7-10.
I only see this issue when sending multiple requests all at once. It works fine if I make each vote request sequentially.
For the seeder script in our Docker setup I have it create some entities automatically. One thing I've recently looked into is making some API requests in parallel. When doing this for the like/vote requests on a post, I noticed that the post score doesn't end up matching reality.
For example, I create 20 different +1 votes(from different users) on a single post. I do this by sending 20 API requests towards
POST /api/v3/post/like
at the same time.I can then retrieve all 20 vote entities using the
GET /api/v3/post/like/list
route. But when I retrieve the post itself, either viaGET /api/v3/post
orGET /api/v3/post/list
, its score will be less than 20. Usually in the range of 7-10.I only see this issue when sending multiple requests all at once. It works fine if I make each vote request sequentially.