-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: Use a fixed service id when running with mesg-core service dev
#275
Comments
mseg-core service test
mesg-core service test
We had a good discussion thinking about your proposal, the idea of an This update have few consequences:
Right now all services are stored in a key value database in the package If we add a resolution for ID we need to add another system with the Some other ideas we were thinking about Alias fileHave a manifest file that contains a map with the name of the service and its ID It would be a file in the
And the js lib (or other libs) will directly resolve either the the ID or the alias based on the alias file. Env variableAnother solution is to export an env variable when a new service is deployed/tested. The con is, when working with different terminal it could be complicated for the user to have to export all the env variables. Do you have any feedbacks on that ? |
This will be a very big PR! |
mesg-core service test
mesg-core service dev
@antho1404 please confirm and close this issue in favor of forum proposal. |
Problem
Change of service id after each source code change in a service causes us to manually update service id in our application which seems time consuming to me during active development.
Proposal
Use a fixed service id while using
mesg-core service test
.Implementation
mesg-core service test --id [a-unique-name]
. If the id is not unique, mesg-core should reply with an error.or
id
in the root ofmesg.yml
which is configurable by user and alsomseg-core service init
can automatically generate a uuid and set as the value ofid
.If this proposal survives, I'd be glad to make a PR.
The text was updated successfully, but these errors were encountered: