vaadin4spring icon indicating copy to clipboard operation
vaadin4spring copied to clipboard

Cloud support

Open peholmst opened this issue 11 years ago • 11 comments

Which cloud environments are we going to support out-of-the-box?

peholmst avatar Jan 31 '14 11:01 peholmst

I'd vote for Red Hat OpenShift, as they provide a time-unlimited free-of-charge paas, with support of en eclipse plugin to directly deploy a repository to their cloud. Full support for java, tomcat, jboss, postgresql etc.

I myself have deployed some demo applications successfully to openshift.

When it cames to paid services, Jelastic would be my preferred one.

membersound avatar May 12 '14 10:05 membersound

I think Heroku should be considered too. It was pretty easy to configure a vaadin4spring application in it.

matheusbodo avatar Aug 22 '14 13:08 matheusbodo

Would you like to share your experiences? Anything that could be changed in the add-on to make it even easier?

peholmst avatar Aug 22 '14 13:08 peholmst

In fact I don't think anything have to be changed in the add-on, since with spring-boot it's very easy to start the application on an embedded application server. All I had to do was to create 2 files on the root folder of my project.

File Procfile (to start embedded server on Heroku's designed port): web: java $JAVA_OPTS -Dserver.port=$PORT -jar target/artifact.war

File system.properties (to enable java 7 compiling): java.runtime.version=1.7

It was just a test application, so it's not very complex, but it worked like a charm.

One think that I can think that might help sometime in the future is to add support for storing the session data in memcached. There's a project here in Github that does that: https://github.com/nhurion/hello-vaadin-heroku.

matheusbodo avatar Aug 22 '14 14:08 matheusbodo

Thanks for the tip! But first, we need to get session data serialization to work with this add-on (currently it does not). It's planned in a future release, but I can't really say when it will happen.

peholmst avatar Aug 22 '14 18:08 peholmst

Why not start with spring-cloud ?

gjrtimmer avatar Feb 03 '15 07:02 gjrtimmer

Personally, I don't really care which cloud providers we are going to support. The more, the better! :-)

peholmst avatar Feb 03 '15 07:02 peholmst

spring-cloud fits for multiple providers. Vaadin based Micro UIs using spring-cloud is something I personally would like to see. Why I showed up actually, to see how/if it would work.

ccit-spence avatar Feb 03 '15 07:02 ccit-spence

I've never used spring-cloud myself, so if anybody is interesting to give it a go, then go ahead. Report any problems here, or try to fix them yourself. :-)

One potential problem with cloud deployment could be that the session is currently not serializable (see #154).

peholmst avatar Feb 03 '15 08:02 peholmst

I don't know anything about spring-session. Could that help? Something about spring-cloud is it relies more on oauth/tokens. Ideally every service is stateless. Should mention the service-bus "RabbitMQ" etc for passing information around in the backend.

ccit-spence avatar Feb 03 '15 08:02 ccit-spence

Currently I'm working with spring-boot, spring-cloud and vaadin4spring on a Cloud-Foundry environment. Seems everything is working except the session serialization problem #154 by using spring-session to store the sessions into a Redis server.

michahirsch avatar Feb 03 '15 12:02 michahirsch