2. Dependencies must be explicit 3. Confg in environment 4. Backing services as attached resources 5. Build, release, run as separate stages 6. One or more stateless processes 7. Export services via port binding 8. Concurrency in Process over threads 9. Disposable with quick startup and graceful shutdown. 10. Keep development/test/production in parity 11. Treat logs as event streams 12. Admin/management tasks as one-of processes
EventServiceImpl to use the repository. • Add @Configuration extending AbstractCloudConfig to provide @Bean of type DataSource. • Add @Transactional to Controller to preserve the Stream
by extending AbstractCloudConfig. • Create @Bean for Queue. • Implement listener method with @RabbitListener that saves Event using repository. • Modify createEvent to send event to message queue using AmqpTemplate.
• Spring Cloud Services https://github.com/pivotal-cf/spring-cloud-services-cli-plu gin • Spring Cloud Data Flow for PCF https://github.com/pivotal-cf/spring-cloud-datafow-for-pcf -cli-plugin • Zero downtime deployments https://github.com/bluemixgaragelondon/cf-blue-green-de