CKAD Exercise 8 adapter pattern formatting logs using side car

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • Minikube Setup : • Practical #kubernetes ...
    github repo : github.com/chi...
    👉 The business application running the main container produces timestamped information-in this case, the available disk space-and writes it to the file diskspace.txt.
    👉 As part of the architecture, we want to consume the file from a third-party monitoring application. The problem is that the external application requires the information to exclude the timestamp.
    👉 Now, we could change the logging format to avoid writing the timestamp, but what do we do if we actually want to know when the log entry has been written?
    👉 This is where the adapter pattern can help. A sidecar container executes transformation logic that turns the log entries into the format needed by the external system without having to change application logic.

КОМЕНТАРІ •