You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than making clients query directly to ETCD to get the status of a toggle - it'd be good to make them query via an API. There's several benefits to this:
Allows the option of some kind of security per request
The ETCD config is set inside of Hobknob - not per-app
ETCD can be secured via routing rules
It becomes easier to scale the application as required
Personally - I'd recommend that this is done as a separate deployable unit rather than putting it in the same application for the following reasons:
From a Scalability perspective:
it makes life a lot simpler to scale the API as required - keeping only a single instance of the front-end app
From a Security/Ops perspective:
It's possible to lock the application down via Network rules - e.g.:
ETCD becomes a Private resource (that only the API + front-end can access) - no longer accessible to teams
The Front-End and API can become internal-only
From a Development perspective:
If all endpoints in a given application have to be secured - it's very easy to use middleware to handle that for all scenarios - meaning human error/unsecured endpoints won't happen
Discussed in #152
Rather than making clients query directly to ETCD to get the status of a toggle - it'd be good to make them query via an API. There's several benefits to this:
Personally - I'd recommend that this is done as a separate deployable unit rather than putting it in the same application for the following reasons:
Thoughts?