-
Notifications
You must be signed in to change notification settings - Fork 80
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
First Class Worker Support in Rib #1196
Comments
The tickets will be further spliced after a few design decisions. Consider this current description as a pointer to design decisions. The plan is to be able to write the following (as an example) in Rib let afsals-instance = instance[acme:foo]("afsals-cart");
let cart = afsals-instance.golem:it/api;
cart.add-item(request.body.item); This assumes we can parse This handles the scenario of being able to call the function as part of the main package of the component as well as functions that comes off from other packages. 2 layers of packagesSo there are 2 layers of packages, the first one is necessary to identify the component. The second one, to identify the function. In the above example We need to decide on whether we need to translate all let cart = instance[acme:foo]("afsals-cart").golem.it.api; Development Steps
struct RibModule {
package_name: String,
interfaces: Vec<Interface>
}
instance.golem:it/api
|
It could be worth introduce Another thing to discuss: how to unify workers with resources. I'd really like to view a worker as a type of resource, so the same mechanism can be used for both. |
No description provided.
The text was updated successfully, but these errors were encountered: