Coder Social home page Coder Social logo

crdt-flix's People

Contributors

csw avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

crdt-flix's Issues

Define test protocols for server-side CRDTs

For each scenario where a server-side Optimized OR-Set could deliver the wrong semantics, we should come up with a testing protocol to exercise that situation (by injecting failed writes with retries, partitions, maybe duplicate messages, etc.).

For instance, to show non-idempotent add():

  • client A: add(e)
    • operation succeeds, A sees simulated network error, prepares to retry
  • client B: observes 'e', removes it with remove(e)
  • client A: retries add(e)
  • result: 'e' is in the set after being removed

Test protocol:

  • every element should be added exactly once
    • disjoint per-client sets of elements to add
  • every element added should be removed by one specific other client
    • disjoint sets to remove as well
    • removal should be attempted exactly once
  • For instance: add 10*client ID + random n; remove if element % 10 == client ID

Client-side CRDT test harness for space complexity

Extend the current client code to take parameters for: CRDT module, # of operations, and # of clients, spawn the appropriate number of clients, run tests as they do now, and report the final size of the CRDT on the server.

This should work for the OR-Set and orswot modules.

This will let us demonstrate space complexity problems by # of operations (for OR-Set) and # of clients (for optimized OR-Set).

Create library for fault injection

Start by simulating network errors, randomly choosing whether to actually perform the operation or not (to simulate a network error before or after the request is transmitted), and retrying after a delay.

Also: partitions, maybe duplicate messages?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.