Convert connections to events, store external events

Repository details (botten-nappet)
Project page
botten-nappet
Project log category
(195 entries)
Owner
@joelpurra
Contributors
Contributors on Github
Project status
💤 This project is inactive.
📂 This project is open.
🤷 This project is not particularly popular.
Repository activity period
🗓
Commits
209 commits
Stars
5 stars
Commit details (539a6f24)
Author
Authored at
Committer
Joel Purra
Committed at

Commit message

Convert connections to events, store external events

  • Incoming/outgoing data on external connections are now translated to/from internal events.
  • External events are stored in the database.
  • With a replay functionality, it would be close(r) to event sourcing.
Raw text
Convert connections to events, store external events

- Incoming/outgoing data on external connections are now translated to/from internal events.
- External events are stored in the database.
- With a replay functionality, it would be close(r) to event sourcing.

Changed files (32)

Path Additions Deletions
config/default.yml +11 -10
src/backend/src/config/config.ts +9 -0
src/backend/src/distributed-events/distributed-event-manager.ts +65 -0
src/backend/src/main/authenticated-application-main.ts +27 -9
src/backend/src/main/main.ts +14 -0
src/backend/src/main/manager-main.ts +21 -0
src/backend/src/main/per-user-handlers-main.ts +19 -1
src/backend/src/storage/database-connection.ts +33 -0
src/backend/src/storage/idistributed-event-camo.ts +25 -0
src/backend/src/storage/idistributed-event.ts +25 -0
src/backend/src/storage/iuser-camo.ts +2 -7
src/backend/src/storage/manager/distributed-event-storage-manager.ts +69 -0
src/backend/src/storage/repository/distributed-event-repository.ts +58 -0
src/backend/src/twitch/irc/handler/vidy-result-event.ts +13 -5
src/backend/src/twitch/polling/event-handler/incoming-cheering-event-translator.ts +5 -4
src/backend/src/twitch/polling/event-handler/incoming-polling-event-translator.ts +88 -0
src/backend/src/twitch/polling/event-handler/incoming-pubsub-event-translator.ts +64 -0
src/backend/src/twitch/polling/event/iincoming-polling-event.ts +25 -0
src/backend/src/twitch/polling/event/iincoming-pubsub-event.ts +25 -0
src/backend/src/twitch/polling/handler/Icheertoken-with-cheermotes-url.ts +1 -1
src/backend/src/twitch/polling/handler/icheermotes-polling-response.ts +3 -2
src/backend/src/twitch/polling/polling-connection.ts +3 -3
src/backend/vidy/request/authenticated-request.ts +9 -2
src/frontend/public/index.html +2 -0
src/frontend/src/main/manager-main.ts +17 -7
src/shared/src/message-queue/intersection-topics-subscriber.ts +74 -0
src/shared/src/message-queue/item-array-json-topics-subscriber.ts +7 -4
src/shared/src/message-queue/json-topics-subscriber.ts +7 -4
src/shared/src/message-queue/raw-topics-subscriber.ts +56 -0
src/shared/src/message-queue/single-item-topics-subscriber.ts +7 -4
src/shared/src/message-queue/topic-publisher.ts +2 -2
src/shared/src/message-queue/topics-subscriber.ts +9 -5

Commit categories (3)