[TECH] Limite les appels concurrentiels au endpoint de calcul de prochaine épreuve en certification via un mutex Redis (pix-22855)#16103
Merged
Conversation
|
Choisir les applications à déployer :
Important N'oubliez pas de déployer l'API pour pouvoir accéder aux fronts et/ou à l’API MaDDo. |
fael-b
approved these changes
May 5, 2026
1a17475 to
4a120a1
Compare
8828fcb to
df559b5
Compare
75675be to
7a5a7e5
Compare
0e4df15 to
495ed5c
Compare
de5840c to
202f277
Compare
yaf
approved these changes
May 22, 2026
202f277 to
645d214
Compare
645d214 to
fb9e86a
Compare
fb9e86a to
e8d0e50
Compare
pix-service
pushed a commit
that referenced
this pull request
May 25, 2026
# [5.413.0](v5.412.0...v5.413.0) (2026-05-25) ### 🚀 Amélioration - [#16280](#16280) Ajouter la colonne description à la table trainings (PIX-22852) - [#16277](#16277) Contextualiser les informations de certificats provenant du back (PIX-22375). - [#16290](#16290) dernieres modifs virus nov - [#16286](#16286) FRI modifs module phishing ind avant panel - [#16289](#16289) Module Phishing_NOV modif sur une consigne - [#16276](#16276) Visualiser le détail d'une certification d'un candidat (PIX-22536). ### 🏗️ Tech - [#16285](#16285) 📦 Force la mise à jour de Braces en version 3.0.3 minimum - [#16282](#16282) Corriger les bugs d'affichage des dates sur PixAdmin (PIX-22828)#16269 - [#16103](#16103) Limite les appels concurrentiels au endpoint de calcul de prochaine épreuve en certification via un mutex Redis (pix-22855) ### ☕ Autre
Contributor
|
🎉 This PR is included in version 5.413.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💥 Problème
Aujourd'hui, pour éviter plusieurs créations d'épreuves pour un même stade d'examen (race condition), on met un lock sur la ligne de la table
assessmentsconcernés via unSELECT FOR UPDATE.Plusieurs problèmes :
SELECT FOR UPDATEsur la même ligne sont mis en attente. En cas de fort trafic, et si tout dégénère, cela aggrave les problèmes car on agrandit la file d'attente.👩🚀 Proposition
Pour le projet ChatPix a été implémenté un mutex via Redis. On utilise ce mutex.
Côté front, mise en place d'un retry (répétition à définir)
👁️ Remarques
♻️ Pour tester