command: sleep infinity
gateway:
- image: juplo/sumup-gateway--springified:1.0-SNAPSHOT
+ image: juplo/sumup-gateway:1.0-SNAPSHOT
ports:
- 8080:8080
environment:
server.port: 8080
- spring.kafka.bootstrap-servers: kafka:9092
- spring.kafka.client-id: gateway
+ sumup.gateway.bootstrap-server: kafka:9092
+ sumup.gateway.client-id: gateway
sumup.gateway.topic: in
requests-1:
results.addResults(partition, user, result);
}
- @KafkaListener(
- id = "${spring.kafka.consumer.group-id}",
- topics = "${sumup.adder.topic}")
public void accept(
- @Header(KafkaHeaders.RECEIVED_PARTITION_ID)
Integer partition,
- @Header(KafkaHeaders.RECEIVED_MESSAGE_KEY)
String user,
- @Payload
Message message)
{
switch(message.getType())