Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TECH - Ajout de cache sur les appels LBB #2975

Merged
merged 4 commits into from
Feb 12, 2025
Merged

TECH - Ajout de cache sur les appels LBB #2975

merged 4 commits into from
Feb 12, 2025

Conversation

celineung
Copy link
Contributor

@celineung celineung commented Feb 11, 2025

Description

Nous avons des erreurs 429 sur nos appels à LBB (trop de requêtes).
Pour éviter cela, nous mettons en place le cache sur ces appels.

Screenshot 2025-02-12 at 10 46 53

@celineung celineung self-assigned this Feb 11, 2025
@celineung celineung force-pushed the tech-add-cach-lbb branch 2 times, most recently from d6d8e37 to 0da64eb Compare February 11, 2025 16:57
@celineung celineung changed the title wip TECH - Ajout de cache sur les appels LBB TECH - Ajout de cache sur les appels LBB Feb 11, 2025
@celineung celineung marked this pull request as ready for review February 11, 2025 17:03
Copy link

Comment on lines 173 to 181
.catch((error) => {
logger.error({
error: castError(error),
message: "fetchCompanyBySiret_error",
siret,
},
romeLabel: romeDto.romeLabel,
});
throw error;
}),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je pense qu'on peut virer ce log (et tout le bloc de catch), maintenant qu'on a ceux de shared-routes

@celineung celineung merged commit e95ca0e into main Feb 12, 2025
11 of 12 checks passed
@celineung celineung deleted the tech-add-cach-lbb branch February 12, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants