Skip to content

Add support for causal context and context dot kernel#3

Open
OleksandrMizov wants to merge 3 commits intoHowProgrammingWorks:masterfrom
OleksandrMizov:om-dot-kernel-crdt
Open

Add support for causal context and context dot kernel#3
OleksandrMizov wants to merge 3 commits intoHowProgrammingWorks:masterfrom
OleksandrMizov:om-dot-kernel-crdt

Conversation

@OleksandrMizov
Copy link

We are adding abstractions:

Dot: string // with format "id:counter"

Dot is used to identify the modification by setting the node id + the index number of the change

DotContext:
causalContext: Map<string, number> // Map<id, counter>
dotCloud: Set // Setid:counter

Dot Causal Context is used to store 'known' changes from the node

DotKernel:
dataStorage: Map<string, TData> // Map<"id:counter">
contextBase: DotContext
shaedContext: DotContext

DotKernel is a data storage in the form of a Dot to Value mapping, along with the dot context to track the introduced changes.

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.

1 participant

Comments