Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.32 KB

File metadata and controls

23 lines (18 loc) · 1.32 KB

Archetype: Rust Modular gRPC Microservice

A Rust gRPC-based Microservice archetype, with the following qualities:

  • Strong adherence to Twelve Factor principles
    • Layered, hierarchical configuration using config
    • Run and managed by an ergonomic CLI interface, powered by clap
  • Completely asynchronous, powered by Tokio
  • Modular, with individually usable and tested layers:
    • Server: gRPC based remoting layer using Tonic
    • Core: business layer, adapting the gRPC API implementation over the persistence layer
    • Persistence: persistence tier abstraction and database migrations, provided by SeaORM
  • testcontainers-async are leveraged for testing and rapid prototyping and development
  • Additional build and development tooling though:

To generate a project from this archetype using Archetect:

archetect render https://github.com/archetect/archetype-rust-service-tonic-workspace.git