Feature - maker broker able to pre-process state updates
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- distributed-systems
Research direction
Start by tracing how the broker receives state updates from IframeSyncClient instances and compares them with stored state. Define the configurable preprocessing callback and verify that canonicalized equivalent updates do not trigger further client notifications; no files or tests are named in the issue.
Written by the indexing model from the issue text.
Description
When you have two IframeSyncClients sending state with trivial differences, let's say one likes to pass a certain value as a number, and the other sends it as a string, you can get into situations where they end up endlessly fighting. The broker could help solve such issues by creating a "canonical state" from what it gets sent.
For example, if client A sends:
{
"value": 10
}
Then client B sends:
{
"value": "10"
}
The broker could preprocess that state, converting it to the canonical state before comparing it to what it already had stored internally. It would then see that the update actually changes nothing, so the clients do not need to be informed of a state change. This preprocess step would be configurable with a user-provided callback; the broker code itself would not decide what the true state should be.
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mieweb/iframe-sync
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
mieweb/iframe-sync#5 ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
mieweb/iframe-sync#3 · 1 comment ·
All issues in mieweb/iframe-sync
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·