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

Best layer for scripting? #283

Open
St4B opened this issue Jun 27, 2018 · 0 comments
Open

Best layer for scripting? #283

St4B opened this issue Jun 27, 2018 · 0 comments

Comments

@St4B
Copy link

St4B commented Jun 27, 2018

Hello I am thinking about using rhino in order to have some JS functions.
Where do you think is the best part to execute them?

I was thinking about having the following architecture.
Presentation layer triggers the execution of a script.
Domain layer uses the Data layer in order to retrieve the script.
Domain layer executes the script. (The script is possible to do complex calculations and operate over db)

By this approach we do our calculation (aka logic) inside a use case and in a background thread,
but we can not handle UI and we handle data from domain layer which breaks our architecture.
What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@St4B and others