29. Tester un nouvel outil !
$ vmc create-service
1. postgresql
2. mysql
3. rabbitmq
4. redis
5. mongodb
Please select one you wish to provision: 1
Creating Service [postgresql-9be7a]: OK
30. Support au niveau framework
<beans profile="default">
<jee:jndi-lookup id="dataSource"
jndi-name="java:comp/env/jdbc/myDs"/>
<mongo:mongo id="mongo"/>
<bean id="redisConnectionFactory"
class="o.s.d.k.redis.connection.jedis.JedisConnectionFactory"/>
</beans>
<beans profile="cloud">
<cloud:data-source id="dataSource" />
<cloud:mongo id="mongo"/>
<cloud:redis-connection-factory id="redisConnectionFactory"/>
</beans>
33. « Design for scale »
Elastic Pool
Sessions
Front End
Messaging Bus Ref Data
Elastic Pool
App Data
Back End
34. # create the front end and backend apps
# front end is small but multi‐instance
vmc push fe –instances 8 –mem 64M –path ../fe_code
vmc push be –instances 2 –mem 256M –path ../be_code
# create the services and bind per spec
vmc create‐service postgresql –name postgresql –bind fe
vmc create‐service mongodb –name mongo –bind be
vmc create‐service rabbit –name rabbit –bind fe
vmc create‐service redis –name redis –bind fe
vmc bind‐service rabbit be
# to perform an update of code
vmc update fe –path ../new_fe_code
vmc update be –path ../new_be_code