Question d’entretien chez Deel

How would you handle concurrency in a back-end API?

Réponses aux questions d'entretien

Utilisateur anonyme

24 avr. 2024

Using either Optimistic or Pessimistic Locks in a Relational Database

Utilisateur anonyme

1 août 2024

The take home test uses SQLite which has table level locking on reads and writes so no further locking is needed. But for a production-ready database like PostgreSQL or MSSQL, you'll utilize an exclusive lock on the database rows you are interacting with, especially in regards to financial data.