command: sleep infinity
producer:
- image: juplo/endless-producer:1.0-SNAPSHOT
+ image: juplo/springified-producer:1.0-SNAPSHOT
ports:
- - 8080:8880
+ - 8080:8080
environment:
+ server.port: 8080
producer.bootstrap-server: kafka:9092
producer.client-id: producer
producer.topic: test
consumer:
- image: juplo/endless-consumer:1.0-SNAPSHOT
+ image: juplo/springified-consumer:1.0-SNAPSHOT
ports:
- - 8081:8881
+ - 8081:8080
environment:
- consumer.bootstrap-server: kafka:9092
- consumer.client-id: my-group
- consumer.client-id: consumer
+ server.port: 8080
+ spring.kafka.consumer.bootstrap-servers: kafka:9092
+ spring.kafka.consumer.group-id: my-group
+ spring.kafka.consumer.client-id: consumer
+ spring.kafka.producer.bootstrap-servers: kafka:9092
+ spring.kafka.producer.client-id: consumer
consumer.topic: test
@GetMapping("seen")
public Map<Integer, Map<String, Long>> seen()
{
- return consumer.getSeen();
+ return new HashMap<>();
}
+
@ExceptionHandler
@ResponseStatus(HttpStatus.BAD_REQUEST)
public ErrorResponse illegalStateException(IllegalStateException e)