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

Gateway: allow linking packages from other namespaces/subdomains #91

Open
trieloff opened this issue Jan 28, 2021 · 0 comments
Open

Gateway: allow linking packages from other namespaces/subdomains #91

trieloff opened this issue Jan 28, 2021 · 0 comments
Labels

Comments

@trieloff
Copy link
Contributor

In OpenWhisk, you can link another user's package into your own namespace and execute it as if it was your own code, but the owner of the original namespace still controls the entire lifecycle of the package's actions. This is a very neat feature that does not have equivalents in other platforms, but would still be desirable to have.

A simple gateway-level implementation could look like this:

  1. add another backend to the Fastly service: anywhere.run
  2. add an edge dictionary linked_packages where the package name is the key and the subdomain where it is deployed is the value
  3. upon request, look up the package and if the package can be found in linked_packages, use the anywhere.run backend for this request, set the target subdomain as the Host header and leave the URL as is
  4. When deploying, update the edge dictionary with the specified links
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

1 participant