Learning Rust (the programming language) and sharing some TIL

Hi all,

I’ve spent last week learning and building a ‘PoC’ monitoring tool that I dropped into production yesterday. At the moment it can only monitor the slave status of a MySQL slave DB and provide “spam-free” notification via Slack and Postmark (email). Ansible playbook included.


cc: @SgtAwesomesauce since you may like the devops/monitoring aspect of this.

I’m working on a total internal redesign to support different types of monitors, and run the monitoring/notification aspects concurrently. As for rust, so far I’ve had a lot of fun learning about its quirks.

I’ve also maintained a list of TIL on my rust journey here: https://gist.github.com/bsodmike/8d60c8aa8f47ca2735dab2a167b8c06a

For anyone keen on picking up a new language, I honestly feel that Rust is a good way to go and that it will be around for a decent while.

5 Likes

As part of my plans for phase 2, I want to be able to carry out monitoring on various forms of monitors, and to that end I’ve started modelling the internals in a better fashion. Here’s progress so far, where I’ve used trait objects to allow storing monitors of various types within a single Vector.

Phase 2 progress continues in this PR https://github.com/bsodmike/sentinel-rust/pull/13

1 Like