Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(server): use postgres-adapter for websockets #5569

Merged
merged 2 commits into from
Dec 9, 2023

Conversation

jrasm91
Copy link
Contributor

@jrasm91 jrasm91 commented Dec 8, 2023

With the goal of dropping another container (redis), we will need to replace:

  1. Websocket adapter (this PR)
  2. Bull Queues (follow-up PR)

Tested by connecting two separate sessions to two different immich-server instances, and then triggering a websocket event from one (asset delete) and verifying it was received in the second instance.

image

server/src/infra/websocket.adapter.ts Outdated Show resolved Hide resolved
@jrasm91 jrasm91 merged commit 92b4284 into main Dec 9, 2023
18 checks passed
@jrasm91 jrasm91 deleted the feat/postgres-adapter branch December 9, 2023 01:38
@riedel
Copy link

riedel commented Mar 23, 2024

Hi I just wanted to inform that this PR introduced regular (every second) disk writes (see #8009) as the pub sub mechanism of postgres in contrast to redis currently requires WAL (disk) commits to acquire a transaction id (see https://stackoverflow.com/a/78178571/148337) . This change is totally uncritical for large scale hosting, but for home deployments this is really annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants