Giter Site home page Giter Site logo

iot_poc's Introduction

๐ŸŒ Distributed Worker-Server System in Rust

Welcome to our Distributed Worker-Server System project! This system, written in the powerful Rust programming language, showcases a network of worker nodes communicating with a central server. Each worker node, upon starting, establishes a connection with the server and participates in the network communication.

Features ๐ŸŒŸ

  • Rust-Powered: Leverages Rust's excellent concurrency and safety features for network operations.
  • Server-Worker Architecture: Implements a basic model where workers connect to and communicate with a central server.
  • Asynchronous Communication: Uses asynchronous programming for efficient, non-blocking network communication.
  • Scalable Design: The architecture is designed with scalability in mind, allowing for an increase in the number of worker nodes.

Getting Started ๐Ÿš€

Prerequisites

  • Ensure you have Rust and Cargo installed on your machine. Visit Rust's official site for installation instructions.
  • Basic understanding of Rust and network programming.

Installation

Clone the repository to get started:

git clone https://github.com/your-username/iot_poc.git
cd iot_poc

Usage ๐Ÿ–ฅ๏ธ

Running the Server

Navigate to the server project's directory:

cd server
cargo run

The server will start and listen for incoming connections from worker nodes.

Running Worker Nodes

In a new terminal, navigate to the worker project's directory:

cd workers
cargo run

This will start a worker node that connects to the server. You can open multiple terminals and run this command to simulate multiple worker nodes.

How It Works ๐Ÿ”

  • Server: The server listens on a specified port for incoming connections from workers. It can handle multiple worker connections simultaneously.
  • Workers: Each worker establishes a connection with the server on startup. They then communicate with the server, sending and receiving messages.

Contributing ๐Ÿค

Contributions to this project are welcome! Feel free to fork the repo, make your changes, and submit a pull request.


โŒจ๏ธ with โค๏ธ by mariodev ๐Ÿš€


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.