Skip to content

Latest commit

 

History

History
41 lines (38 loc) · 3.48 KB

README.md

File metadata and controls

41 lines (38 loc) · 3.48 KB

Edge-Matrix-Core

Edge-Matrix-Core was born from and built to improve the maintainability and modularity of the existing version of Edge-Matrix-Computing

You can create a P2P network as shown below and connect the webapp to the edge of the network:

 +----------------+                 +----------------+                 +-----------------+              +-----------------+
 |                |                 |                |                 |                 |              |                 |
 |                | libp2p stream   |                | libp2p stream   |                 |    HTTP      |                 |
 |   Relay Node   <----------------->   Relay Node   <----------------->    Edge Node    <-------------->   Webapp SERVER |
 |                |   Discovery     |                | p2p Reservation |                 |              |                 |
 |  libp2p host   |                 |  libp2p host   |                 |   libp2p host   |              |   local host    |
 +------|---------+                 +-------|--------+                 +-----------------+              +-----------------+                   
    libp2p stream                     libp2p stream 
        |                                   |  
    Discovery                           Discovery
 +------|---------+                 +-------|--------+                 +-----------------+              +-----------------+
 |                |                 |                |                 |                 |              |                 |
 |                | libp2p stream   |                | libp2p stream   |                 |    HTTP      |                 |
 |   Relay Node   <----------------->   Relay Node   <----------------->    Edge Node    <-------------->   Webapp SERVER |
 |                |   Discovery     |                | p2p Reservation |                 |              |                 |
 |  libp2p host   |                 |  libp2p host   |                 |   libp2p host   |              |   local host    |
 +------|---------+                 +-------|--------+                 +-----------------+              +-----------------+                   
    libp2p stream                     libp2p stream 
        |                                   |  
    Discovery                           Discovery
 +------|---------+                 +-------|--------+                 +-----------------+              +-----------------+
 |                |                 |                |                 |                 |              |                 |
 |                | libp2p stream   |                | libp2p stream   |                 |    HTTP      |                 |
 |   Relay Node   <----------------->   Relay Node   <----------------->    Edge Node    <-------------->   Webapp SERVER |
 |                |   Discovery     |                | p2p Reservation |                 |              |                 |
 |  libp2p host   |                 |  libp2p host   |                 |   libp2p host   |              |   local host    |
 +------|---------+                 +-------|--------+                 +-----------------+              +-----------------+                   
    libp2p stream                     libp2p stream 
        |                                   |  
       ...                                 ...

Refer to the Edge-Matrix-Computing project for usage

License

MIT License