Skip to content

Replace realtime #6

Description

@chatch

Supabase realtime will not work with self hosted on timescale cloud because:

  • logic replication is not available
  • parameters can not be set (although a fork of realtime could remove parameters setting from the migration)

What are we currently using realtime for:

  • subscribe to updates to myenergy.contracts - updates app state - contract signed status
  • subscribe to updates to myenergy.customers - updates app state - customer status and flags

Potential replacement:

  • setup websockets with Spring in the accounts service (see STOMP)
  • trigger on tables sends NOTIFY on row update
  • setup a new NOTIFY/LISTEN channel in the accounts service
  • setup a new listener that will construct a STOMP message
  • use a STOMP client in the flutter app to subscribe to messages

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions