refactor: Pushed sharding one layer down in the architecture
authorKai Moritz <kai@juplo.de>
Fri, 24 Feb 2023 08:47:35 +0000 (09:47 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 24 Feb 2023 11:12:13 +0000 (12:12 +0100)
commite1ad66ecb1dc386bb357e364a05b071ec45920e1
tree4024c642157f495f417a31605d2e373d2728c7f3
parent5df111ec5b6442114b90cc2f1ad45ae73a66e69b
refactor: Pushed sharding one layer down in the architecture

- The packages `domain` and `api` does not have to know anything about
  sharding.
- This is a preparation for the implementation of a persistence
  implementation, that is based on Kafka.
- Also simplifies the configuration in `InMemoryServiceConfiguration`.
14 files changed:
src/main/java/de/juplo/kafka/chat/backend/ChatBackendApplication.java
src/main/java/de/juplo/kafka/chat/backend/domain/ChatHome.java
src/main/java/de/juplo/kafka/chat/backend/domain/ChatHomeService.java
src/main/java/de/juplo/kafka/chat/backend/domain/ShardNotOwnedException.java [new file with mode: 0644]
src/main/java/de/juplo/kafka/chat/backend/domain/ShardedChatHome.java [deleted file]
src/main/java/de/juplo/kafka/chat/backend/domain/SimpleChatHome.java [deleted file]
src/main/java/de/juplo/kafka/chat/backend/domain/UnknownChatroomException.java
src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatHomeService.java
src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryServicesConfiguration.java
src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java
src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeTest.java [new file with mode: 0644]
src/test/java/de/juplo/kafka/chat/backend/domain/SimpleChatHomeTest.java [deleted file]
src/test/java/de/juplo/kafka/chat/backend/persistence/AbstractInMemoryStorageIT.java
src/test/java/de/juplo/kafka/chat/backend/persistence/AbstractStorageStrategyIT.java