improve data migration performance #66
Labels
No labels
ActivityPub
advanced features
basic functionality
bug
DHT
evaluation
refactoring
security
test case
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: schmittlauch/Hash2Pub#66
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, the relay subscription list is done as a single transaction.
Disadvantages of that approach:
But some of its properties need to be kept when breaking up the atomic transaction:
possible alternative: use a global MVar for whether a migration is in progress (finer grained might be possible as well), thus serialising the migrations.
problem: possible message loss when not all subscriptions are transferred yet and new incoming messages are only forwarded to already migrated subscriptions, but won't reach yet-to-be-migrated ones.
counter measure: stop semantics, during migration new messages are rejected and need to be queued for retry at the senders.