Coder Social home page Coder Social logo

bitcard / p2p-channel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ziwei-wei/p2p-channel

0.0 1.0 0.0 525 KB

Channel is a pubsub channel with synchronization abilities and eventual message consistency. It is built upon libp2p and a local database without any other 3rd party dependencies.

License: GNU General Public License v3.0

Go 100.00%

p2p-channel's Introduction

p2p-channel

Introduction: Channel is a pubsub channel with synchronization abilities and eventual message consistency. It is built upon libp2p and a local database without any other 3rd party dependencies. It used operational based CRDT for message synchronization to achieve less network traffic. It used state base CRDT for state synchronization to sustain peers state info. It has the ability to sync not only from the author, but from any peer which have better information about another peer. Thus it made it simpler to give offline message ability to a p2p pubsub system without a centralized server for offline message pushing. With an event based interface, it can be easily extended for other applications. Currently it only supports storm(BoltDB) in golang as the local database, it could expand to accept more local or embedded database in future update. It also need to support potential outside server as a method to provide full offline message ability.

Usage: It can be used to support various applications that needs consistency and offline capabilities such as chatroom, internet forum, co-edit document, p2p database, etc.

Author: Ziwei Wei Date: Dec 1, 2019 Version: 0.1

Plan for version 0.2: diagram

TODO:

  1. refractor code according to design
  2. clean wacky commends, make comments better
  3. build more solid tests

To test run

go test ./...

p2p-channel's People

Contributors

ziwei-wei avatar

Watchers

 avatar

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.