Skip to content

Conversation

@stereosteve
Copy link
Contributor

@stereosteve stereosteve commented Jun 16, 2023

Description

because all nodes can accept writes, and the consistency is eventual, need to have resolution strategy for conflicts.

  • Chat Create: earliest chat wins, later chat + messages + reactions are deleted
  • Everything else: latest update / delete wins

also migrates migrations over to pg_migrate.sh

@stereosteve
Copy link
Contributor Author

currently it will depend on discovery start.sh to run pg_migrate.sh and there might be a time when new code is running against old schema, resulting in some 500s potentially...

this might be ok in the short run, I think we'll need a better dependency graph for migrations...

@stereosteve stereosteve merged commit c0184af into main Jun 16, 2023
@stereosteve stereosteve deleted the dms_multiball branch June 16, 2023 19:28
stereosteve added a commit that referenced this pull request Jun 16, 2023
@stereosteve stereosteve requested review from dharit-tan and removed request for dharit-tan June 20, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants