I am using socket.io
server and multiple clients are making requests to this server. Server checks a MySQL
innoDB
table for data and if there is some data it updates its bit/column in table and send data to requested client.
But the problem is my multiple clients are occasionally getting same data.
Reason I feel is, 2 clients make requests to server exactly same point in time and both get same MySQL
table row record before it was updated by other client.