Project

General

Profile

Does WT support deploying to application engines ?

Added by Or Goshen almost 4 years ago

Hi,

I was wondering whether it is possible to generate a deployable using WT that can be deployed to an application server such as Google Cloud Services (GCS) or Amazone Web Services (AWS) ?

How can one use WT if he doesnt own a server ?

Thanks,

Or


Replies (9)

RE: Does WT support deploying to application engines ? - Added by Roel Standaert almost 4 years ago

Well, I never tried Google's stuff before, but I know Amazon EC2 is basically just like a VPS. It's virtual machine instead of an actual physical server, but you can use it just like you would a normal Linux machine.

I think it's probably easiest to just build Wt and your application on an EC2 instance, and then deploy to an EC2 instance. I don't know about Google but it's probably similar. Do you develop on Linux yourself or is that the part you're not so familiar with?

What are you looking to get out of using those services?

RE: Does WT support deploying to application engines ? - Added by Or Goshen almost 4 years ago

I'm talking about a generic application server (like Google or Amazon or Microsoft) where you deploy a package to the cloud and they server it for you (including instance management).

This isnt a virtual host where you can access a shell and run stuff.

Backend usually written in Java or Go and such.

RE: Does WT support deploying to application engines ? - Added by Or Goshen almost 4 years ago

Or Goshen wrote:

I'm talking about a generic application server (like Google or Amazon or Microsoft) where you deploy a package to the cloud and they serve it for you (including instance management).

This isn't a virtual host where you can access a shell and run stuff.

Backend usually written in Java or Go and such.

RE: Does WT support deploying to application engines ? - Added by Roel Standaert almost 4 years ago

I don't have any experience uses those kinds of services, but I think those are quite limited in how you can write your applications? You have to program to whatever SDK they offer. I think in the case of Google you're talking about App Engine? I don't know what Amazon or Microsoft offer that's like that.

RE: Does WT support deploying to application engines ? - Added by Or Goshen almost 4 years ago

Let me ask a simpler question:

Is it possible to install an application that uses C WT on a server to which non dont have shell access ?

RE: Does WT support deploying to application engines ? - Added by Roel Standaert almost 4 years ago

Maybe? If it is somehow possible to run arbitrary binaries, and you can compile your application in a portable way? If it is possible, I don't think it will be very easy to make that work.

RE: Does WT support deploying to application engines ? - Added by Marco Craveiro almost 4 years ago

Hi,

I assume by "Google Cloud Services" you mean GCP. If so, there are several possible scenarios:

1. As Roel mentioned, there is nothing stopping you from running a plain VM in either GCP or AWS.

  1. You can make use of services such as GKE (managed kubernetes and docker in GCP) to deploy the Wt app. You need to first build it and package it on docker.
  2. You may even be able to run it as a lambda function (AWS) but I am not entirely sure what that would entail. Lambda is supported for C [1].

With regards to the simpler question, in GCP and AWS you create your own infrastructure so normally you can have root access to the machines you create. However, as Roel mentions, provided you have a binary you can run and access to the required ports, you should be able to run the application.

In general, there should be no reason why you cannot deploy a Wt application on GCP or AWS.

Cheers

Marco

[1] https://github.com/awslabs/aws-lambda-cpp

RE: Does WT support deploying to application engines ? - Added by Marco Craveiro almost 4 years ago

Him

I just noticed I missed the title where you specifically mention "app engines" [1] (in the GCP case GAE). I'm afraid I have no experience with GAE so I can only speculate. From looking at the restrictions, it seems pretty tricky; you would probably need a lot of experience with GAE and Wt to make it work. However, behind the scenes it appears to be Docker so it should be possible... For example, here's someone trying to run a simple C hello world in GAE [2].

[1] https://en.wikipedia.org/wiki/Google_App_Engine

[2] https://github.com/GoogleCloudPlatform/app-maven-plugin/issues/333

RE: Does WT support deploying to application engines ? - Added by Roel Standaert almost 4 years ago

Ah, if it's really just Docker-based, then yeah, of course Wt works in Docker.

    (1-9/9)