1 package de.juplo.kafka.chat.backend.implementation.haproxy;
3 import de.juplo.kafka.chat.backend.domain.ShardingPublisherStrategy;
4 import lombok.RequiredArgsConstructor;
5 import lombok.extern.slf4j.Slf4j;
6 import org.springframework.web.reactive.function.client.WebClient;
7 import reactor.core.publisher.Mono;
12 @RequiredArgsConstructor
14 public class HaproxyShardingPublisherStrategy implements ShardingPublisherStrategy
16 private final URI runtimeApiUri;
17 private final WebClient webClient;
21 public Mono<String[]> publishOwnership(int shard)
23 return Mono.error(new RuntimeException("TODO"));