infinyon / fluvio

Lean and mean distributed stream processing system written in rust and web assembly. Alternative to Kafka + Flink in one.
https://www.fluvio.io/
Apache License 2.0
3.79k stars 504 forks source link

Improve ergonomics for clients connecting to cluster on another host #2017

Open tjtelan opened 2 years ago

tjtelan commented 2 years ago

The default Rust client assumes a local cluster, with preference given to the config file at ~/.fluvio/config.

You can also connect to a different cluster by providing a FluvioConfig.

But for the CLI and our other clients, users need to modify ~/.fluvio/config to connect to another cluster, which is not always a practical approach.

In my opinion this behavior was permitted by Profile (and maybe also Config) being heavily leveraged in the fluvio crate. It enabled shortcuts for the CLI that other clients don't need to assume. Like having a config file to load from a specific location on the filesystem.


What I think needs to happen:

n3wtron commented 2 weeks ago

Hi, do you know if this is still valid? Is it not already covered by the fluvio profile command?

ajhunyady commented 2 weeks ago

Hi @n3wtron, thanks for your interest in this issue, though it feels obsolete. To switch the CLI from one cluster to another, one can use fluvio profile switch.

@digikata should we close this issue? Alternatively, if there is still work needed, we should open a new issue and state the new problem.