flipp-oss / deimos

Framework to work with Kafka, Avro and ActiveRecord
Other
60 stars 22 forks source link

Disable producers in development if not configured #3

Open dorner opened 5 years ago

dorner commented 5 years ago

Currently, Deimos assumes that if Kafka is configured, it should send messages to it (with the exception of RSpecs when producers are stubbed). In development mode, it should detect on startup if Kafka is actually running as configured, and if not, it should run in test mode where messages get sent to an array. Currently, it crashes, meaning devs would have to manually change the configuration or that they must run Kafka even if they aren't actively testing the Kafka parts of their app.