Yolean / kafka-cache

Explorations for the log-backed in-memory cache we need in almost every service
6 stars 0 forks source link

createKafkaWrite will fail indefinitely if kafka is unreachable at producer creation #17

Open atamon opened 6 years ago

atamon commented 6 years ago

Typically cumbersome for e2e tests with build-contract. Your service starts before kafka is ready -> you create a producer which tries, and fails, to connect to kafka, and then you have a worthless write function

solsson commented 6 years ago

I wonder if this is the expected behavior with librdkafka/node-rdkafka? If so we'll need to catch an error and retry with backoff I guess.