Skip to content
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

Console layer #141

Open
jhomarolo opened this issue Jul 1, 2022 · 9 comments
Open

Console layer #141

jhomarolo opened this issue Jul 1, 2022 · 9 comments
Labels
enhancement New feature or request hacktoberfest

Comments

@jhomarolo
Copy link
Contributor

Is your feature request related to a problem? Please describe.
What do you think about the CLI creating a console layer?

Describe the solution you'd like
Instead of using the HTTP layer (rest or graphql), maybe the cli could create a console layer, for background processes or cronjobs.

Describe alternatives you've considered
Create a cronjob layer directly

@jhomarolo jhomarolo added the enhancement New feature or request label Jul 1, 2022
@dalssoft
Copy link
Member

dalssoft commented Jul 1, 2022

is this what you are looking for? #84

@jhomarolo
Copy link
Contributor Author

No, is more like this console app in buchu

@dalssoft
Copy link
Member

dalssoft commented Jul 1, 2022

we could have something like herbs shell --run:CreateUser --payload:'{name: "John"}'

does it make sense?

@jhomarolo
Copy link
Contributor Author

But about the transport/execution layer? Will be a console app or HTTP?

@italojs
Copy link
Member

italojs commented Aug 6, 2022

I agree with the @jhomarolo
is super common to create console apps that run in servers in a long-term way or trigged via cron and etc

My suggestion is to create a simple folder inside the infrastructure layer so inside it we could have an index.js
@jhomarolo do you think we need something more elaborated?

for me it could be an nice-to-have feature

@dalssoft
Copy link
Member

dalssoft commented Aug 7, 2022

But about the transport/execution layer? Will be a console app or HTTP?

there is no transport layer. the herbs shell command is calling the UCs directly.

@jhomarolo
Copy link
Contributor Author

@dalssoft since there is no transport layer, how the project will run inside a cronjob or scheduled task?

@dalssoft
Copy link
Member

dalssoft commented Sep 4, 2022

how the project will run inside a cronjob or scheduled task?

for a cronjob would be ok to just it on a remote terminal as CLI (#141 (comment)). for scheduled task, like a lambda, this is just a rest or graphql endpoint waiting to be called by a lambda, already supported.

@italojs
Copy link
Member

italojs commented Oct 5, 2022

#141 (comment) looks interesting but it is the same as herbs2repl, no?
I think we could create an index.js file just for the user to do what they want, like a generic layer for when they don't want to use rest or graphql.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants