App Engine Services in a flexible environment?

How to use App Engine features with a flexible environment (formerly managed virtual machines)?

For example, my old application uses the Image API . How can I use this API in Fleixble?

App Engine Feature List: https://cloud.google.com/appengine/docs/about-the-standard-environment

Image API: https://cloud.google.com/appengine/docs/about-the-standard-environment#images

Compatible APIs API apps in a flexible environment: https://cloud.google.com/appengine/docs/flexible/java/migrating-an-existing-app

+5
source share
2 answers

When moving from standard to flexible, only a subset of the App Engine APIs will continue to work:

  • Datastore
  • registration
  • Memcache
  • Search
  • Task queue
  • URL Fetch
  • Users

For something like an image API, it was necessary in the App Engine standard, where including your own library was ... complicated. With flexibility, you should be able to import any image editing package that you like, and just use it instead of the proprietary API. For example, imgscalr might be a good option:

https://github.com/thebuzzmedia/imgscalr

Hope this helps!

+5
source

Justin Beckwith's answer was correct for a managed virtual machine (VM: true) using a compatibility runtime, but it was completely deprecated. (His answer was 100% correct when he wrote the answer.)

The new flexible application engine (env: flex) cannot use any of the standard library of application engines, so all of the above functions require minimal changes in your code and significant changes in some cases.

For example, the cloud storage API has been changed and you will need to update your code to reflect this. But if you used Objectify to access the data warehouse, then you really are going to write significant pieces of code. In addition, memcache is not currently supported.

+4
source

Source: https://habr.com/ru/post/1245753/


All Articles