SHIELD

This CLI tool is used to protect you from HYDRA. NO! Shield generates a Type-Safe Producer and Consumer implementation for Message Bus.

Currently supports:

  • RabbitMQ
  • Kafka (Need help)

Language Support:

  • NodeJS Typescript
  • Go
  • Rust (Need help)

Getting Started

  1. Add a shield.toml in your root folder

bus = "rabbitmq"

include = ["./protos/user_events.proto"]

[stream.userqueue]
message = "user_events.proto.Login"
from = "startpoint"
to = "email_service"
  1. Generate producer side of the code
shield gen -p ts

This command generates -p for your Typescript codebase.

  1. Generate consumer side of the code
shield gen -c ts

Generate Message Flow Chart

shield chart

GitHub

View Github