PawelLipski / amazon-scala-paas

A minimalistic Scala/Akka-written PaaS for running JVM-based distributed apps on Amazon AWS
0 stars 0 forks source link

Web interface allowing to upload a jar to the current Amazon instance #2

Closed PawelLipski closed 9 years ago

BartoszJanota commented 9 years ago

Play Framework?

PawelLipski commented 9 years ago

Sure, seems legit. Let's keep it uberminimal.

2015-04-25 10:27 GMT+02:00 Bartosz Janota notifications@github.com:

Play Framework?

— Reply to this email directly or view it on GitHub https://github.com/tilius/amazon-scala-paas/issues/2#issuecomment-96157474 .

BartoszJanota commented 9 years ago

Cannot see any other opportunities, or maybe I'm wrong, any ideas guys? It will be deployed as an autonomous service, yep? And than it will be able to communicate with each VM via what? Or maybe we don't need such a big framework as Play. Maybe REST API (Spray or Akka HTTP) exposed at each node + angular.js as an autonomous application?

PawelLipski commented 9 years ago

Yep, it's an autonomous service, but anyway we may like to deploy the webapp to one of the two Amazon nodes having a public IP (aka the master node). Once the jar is uploaded to the master, it's simply copied and launched at the other machines via their private IPs. We can go for raw scp/ssh, do it Ansible-wise (Supervisor etc.) or pass the files/commands around via HTTP. I'd rather pick the third option. It'd be clean to stick to HTTP everywhere. Maybe expect for setting up the machines, which I already coded up in Ansible. You said "REST API exposed at each node". I believe we rather want a browser-visible REST API at the master node and a master-visible REST API at each slave. As a matter of detail, the master (webapp) node can as well host a running slave service. angular.js for the front-end seems cool, anybody besides Bartek familiar/willing to learn?

2015-04-26 15:23 GMT-03:00 Bartosz Janota notifications@github.com:

Cannot see any other opportunities, or maybe I'm wrong, any ideas guys? It will be deployed as an autonomous service, yep? And than it will be able to communicate with each VM via what? Or maybe we don't need such a big framework as Play. Maybe REST API (Spray or Akka HTTP) exposed at each node + angular.js as an autonomous application?

— Reply to this email directly or view it on GitHub https://github.com/tilius/amazon-scala-paas/issues/2#issuecomment-96418029 .

BartoszJanota commented 9 years ago

I'm not familiar with and dont't want to learn :)!