Skip to content

Naming convention for configurations (env, toml, cli args and more) #19

Description

@Briancbn

A continuation of #17 (comment)

MQTTSettings decoupled from TaskOrchestratorSettings as it is now read separately within client::clients::mqtt itself instead of from main.

But for the environment variables.

MQTT_CLIENT__* more like a global configurations shared across multiple services that uses MQTT, like AWS_SECRET_ACCESS_KEY. I don't think this is the intention here.

Whereas it is more fitting to be within the context of "Task Orchestrator".

We can also do something like

TO__SERVER__HTTP_HOST  # Server host (http)
TO__SERVER__HTTP_PORT  # Server port (http)
...

TO__MQTT_CLIENT__HOST
TO__MQTT_CLIENT__PORT

TO__GRPC_CLIENT__HOST
TO__GRPC_CLIENT__PORT

Let me know your thoughts @EthanKuai @DillonChew98

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions