Commit Graph

17 Commits

Author SHA1 Message Date
d9e05e6d9a create EventStreamInPostgresql 2025-04-14 23:40:08 +02:00
a427bf88c7 create EventStreamInMemoryTest 2025-04-14 23:40:08 +02:00
86086eb949 move EventStream method implementation into the interface 2025-04-14 23:40:04 +02:00
8c1eabb9f5 Projection was now built on listener events
Create ProjectionBus and use it with listeners
add EventStream::getByVersion
2025-04-14 23:39:56 +02:00
804ccd785e Add MDC to log4j 2025-04-14 23:39:46 +02:00
b4234a9b37 update ktlint rules 2025-04-14 23:39:44 +02:00
492981bed0 Split EventStream and EventStore 2025-04-14 23:39:43 +02:00
23cc3e3567 Une modulo to create snapshot
fix removeSnapshot
2025-04-14 23:39:43 +02:00
91767e3747 Improve concurrence of ProjectionSnapshotRepositoryInMemory and GameEventHandler 2025-04-14 23:39:42 +02:00
286dedac76 extract projection snapshot logic
implement GameStateRepositoryTest
add lambda to the GameEventHandler.handle{} to set the version

add VersionBuilder
add version to the events
add creation date to the events
rename gameId to aggregateId
add EventHandler interface
2025-04-14 23:39:41 +02:00
c84aa7e0c1 CommandStreamChannel block the duplicate call
add GameCommandHandlerTest
Create a CommandStreamChannelBuilder to inject maxCacheTime
Add missing empty disabled test
fix EventStreamInMemory.readAll
2025-04-14 23:39:40 +02:00
6028846828 Improve concurrency
Fix GameState.currentPlayerTurn and nextPlayer
Add ItsTheTurnOfNotification
Improve test
2025-04-14 23:39:38 +02:00
51d857513c Create test for complete game
create notifications for reply the players
implement notifications on GameEventPlayerNotificationListener
add priority to the eventbus.subscribe()
improve JWT creation
update libs koin + ktor
remove output of GameCommandStream
improve logs
create a function disableShuffleDeck to disable the shuffle of the deck (for tests)
2025-04-14 23:39:36 +02:00
06443d7efa refactoring 2025-04-14 23:39:31 +02:00
f3ca94c97e create bus and subscriber 2025-04-14 23:39:30 +02:00
de3d4a1021 Add Comments 2025-04-14 23:39:29 +02:00
ae5c229e4b Refactor 2025-04-14 23:39:29 +02:00