Decentralized Computing
# Distributed Compute Program
![License](https://img.shields.io/badge/license-MIT-blue.svg)
## Overview
Distributed Compute Program is a Rust application that enables distributed computation over a network. It allows clients to send computation tasks to a server, which executes them and returns the results. This program is designed to be flexible, scalable, and easy to use.
## Features
- Secure communication using RSA encryption.
- Serialization and compression of data for efficient network transfer.
- Support for various computation tasks through user-defined functions.
- Heartbeat mechanism to detect client disconnections.
- Graceful shutdown handling.
## Installation
1. Make sure you have Rust and Cargo installed on your system.
2. Clone this repository to your local machine:
```bash
git clone https://github.com/yourusername/distributed_compute_program.git
-
Navigate to the project directory:
cd distributed_compute_program
-
Build the project:
cargo build --release
-
Start the server:
cargo run --release --bin server
-
Connect clients to the server using TCP/IP.
-
Send computation tasks to the server and receive results.
- Modify the
HOST
,PORT
, andBUFFER_SIZE
constants insrc/main.rs
to customize server settings. - Replace the placeholder comments in
src/main.rs
with actual implementations for loading private and public keys.
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
Distributed Compute Program is licensed under the MIT License.
This project was inspired by fomoats ( Fear of moats )