I am dealing with a new problem due to some new challenges that I prostrate ...
I have developed a registration system and obviously in the future it may come to have more than 100 registrations per day or even per hour or second. Thinking about it, I did a test on different pcs and did the registration at the same time using the two pcs, what happened was, the pc1 requisition stored but the pc2 not requisition.
I would like help with how I can queue and then process the requests, if they are more than 1 at a time ...
I use jQuery to send the PHP form and DB is mysql.
In PHP code, is the normal code to insert data into a DB with PDO
JS Code
$.post("https://servidor/pasta/codigo.php", {
nome: $nome,
idade: $idade
}, function(dado){
$("#msg").html("Inserido com sucesso");
})
Hugs and thanks in advance