I am counting posts and many other things on my website with counter column, I have a lot of traffic for example 10k+ comments per hour.
So what i want to achieve is once post is made and counter has been increased I would like to retrieve the exact value, but since there is high probability that two users going to requests that value at the same time i will get duplicates and that's bad.
Is there any way to retrieve exact value after increasing counter?