From GAE to Cloudfoundry

I would like to know the main differences between CloudFoundry and the Google App Engine for a personal project.

I have a web application that currently runs on GAE, and I think to move it to CloudFoundry for various technical reasons.

I would like to use:

  • Spring MVC and Spring Security.
  • full implementation of JPA instead of DataNucleus.
  • mavenize my project correctly, I cannot get maven-gae-plugin to work.

Is CloudFoundry a good alternative to GAE in my case? What is the difficulty of migration?

thanks

+4
source share
2 answers

It should not be too difficult to port the application. http://blog.springsource.org/2011/11/10/using-cloud-foundry-services-with-spring-part-4-%E2%80%93-spring-profiles/ , and the entire series of articles contains many details on how to bind your Spring application to cloudfoundry data source.

http://blog.springsource.com/2011/09/22/rapid-cloud-foundry-deployments-with-maven/ contains information about the cloudfoundry maven plugin for deployment

To migrate the data, you can use the remote api http://code.google.com/appengine/docs/java/tools/remoteapi.html or bulkloader for export, then CloudFoundry Caldecott to import your data into CloudFoundry http: // blog. cloudfoundry.com/post/12928974099/now-you-can-tunnel-into-any-cloud-foundry-data-service

http://start.cloudfoundry.com/frameworks/java/spring/spring.html getting started with cloudfoundry for Spring is a good place to start learning how to deploy Spring applications for cloud services.

Hope this helps.

+3
source

I can only answer the maven part: see this for a working multi-module example: https://github.com/leanengine/LeanEngine-Server

you should use it as follows:

mvn gae:unpack // downloads GAE classes to your maven repo mvn clean install package cd lean-server-example mvn gae:execute // starts a local server 
0
source

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


All Articles