Entain India interview question

how to solve double posting problem

Interview Answers

Anonymous

1 June 2018

Double posting can be solved by creating UUID/GUID hidden input in form using server side scripting language that renders the form. On form submission immediately add this to a database table called uniqueSubmission. Every subsquent request will be rejected with the same UUID/GUID if found in the database.

1

Anonymous

1 June 2018

but this process increases the load on server the easy process will be generating a token id at client side and checking the session if the token matches or not