-
Notifications
You must be signed in to change notification settings - Fork 1
[AIS] [UPDATE DB_VERSION] Création de la table ais_positions, stockage des positions #2658
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
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
d4c0d48 to
9b546d9
Compare
louptheron
left a comment
There was a problem hiding this 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" |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 ?
22b152a to
4e5a95a
Compare
35b180a to
4aea323
Compare
a5a6e50 to
06edefa
Compare
…o rework producer for testing.
06edefa to
a71716c
Compare
a71716c to
ffba86d
Compare
louptheron
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
3c23f1e to
9688d31
Compare
|



Related Pull Requests & Issues