From the course: Rust for Data Engineering

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Containerized Rust Actix Microservice on AWS

Containerized Rust Actix Microservice on AWS - Rust Tutorial

From the course: Rust for Data Engineering

Containerized Rust Actix Microservice on AWS

- Here we have an overview of a containerized Actix microservice that will eventually be deployed to AWS. You can see a common structure here that's similar to many projects I work on. I have a MakeFile, I have a Dockerfile, I have a Cargo.toml file and I also have a lib and a main.rs. Let's go ahead and dive into it. So here we have this Rust tutorial that I've been hooking up here that's in the notes that you can link to, and we see that it says Containerized Active Microservice. I have a link to the project. And then let's look at the Docker file. So this Docker file uses Rust as a builder. So what happens is that this environment is able to use all of the developer resources you care about, but then it pushes it into a new container. So this is a nice slick way to build a very tiny container. And once it is able to be pushed into this new container, we expose 8080 and we set up an entry point that says webdocker.…

Contents