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

Runtime url resolution #168

Open
dvilchez opened this issue Mar 3, 2017 · 3 comments
Open

Runtime url resolution #168

dvilchez opened this issue Mar 3, 2017 · 3 comments
Assignees
Labels

Comments

@dvilchez
Copy link
Contributor

dvilchez commented Mar 3, 2017

Runtime URL is stored using the storage manager and recovered from it if it is present. The problem with this behavior is it is make impossible to execute two application from the same domain since both will get the same runtime URL.

@pchainho
Copy link
Contributor

pchainho commented Mar 3, 2017

draft idea: set a boolean status to know if the address is already being used

@pchainho pchainho assigned vitormsilva and pchainho and unassigned pchainho Mar 3, 2017
@pchainho
Copy link
Contributor

pchainho commented Mar 3, 2017

Complete proposal to fix this:

  • runtimeUA.init() check storage manager has any runtimeUrl with live = false. If no, generates a new RuntimeURL, otherwises reuses any runtime url with live = false. At the end sets in the storage manager the allocated address with live = true.
  • runtimeUA.close() set in the storage manager, runtimeUrl withlive = false
  • registry.registerHyperty(..) and registry.registerDataObject(..) store urls in the storage manager adding in the key the allocated runtimeUrl
  • registry.checkRegisteredURLs() add the runtimeURl in the search
  • syncManager._onCreate() only return Data Object Reporter addresses to be resumed if reporter matches the resume requester

comments?

@pchainho
Copy link
Contributor

pchainho commented Mar 3, 2017

To be noted this shouldn't be a problem with the runtime sharing feature

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

No branches or pull requests

3 participants