Rust and WebAssembly

A Stateful Microservice you own this product

This project is part of the liveProject series Rust and WebAssembly Microservices
MySQL database basics
skills learned
MySQL driver for Rust
Michael Yuan
1 week · 4-6 hours per week · BEGINNER

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • share your subscription with another person
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!


5, 10 or 20 seats+ for your team - learn more

Look inside

To support its rapid growth, e-commerce company UMET Inc. relies on lightweight, interdependent, cloud-native microservices written in Rust that can compute sales tax rates and e-commerce order totals. As a developer at UMET, it’s up to you to integrate these microservices with existing order systems. To do that, you’ll need to turn the order total microservice into a database-backed stateful service. You’ll build and test the microservice in Docker and model the application data into relational database records. You’ll connect the microservice application to a MySQL database server, and you’ll use Docker to compose and manage all components of the microservice. When you’re done, you’ll have built an order management microservice in Rust that can read and save data from UMET’s MySQL relational databases and later serve as a template for other UMET microservices.

This project is designed for learning purposes and is not a complete, production-ready application or solution.

book resources

When you start your liveProject, you get full access to the following books for 90 days.

project author

Michael Yuan

Dr. Michael Yuan is the founder and maintainer of the open-source WasmEdge project—one of the most popular WebAssembly runtimes for server and edge applications. He’s the author of five books on software engineering and a frequent speaker at conferences, including KubeCon, Open Source Summit, QCon, and Rust Conf. He’s also the creator of, a serverless automation platform for AIOps and LLMOps. He holds a PhD in Astrophysics from the University of Texas at Austin and has been designing and implementing enterprise applications and server-side software infrastructure for over 20 years.


This liveProject is for developers interested in learning how to create cloud-native microservices that can read and save data from a MySQL database. To begin these liveProjects you’ll need to be familiar with the following:

  • Rust programming basics (syntax, standard libraries, and building tools such as cargo and
  • Linux basics (use the command line, sudo, and open/map ports to the outside world)
  • Basics of Git, GitHub, and GitHub Actions
  • GitHub account (registration is free)
  • Rust and Cargo toolchain
  • WasmEdge Runtime
  • Docker basics (commands, Dockerfile structure, Docker Compose, and the docker-compose.yml file)
  • Basics of typical HTTP-based web services
  • Basics of the 3-tier architecture for web applications
  • Exchange data with a web service using JSON
  • Use JSON in the frontend JavaScript framework

you will learn

In this liveProject, you’ll learn how to create cloud-native microservices that can read and save data from a MySQL database.

  • Model Rust data structure into relational database tables
  • Use async MySQL database clients in Rust and WasmEdge
  • Use Docker to compose and manage all components of the microservice


You choose the schedule and decide how much time to invest as you build your project.
Project roadmap
Each project is divided into several achievable steps.
Get Help
While within the liveProject platform, get help from other participants and our expert mentors.
Compare with others
For each step, compare your deliverable to the solutions by the author and other participants.
book resources
Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.

choose your plan


only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • A Stateful Microservice project for free