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

"Service apps" #14

Open
stuartpb opened this issue Aug 19, 2015 · 2 comments
Open

"Service apps" #14

stuartpb opened this issue Aug 19, 2015 · 2 comments

Comments

@stuartpb
Copy link
Member

So yeah, this has to be permissible: as an alternative to repo-based apps, it should be possible to instantiate a service as an app (primarily for CouchDB, but also for other apps-distributed-as-a-service).

There are a few reasons this goes in the app namespace, but the primary one is that they share the same namespace in terms of domains etc, so it's simpler to think of all "standalone services" as apps. (It also makes it a cinch to consider apps as services.)

It also means apps have to be interlinkable. Also, service definitions should change to be templated, with a default for the name of the service's name (so I could have "USERS_RDB_IP" and "POSTS_RDB_IP" or something for the event I hook up multiple app services via the inter-app-exposure mechanism).

And, of course, it has to be possible convert service apps to addons and vice versa.

@stuartpb
Copy link
Member Author

So I think this means the terminology for apps:create is going to bifurcate into apps:init (and all "app/repo integration" will be moved out of its own plugin and into the apps system, where apps are now just inherently repo-aware), and apps:spawn or something like that, which instantiates a service app.

@stuartpb
Copy link
Member Author

I'll probably leave apps:create as a synonym for apps:init because that's the path of least resistance (why bikeshed just to make the command that matches other platforms not match their name?)

In fact, since there's nobody relying on the old promises, I'll just change apps:create and not give it a new name. It means it calls an entirely new tree of hooks, but that's NBD.

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

No branches or pull requests

1 participant