Giter Site home page Giter Site logo

eigenein / rusty-home Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 356 KB

Hobby set of «smart home» microservices

License: MIT License

Rust 99.84% Makefile 0.16%
microservice microservices rust-application rust-apps rust-crate hobby hobby-project redis tractive telegram-bot

rusty-home's Introduction

Last commit Build status

🏚 rusty-home

This is a self-educational pet project.

I'm attempting to make a set highly-available microservices that I could deploy onto 3x of mine Raspberry Pi Zero W. Each microservice is going to focus on a particular task. The microservices would exchange messages with each other through Redis streams.

Design

Each host is running a redis-server and redis-sentinel with enabled persistence and automatic failovers.

Each host is running a set of microservices – ideally, all of them – via systemd. The microservices should use Redis consumer groups to ensure reliable processing of messages.

  • HTTP security and fault-tolerance is done by Cloudflare Tunnel
  • Errors and performance are monitored by Sentry
  • Liveness is monitored by Better Uptime, see also the «Heartbeat» sections in the READMEs
  • Logs are handled by journald and collected to Papertrail
  • Configuration is synced by Syncthing
  • Builds are automated with GitHub Actions and cross, and get deployed to the hosts via Tailscale

Everything's using a free tier. 😉

Available microservices

Installation

For Raspberry Zero W you can grab the binaries from the releases.

Otherwise, build them with cargo:

# Choose which binaries you'd like to install.
cargo install --git https://github.com/eigenein/rusty-home.git --locked rusty-tractive rusty-tractive-telegram-bot rusty-tado

Motivation

I'd be happy to automate some routines, but I wouldn't like to maintain a Home Assistant instance.

I have already maintained a similar project – eigenein/my-iot-rs – which was monolithic. But it was quite time-consuming to maintain all the internal interfaces, yet to rebuild the entire binary after a minor change. Also, the only way to extend it was to modify the monolithic source code. In theory, the new design should allow extending it using any other stack – as soon as it's capable of reading and writing Redis streams.

rusty-home's People

Contributors

dependabot[bot] avatar eigenein avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rusty-home's Issues

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.