6 releases

0.1.5 Oct 21, 2020
0.1.4 Aug 28, 2020
0.1.2 Jul 17, 2020

#1121 in HTTP server

MIT license

25KB
660 lines

Pass_ball

Pass_ball is message queue written by rust. Pass_ball has two mode to use,one is traditional sub-pub,another is req-resp like http server. The features of pass include:

  • No client: All functions are realised by http api, see python requests example in test directory.

  • No size limit: Pass can be use to send file between devices with no fixed ip.

  • Req-resp mode: In this mode ,Pass will feels like a synchronise http server. This request-response mode is useful among iot devices with no fix ip.

  • Persisitent data by config: Pass will clean data beyond time scope specified by sub-conf api. Therefore messages to subscriber might be duplicate.

  • User flexibility: it is the duty of end users to delete useful topics.

Quich Start

See test directory for guidance.

  1. pub-sub mode:
    • cargo run main.rs
    • python pub.py
    • python sub.py
  2. req-resp mode:
    • cargo run main.rs
    • python req.py
    • python resp.py(should run fast enough in time scope)

.env Conf Example

URL=127.0.0.1:8884
ROOT=D://myrust/pass
SLEDDIR=${ROOT}/data/db

Dependencies

~31MB
~614K SLoC