Git Product home page Git Product logo

scaproust's Introduction

Scaproust - Scalability Protocols in Rust

Linux build Windows build Coverage Status crates.io

Scaproust is an implementation of the nanomsg "Scalability Protocols" in the Rust programming language.

Quoting from nanomsg's site:

nanomsg is a socket library that provides several common communication patterns. It aims to make the networking layer fast, scalable, and easy to use. Implemented in C, it works on a wide range of operating systems with no further dependencies.

The communication patterns, also called "scalability protocols", are basic blocks for building distributed systems. By combining them you can create a vast array of distributed applications.

Experimental work ! For working stuff, please see nanomsg-rs.

API Documentation

Goals

  • Support for all of nanomsg's protocols.
  • Support for TCP and IPC transports.
  • Idiomatic rust API first, mimic the original C API second.
  • Extensibility: allow user code to define additional protocols and transports

Usage

First, add this to your Cargo.toml:

[dependencies]
scaproust = "0.2.0"

Next, add this to your crate:

extern crate scaproust;

Progress

  • Protocols

    • PAIR
    • BUS
    • REQREP
      • REQ
      • REQ resend
      • REQ prefetch replies
      • REP
    • PUBSUB
      • PUB
      • SUB
      • SUB subscription filter
    • PIPELINE
      • PUSH
      • PULL
    • SURVEY
      • SURVEYOR
      • SURVEYOR deadline
      • RESPONDENT
  • Transports

    • TCP
    • IPC (*nix)
    • IPC (Windows)
  • Socket options

    • Linger
    • Recv max size
    • Send timeout
    • Recv timeout
    • Reconnect interval
    • Reconnect interval max
    • Send priority
    • Recv priority
    • IPV4 only
    • Socket name
  • Protocol options

    • REQ resend interval
    • SURVEYOR deadline
    • SUB subscribe
    • SUB unsubscribe
  • Transport options

    • TCP no delay

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

scaproust's People

Contributors

blabaere avatar

Watchers

skyformat99 avatar  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.