8000 GitHub - jolisper/rust_microservices: A reference project for containerized Rust microservices with CI/CD · GitHub
[go: up one dir, main page]

Skip to content

jolisper/rust_microservices

Repository files navigation

Rust gRPC Microservices Reference Project

This is a reference project for creating a distributed system with multiple microservices using gRPC and Rust. The project is structured as a monorepo and each microservice is a separate crate.

The project uses the following technologies:

  • Rust as the programming language
  • Tokio as the async runtime
  • Protobuf for defining the gRPC messages and services
  • Docker for containerizing the microservices
  • GitHub Actions for continuous integration

The project is structured as follows:

  • Each microservice is a separate crate in the src directory
  • The protos directory contains the protobuf definitions for the gRPC messages and services
  • The Dockerfiles for building the Docker images for each microservice are in the root directory
  • The .github/workflows directory contains the GitHub Actions workflows for building and deploying the project

Running the project locally

To run the project locally, you will need to have Docker and the protoc compiler installed on your machine. Once you have those installed, you can use the following commands to build and run the project:

  1. docker-compose up -d - This command will build the Docker images for each microservice and start them in detached mode.
  2. docker-compose ps - This command will show you the status of the running containers. You can use this command to verify that all the microservices are running correctly.
  3. You can use the CLI client to interact with the microservices. The CLI client is in the src/client directory. You can run it with the following command: cargo run --bin client -- --help

Summary

This project is a reference project for creating a distributed system with multiple microservices using gRPC and Rust. It is a personal project that I use as a reference for my own projects. It could also be useful for others who are looking to create a similar project.

About

A reference project for containerized Rust microservices with CI/CD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

0