Is Rust suitable for building HTTP APIs?

Porting a serverless chatbot from Python to Rust

Notes on the experience of porting a small chatbot HTTP API from Python to Rust using the Rocket web framework.

Azure vs Google vs AWS

Creating a Python serverless bot

Python bot posting our daily Mailchimp stats into Basecamp.

Why port to Rust?

Reason 1: Fun and interesting

Reason 2: Portability

The final 100% static, upx compressed binary. Only 2.5MB.

Reason 3: Developer tooling

Challenges learning Rust

Language challenges

Web framework challenges

Chatbot running the embedded web server framework, Rocket.

Build challenges

Compiling totorobot for Linux musl on GitHub Actions.

Conclusions

--

--

Co-founder https://console.dev — the best tools for developers. Researching sustainable computing at Uptime Institute. https://davidmytton.blog

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
David Mytton

Co-founder https://console.dev — the best tools for developers. Researching sustainable computing at Uptime Institute. https://davidmytton.blog