AppEngine applications running on pypy - python

Is it possible to deploy python services on Google's AppEngine using pypy as runtime environment?
Being a JIT compiled implementation, and seeing its good use cases on web apps, it makes sense it could be integrated with App Engine.

I have found out that custom python environments can be created in Google AppEngine. These require only a Dockerfile defining the project.

Related

Is it possible to call matlab.engine from Flask webapp on Google Cloud?

I have a Flask app running in Google Cloud App Engine. I want the user to be able to call MATLAB functions on their local instance - if they have MATLAB installed locally and the correct license, of course.
Running locally the app works well using matlab.engine, however, when deployed to google cloud platform it fails during build. Looking in the logs:
ModuleNotFoundError: No module named 'matlabengineforpython3_7
So I suspect it is because the server cannot import the required dlls etc. for the python matlab engine package to work.
Is there a way to pass the required files to google app engine? Is this approach even possible?
My users will always have a local copy of MATLAB, so I am trying to find a solution that avoids needing to pay for the MATLAB server license.
I don't believe that any solution is possible that would avoid a Matlab server license. Your server cannot access installed Matlab on the computers of your users.
To install non-Python software with App Engine you need to use a custom runtime with App Engine Flexible. Check the GAE docs for more details.

Can I run Webpack in a Python app on Google Cloud Platform?

The tutorial for running Webpack on the Google Cloud Platform assumes a nodejs runtime. Is there a way to run it on an existing app that's running Python? I'd like to start sprinkling the app with some Webpack+ React love.
GAE allows your app to have multiple modules, and there is at least some support for having different modules use different languages, but I haven't tried it myself.
One important question is whether you are using the "Standard Environment" or the "Flexible Environment" for your app. Node.js is only supported on the Flexible Environment. See here.
So if you are able to use the Flexible Environment, it may be possible to have a single app with both Python and Node.js. I say "may" because GAE doesn't always support all combinations with its various features.

Deployment on Google App Engine - Django, Vagrant, Ansible

I want to deploy Django project on google app engine
Following are the current situations.
I have a code on GITHUB
Djnago project has setup using Vagrant, Ansible, VirtualBox
I am completely new for cloud base deployments.
Need help to achieve this.
I checked google docs but there are couple of options for django related deployment, I am not sure which to pick for vagrant and ansible.
Your question is a bit too generic as it stands - making it here rather than comment for clarity.
If you're talking about deploying to GAE (Google App Engine) then most likely you cannot re-use your Ansible scripts as you've been writing for vagrant. As it may be possible to use Ansible to deploy on GAE, most people I know are using standard google procedure to deploy their app.
If you plan to use GCE (Google Compute Engine, a layer down in the infrastructure), you would be able to use your existing Ansible provisioning scripts (maybe with slight modification), follow along the Ansible documentation

Will Robohash run as a python app at App Engine?

We have a need for Robohashes that never change and are very secure and reliable. This is perfect for a Google app where it can be monitored, run over SSL and be extremely reliable.
I really don't have much python experience. Would someone please give a mile-high view? Would it be easy to host Robohash as a python app at the App Engine?
requirements.txt
pillow <- not supported
tornado <- looks like it will work
Are there other challenges, like say how files are accessed? Java in the appengine couldn't not read the file system last I checked it had to use resources. Do you think it will be worth-while for me to pursue?
This is the version we need: https://github.com/BitShares/Robohash
I'm afraid that won't work directly as an application deployed to the standard Google App Engine (GAE) runtime.
There is a way to add third party modules to your GAE app, and it would probably work with pillow, but not with Tornado as it would collide with the webapp2 web framework used by GAE.
Having said that, there are good news for you.
You could use Managed VMs that are in the middle of deploying only your application and of having your own virtual instance where you install everything.
With managed VMs you could build your custom runtime with exactly what you need.

Which programming language to use with Heroku?

Heroku supports Python/Ruby and I believe now or soon Java.
However it was built to run Rails apps in the cloud using active record...
Is Ruby/Rails better supported, more feature complete or stable for Heroku hosted development or is the architecture advanced enough that all offerings are equally weighted?
Personally I had some problems with Scala on Heroku, mostly due to outdated sbt plugins. Not sure how Java fairs in that regard. However, if you are looking for a Heroku-like Java environment, you can't do better than CloudBees, which is what I'm using for my Scala stuff now. You can get up to 5 apps for free, so maybe have a look at that.

Categories

Resources