Skip to content

Conversation

@maximeperraultdev
Copy link
Collaborator

Related Pull Requests & Issues

@tristanrobert
Copy link
Contributor

tristanrobert commented Dec 9, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@maximeperraultdev maximeperraultdev changed the base branch from main to maxime/tech/setup_kafka_SSL December 9, 2025 14:29
@maximeperraultdev maximeperraultdev changed the title [AIS] Création de la table ais_positions, stockage depuis le listener [AIS] Création de la table ais_positions, stockage des positions Dec 9, 2025
@maximeperraultdev maximeperraultdev force-pushed the maxime/feat/2611/setup_AIS_storage branch 9 times, most recently from d4c0d48 to 9b546d9 Compare December 16, 2025 11:17
Copy link
Collaborator

@louptheron louptheron left a comment

Choose a reason for hiding this comment

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

Quelques commentaires


val messages = mutableListOf<String>()
companion object {
const val TOPIC = "monitorenv.ais.position"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Peut-être plus pratique d'avoir une variable d'env ?

ais:
enabled: ${MONITORENV_KAFKA_AIS_ENABLED}
producer:
enabled: ${MONITORENV_KAFKA_AIS_PRODUCER_ENABLED}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Autant mettre une valeur par défaut à false comme ça ne sera pas utilisé en prod ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Normalement la valeur de prod est dans le fichier .env. J'ai ajouté un :false comme ça on est tranquille ^^

@KafkaListener(topics = [TOPIC])
fun listenAIS(payload: AISPayload) {
try {
jpaAISPositionRepository.save(payload)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Utilise un BlockingQueue pour éviter d'avoir une trnsaction SQL à chaque réception de message ? Commencer par un batch de 100 par exemple ?

@maximeperraultdev maximeperraultdev force-pushed the maxime/feat/2611/setup_AIS_storage branch from 22b152a to 4e5a95a Compare January 7, 2026 15:32
@maximeperraultdev maximeperraultdev changed the title [AIS] Création de la table ais_positions, stockage des positions [AIS] [UPDATE DB_VERSION] Création de la table ais_positions, stockage des positions Jan 9, 2026
@maximeperraultdev maximeperraultdev force-pushed the maxime/feat/2611/setup_AIS_storage branch from 35b180a to 4aea323 Compare January 9, 2026 08:40
@maximeperraultdev maximeperraultdev changed the base branch from maxime/tech/setup_kafka_SSL to main January 9, 2026 08:41
@maximeperraultdev maximeperraultdev force-pushed the maxime/feat/2611/setup_AIS_storage branch 3 times, most recently from a5a6e50 to 06edefa Compare January 12, 2026 12:43
@maximeperraultdev maximeperraultdev force-pushed the maxime/feat/2611/setup_AIS_storage branch from 06edefa to a71716c Compare January 12, 2026 12:57
@maximeperraultdev maximeperraultdev force-pushed the maxime/feat/2611/setup_AIS_storage branch from a71716c to ffba86d Compare January 12, 2026 13:06
Copy link
Collaborator

@louptheron louptheron left a comment

Choose a reason for hiding this comment

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

LGTM!

@maximeperraultdev maximeperraultdev force-pushed the maxime/feat/2611/setup_AIS_storage branch from 3c23f1e to 9688d31 Compare January 13, 2026 16:57
@sonarqubecloud
Copy link

@maximeperraultdev maximeperraultdev merged commit 52ef47b into main Jan 14, 2026
29 checks passed
@maximeperraultdev maximeperraultdev deleted the maxime/feat/2611/setup_AIS_storage branch January 14, 2026 08:19
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.

Récupération/stockage de la donnée

4 participants