ADSP-EcoTrekker-Project / EcoTrekker

3 stars 1 forks source link

[BUG] rest-api crashes when the broker is not reachable #34

Closed lierseleow closed 9 months ago

lierseleow commented 9 months ago

When starting the rest-api it searches for the kafka broker and crashes when it cannot establish the connection.

Preferably, the rest-api would wait for the broker to come online by backing off and retrying a few seconds later.

This would also be the preferred behavior for when the broker should become unavailable.

While backing off, the API also needs to return a 5XX status code.

Andy3189 commented 9 months ago

Kafka ist weg also wird nicht mehr benötigt