├── hystrix-dashboard-server ├── .gitignore ├── eureka-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ └── EurekaServiceApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── socialmedia │ │ │ └── EurekaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── svca-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── SvcAServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── svcb-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── SvcBServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ └── .mvn │ │ └── wrapper │ │ └── maven-wrapper.properties ├── zuul-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── config │ │ │ │ └── ZuulConfiguration.java │ │ │ │ ├── ZuulProxyClientApplication.java │ │ │ │ └── controller │ │ │ │ └── SocialProfileApiGatewayController.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── socialmedia │ │ │ └── SocialProfileClientApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── hystrix-dashboard │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── socialmedia │ │ │ │ └── HystrixDashboardApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── socialmedia │ │ │ └── HystrixDashboardApplicationTests.java │ ├── target │ │ └── classes │ │ │ ├── bootstrap.properties │ │ │ └── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── maven │ │ │ └── com.josedab.socialmedia │ │ │ └── hystrix-dashboard │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── configuration-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ ├── application.properties │ │ │ │ └── config │ │ │ │ │ ├── hystrix-dashboard.properties │ │ │ │ │ ├── eureka-service.properties │ │ │ │ │ ├── svca-service.properties │ │ │ │ │ ├── svcb-service.properties │ │ │ │ │ └── zuul-service.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ └── ConfigurationServiceApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── ConfigurationServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml └── README.md ├── zuul-proxy ├── svca-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── SvcAServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── svcb-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── SvcBServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── zuul-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── config │ │ │ │ └── ZuulConfiguration.java │ │ │ │ ├── ZuulProxyClientApplication.java │ │ │ │ └── controller │ │ │ │ └── SocialProfileApiGatewayController.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── socialmedia │ │ │ └── SocialProfileClientApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── eureka-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ └── EurekaServiceApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── socialmedia │ │ │ └── EurekaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── configuration-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ ├── application.properties │ │ │ │ └── config │ │ │ │ │ ├── eureka-service.properties │ │ │ │ │ ├── svca-service.properties │ │ │ │ │ ├── svcb-service.properties │ │ │ │ │ └── zuul-service.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ └── ConfigurationServiceApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── ConfigurationServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml └── README.md ├── config-provider ├── svca-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── SocialProfileServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── svcb-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── SocialProfileServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── configuration-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ ├── application.properties │ │ │ │ └── config │ │ │ │ │ ├── svca-service.properties │ │ │ │ │ └── svcb-service.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ └── ConfigurationServiceApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── ConfigurationServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml └── README.md ├── service-registry ├── svca-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── SocialProfileServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── svcb-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── SocialProfileServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── eureka-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ └── EurekaServiceApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── socialmedia │ │ │ └── EurekaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── configuration-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ ├── application.properties │ │ │ │ └── config │ │ │ │ │ ├── eureka-service.properties │ │ │ │ │ ├── svca-service.properties │ │ │ │ │ └── svcb-service.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ └── ConfigurationServiceApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── ConfigurationServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml └── README.md ├── zuul-proxy-cloud-bus ├── svca-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── SvcAServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ ├── processor │ │ │ │ └── SocialProfileProcessor.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ └── .mvn │ │ └── wrapper │ │ └── maven-wrapper.properties ├── svcb-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── SvcBServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ ├── processor │ │ │ │ └── SocialProfileProcessor.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ └── .mvn │ │ └── wrapper │ │ └── maven-wrapper.properties ├── zuul-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── config │ │ │ │ └── ZuulConfiguration.java │ │ │ │ └── ZuulProxyClientApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── socialmedia │ │ │ └── ZuulProxyClientApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── eureka-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ └── EurekaServiceApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── socialmedia │ │ │ └── EurekaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── configuration-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ ├── application.properties │ │ │ │ └── config │ │ │ │ │ ├── eureka-service.properties │ │ │ │ │ ├── svca-service.properties │ │ │ │ │ ├── svcb-service.properties │ │ │ │ │ └── zuul-service.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ └── ConfigurationServiceApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── ConfigurationServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml └── README.md ├── zipkin-distributed-tracing ├── svca-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── config │ │ │ │ └── SvcaServiceConfiguration.java │ │ │ │ ├── SvcAServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ └── .mvn │ │ └── wrapper │ │ └── maven-wrapper.properties ├── svcb-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── config │ │ │ │ └── SvcbServiceConfiguration.java │ │ │ │ ├── SvcBServiceApplication.java │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── controller │ │ │ │ └── ServiceInfoController.java │ │ │ │ ├── repository │ │ │ │ └── SocialProfileRepository.java │ │ │ │ └── clr │ │ │ │ └── SocialProfileClr.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── SocialMediaServiceApplicationTests.java │ └── .mvn │ │ └── wrapper │ │ └── maven-wrapper.properties ├── zuul-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ ├── model │ │ │ │ └── SocialProfile.java │ │ │ │ ├── ZuulProxyClientApplication.java │ │ │ │ ├── config │ │ │ │ └── ZuulServiceConfiguration.java │ │ │ │ └── controller │ │ │ │ └── SocialProfileApiGatewayController.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── socialmedia │ │ │ └── SocialProfileClientApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── eureka-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ └── EurekaServiceApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── socialmedia │ │ │ └── EurekaServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── configuration-service │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ ├── application.properties │ │ │ │ └── config │ │ │ │ │ ├── zipkin-server.properties │ │ │ │ │ ├── eureka-service.properties │ │ │ │ │ ├── svca-service.properties │ │ │ │ │ ├── svcb-service.properties │ │ │ │ │ └── zuul-service.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── example │ │ │ │ └── ConfigurationServiceApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── example │ │ │ └── ConfigurationServiceApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml ├── zipkin-server │ ├── src │ │ ├── main │ │ │ ├── resources │ │ │ │ └── bootstrap.properties │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── josedab │ │ │ │ └── zipkin │ │ │ │ └── ZipkinServerApplication.java │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── josedab │ │ │ └── zipkin │ │ │ └── ZipkinServerApplicationTests.java │ ├── .mvn │ │ └── wrapper │ │ │ └── maven-wrapper.properties │ └── pom.xml └── README.md ├── .gitignore ├── LICENSE └── README.md /hystrix-dashboard-server/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | -------------------------------------------------------------------------------- /zuul-proxy/svca-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zuul-proxy/svcb-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zuul-proxy/zuul-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /config-provider/svca-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /config-provider/svcb-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /service-registry/svca-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /service-registry/svcb-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zuul-proxy/eureka-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /service-registry/eureka-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svca-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svcb-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/zuul-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zuul-proxy/configuration-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /config-provider/configuration-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/eureka-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svca-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svcb-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/zuul-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /service-registry/configuration-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svca-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svcb-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zuul-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/eureka-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/hystrix-dashboard/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/eureka-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/configuration-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/configuration-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/configuration-service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /zuul-proxy/configuration-service/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.profiles.active=native 2 | server.port=8888 -------------------------------------------------------------------------------- /config-provider/configuration-service/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.profiles.active=native 2 | server.port=8888 -------------------------------------------------------------------------------- /service-registry/configuration-service/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.profiles.active=native 2 | server.port=8888 -------------------------------------------------------------------------------- /hystrix-dashboard-server/configuration-service/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.profiles.active=native 2 | server.port=8888 -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/configuration-service/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.profiles.active=native 2 | server.port=8888 -------------------------------------------------------------------------------- /zipkin-distributed-tracing/configuration-service/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.profiles.active=native 2 | server.port=8888 -------------------------------------------------------------------------------- /zuul-proxy/configuration-service/src/main/resources/config/eureka-service.properties: -------------------------------------------------------------------------------- 1 | server.port:${PORT:8761} 2 | name:Eureka Service registry -------------------------------------------------------------------------------- /config-provider/configuration-service/src/main/resources/config/svca-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:5000} 2 | name=Service A - Microservice -------------------------------------------------------------------------------- /config-provider/configuration-service/src/main/resources/config/svcb-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:7000} 2 | name=Service B - Microservice -------------------------------------------------------------------------------- /service-registry/configuration-service/src/main/resources/config/eureka-service.properties: -------------------------------------------------------------------------------- 1 | server.port:${PORT:8761} 2 | name:Eureka Service registry -------------------------------------------------------------------------------- /service-registry/configuration-service/src/main/resources/config/svca-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:5000} 2 | name=Service A - Microservice -------------------------------------------------------------------------------- /service-registry/configuration-service/src/main/resources/config/svcb-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:7000} 2 | name=Service B - Microservice -------------------------------------------------------------------------------- /hystrix-dashboard-server/configuration-service/src/main/resources/config/hystrix-dashboard.properties: -------------------------------------------------------------------------------- 1 | server.port:${PORT:9010} 2 | name:Hystrix dashboard -------------------------------------------------------------------------------- /zipkin-distributed-tracing/configuration-service/src/main/resources/config/zipkin-server.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:9411} 2 | name=Zipkin Stream Server -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/configuration-service/src/main/resources/config/eureka-service.properties: -------------------------------------------------------------------------------- 1 | server.port:${PORT:8761} 2 | name:Eureka Service registry -------------------------------------------------------------------------------- /zuul-proxy/eureka-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=eureka-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zuul-proxy/svca-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svca-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zuul-proxy/svcb-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svcb-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zuul-proxy/zuul-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=zuul-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /config-provider/svca-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svca-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /config-provider/svcb-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svcb-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /hystrix-dashboard-server/configuration-service/src/main/resources/config/eureka-service.properties: -------------------------------------------------------------------------------- 1 | server.port:${PORT:8761} 2 | name:Eureka Service registry -------------------------------------------------------------------------------- /service-registry/svca-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svca-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /service-registry/svcb-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svcb-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zipkin-distributed-tracing/configuration-service/src/main/resources/config/eureka-service.properties: -------------------------------------------------------------------------------- 1 | server.port:${PORT:8761} 2 | name:Eureka Service registry -------------------------------------------------------------------------------- /hystrix-dashboard-server/svca-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svca-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /hystrix-dashboard-server/svcb-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svcb-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /hystrix-dashboard-server/zuul-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=zuul-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /service-registry/eureka-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=eureka-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/eureka-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=eureka-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svca-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svca-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svcb-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svcb-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/zuul-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=zuul-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /hystrix-dashboard-server/eureka-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=eureka-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svca-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svca-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svcb-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=svcb-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zipkin-server/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=zipkin-server 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zuul-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=zuul-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /hystrix-dashboard-server/hystrix-dashboard/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=hystrix-dashboard 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /hystrix-dashboard-server/hystrix-dashboard/target/classes/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=hystrix-dashboard 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zipkin-distributed-tracing/eureka-service/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=eureka-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /zuul-proxy/eureka-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zuul-proxy/svca-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zuul-proxy/svcb-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zuul-proxy/zuul-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /config-provider/svca-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /config-provider/svcb-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /service-registry/eureka-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /service-registry/svca-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /service-registry/svcb-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/eureka-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svca-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svcb-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/zuul-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zuul-proxy/configuration-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /config-provider/configuration-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /hystrix-dashboard-server/eureka-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /hystrix-dashboard-server/svca-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /hystrix-dashboard-server/svcb-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /hystrix-dashboard-server/zuul-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /service-registry/configuration-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zipkin-distributed-tracing/eureka-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svca-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svcb-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zipkin-server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zuul-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zuul-proxy/configuration-service/src/main/resources/config/svca-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:5000} 2 | name=Service A - Microservice 3 | spring.cloud.stream.bindings.input:profiles -------------------------------------------------------------------------------- /zuul-proxy/configuration-service/src/main/resources/config/svcb-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:7000} 2 | name=Service B - Microservice 3 | spring.cloud.stream.bindings.input:profiles -------------------------------------------------------------------------------- /hystrix-dashboard-server/configuration-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /hystrix-dashboard-server/hystrix-dashboard/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/configuration-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /zipkin-distributed-tracing/configuration-service/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /hystrix-dashboard-server/configuration-service/src/main/resources/config/svca-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:5000} 2 | name=Service A - Microservice 3 | spring.cloud.stream.bindings.input:profiles -------------------------------------------------------------------------------- /hystrix-dashboard-server/configuration-service/src/main/resources/config/svcb-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:7000} 2 | name=Service B - Microservice 3 | spring.cloud.stream.bindings.input:profiles -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/configuration-service/src/main/resources/config/svca-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:5000} 2 | name=Service A - Microservice 3 | spring.cloud.stream.bindings.input.destination:profiles -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/configuration-service/src/main/resources/config/svcb-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:7000} 2 | name=Service B - Microservice 3 | spring.cloud.stream.bindings.input.destination:profiles -------------------------------------------------------------------------------- /zuul-proxy/configuration-service/src/main/resources/config/zuul-service.properties: -------------------------------------------------------------------------------- 1 | server.port:${PORT:9000} 2 | name:Zuul proxy 3 | spring.cloud.stream.bindings.output:profiles 4 | hystrix.command.default.execution.isolation.strategy:SEMAPHORE -------------------------------------------------------------------------------- /hystrix-dashboard-server/configuration-service/src/main/resources/config/zuul-service.properties: -------------------------------------------------------------------------------- 1 | server.port:${PORT:9000} 2 | name:Zuul proxy 3 | spring.cloud.stream.bindings.output:profiles 4 | hystrix.command.default.execution.isolation.strategy:SEMAPHORE -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/configuration-service/src/main/resources/config/zuul-service.properties: -------------------------------------------------------------------------------- 1 | server.port:${PORT:9000} 2 | name:Zuul proxy 3 | spring.cloud.stream.bindings.output.destination:profiles 4 | hystrix.command.default.execution.isolation.strategy:SEMAPHORE -------------------------------------------------------------------------------- /zuul-proxy/zuul-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | public class SocialProfile { 4 | private String name; 5 | 6 | public String getName() { 7 | return name; 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/zuul-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | public class SocialProfile { 4 | private String name; 5 | 6 | public String getName() { 7 | return name; 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/zuul-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | public class SocialProfile { 4 | private String name; 5 | 6 | public String getName() { 7 | return name; 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/configuration-service/src/main/resources/config/svca-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:5000} 2 | name=Service A - Microservice 3 | logging.pattern.console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [trace=%X{X-Trace-Id:-},span=%X{X-Span-Id:-}] [%15.15t] %-40.40logger{39}: %m%n' 4 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/configuration-service/src/main/resources/config/svcb-service.properties: -------------------------------------------------------------------------------- 1 | server.port=${PORT:7000} 2 | name=Service B - Microservice 3 | logging.pattern.console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [trace=%X{X-Trace-Id:-},span=%X{X-Span-Id:-}] [%15.15t] %-40.40logger{39}: %m%n' 4 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zuul-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | public class SocialProfile { 4 | private String name; 5 | 6 | public String getName() { 7 | return name; 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/configuration-service/src/main/resources/config/zuul-service.properties: -------------------------------------------------------------------------------- 1 | server.port:${PORT:9000} 2 | name:Zuul proxy 3 | hystrix.command.default.execution.isolation.strategy:SEMAPHORE 4 | logging.pattern.console: '%d{yyyy-MM-dd HH:mm:ss.SSS} [trace=%X{X-Trace-Id:-},span=%X{X-Span-Id:-}] [%15.15t] %-40.40logger{39}: %m%n' 5 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/hystrix-dashboard/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Implementation-Title: hystrix-dashboard 3 | Implementation-Version: 0.0.1-SNAPSHOT 4 | Built-By: jbaena 5 | Implementation-Vendor-Id: com.josedab.socialmedia 6 | Build-Jdk: 1.8.0_72 7 | Created-By: Maven Integration for Eclipse 8 | Implementation-Vendor: Pivotal Software, Inc. 9 | 10 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/hystrix-dashboard/target/classes/META-INF/maven/com.josedab.socialmedia/hystrix-dashboard/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon Feb 15 12:59:36 PST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=com.josedab.socialmedia 5 | m2e.projectName=hystrix-dashboard 6 | m2e.projectLocation=/Users/jbaena/Code/personal/spring-cloud-microservices-showcase/hystrix-dashboard 7 | artifactId=hystrix-dashboard 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Mobile Tools for Java (J2ME) 4 | .mtj.tmp/ 5 | 6 | # Package Files # 7 | *.jar 8 | *.war 9 | *.ear 10 | 11 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 12 | hs_err_pid* 13 | 14 | ### Maven ### 15 | target/ 16 | pom.xml.tag 17 | pom.xml.releaseBackup 18 | pom.xml.versionsBackup 19 | pom.xml.next 20 | release.properties 21 | dependency-reduced-pom.xml 22 | buildNumber.properties 23 | .mvn/timing.properties 24 | 25 | 26 | -------------------------------------------------------------------------------- /config-provider/svca-service/src/main/java/com/josedab/example/SocialProfileServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SocialProfileServiceApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SocialProfileServiceApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /config-provider/svcb-service/src/main/java/com/josedab/example/SocialProfileServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SocialProfileServiceApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SocialProfileServiceApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /zuul-proxy/zuul-service/src/main/java/com/josedab/example/config/ZuulConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.config; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.client.RestTemplate; 6 | 7 | @Configuration 8 | public class ZuulConfiguration { 9 | 10 | @Bean 11 | public RestTemplate defaultRestTemplate() { 12 | return new RestTemplate(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/zuul-service/src/main/java/com/josedab/example/config/ZuulConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.config; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.client.RestTemplate; 6 | 7 | @Configuration 8 | public class ZuulConfiguration { 9 | 10 | @Bean 11 | public RestTemplate defaultRestTemplate() { 12 | return new RestTemplate(); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svca-service/src/main/java/com/josedab/example/config/SvcaServiceConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.config; 2 | 3 | import org.springframework.cloud.sleuth.sampler.AlwaysSampler; 4 | import org.springframework.context.annotation.Bean; 5 | import org.springframework.context.annotation.Configuration; 6 | 7 | @Configuration 8 | public class SvcaServiceConfiguration { 9 | 10 | @Bean 11 | public AlwaysSampler defaultSampler() { 12 | return new AlwaysSampler(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svcb-service/src/main/java/com/josedab/example/config/SvcbServiceConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.config; 2 | 3 | import org.springframework.cloud.sleuth.sampler.AlwaysSampler; 4 | import org.springframework.context.annotation.Bean; 5 | import org.springframework.context.annotation.Configuration; 6 | 7 | @Configuration 8 | public class SvcbServiceConfiguration { 9 | 10 | @Bean 11 | public AlwaysSampler defaultSampler() { 12 | return new AlwaysSampler(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zuul-proxy/eureka-service/src/main/java/com/josedab/example/EurekaServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @EnableEurekaServer 8 | @SpringBootApplication 9 | public class EurekaServiceApplication { 10 | public static void main(String[] args) { 11 | SpringApplication.run(EurekaServiceApplication.class, args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /zuul-proxy/svca-service/src/main/java/com/josedab/example/SvcAServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @EnableDiscoveryClient 8 | @SpringBootApplication 9 | public class SvcAServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SvcAServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zuul-proxy/svcb-service/src/main/java/com/josedab/example/SvcBServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @EnableDiscoveryClient 8 | @SpringBootApplication 9 | public class SvcBServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SvcBServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /service-registry/eureka-service/src/main/java/com/josedab/example/EurekaServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @EnableEurekaServer 8 | @SpringBootApplication 9 | public class EurekaServiceApplication { 10 | public static void main(String[] args) { 11 | SpringApplication.run(EurekaServiceApplication.class, args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/eureka-service/src/main/java/com/josedab/example/EurekaServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @EnableEurekaServer 8 | @SpringBootApplication 9 | public class EurekaServiceApplication { 10 | public static void main(String[] args) { 11 | SpringApplication.run(EurekaServiceApplication.class, args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svca-service/src/main/java/com/josedab/example/SvcAServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @EnableDiscoveryClient 8 | @SpringBootApplication 9 | public class SvcAServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SvcAServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svcb-service/src/main/java/com/josedab/example/SvcBServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @EnableDiscoveryClient 8 | @SpringBootApplication 9 | public class SvcBServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SvcBServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/eureka-service/src/main/java/com/josedab/example/EurekaServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @EnableEurekaServer 8 | @SpringBootApplication 9 | public class EurekaServiceApplication { 10 | public static void main(String[] args) { 11 | SpringApplication.run(EurekaServiceApplication.class, args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svca-service/src/main/java/com/josedab/example/SvcAServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @EnableDiscoveryClient 8 | @SpringBootApplication 9 | public class SvcAServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SvcAServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svcb-service/src/main/java/com/josedab/example/SvcBServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @EnableDiscoveryClient 8 | @SpringBootApplication 9 | public class SvcBServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SvcBServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/eureka-service/src/main/java/com/josedab/example/EurekaServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @EnableEurekaServer 8 | @SpringBootApplication 9 | public class EurekaServiceApplication { 10 | public static void main(String[] args) { 11 | SpringApplication.run(EurekaServiceApplication.class, args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svca-service/src/main/java/com/josedab/example/SvcAServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @EnableDiscoveryClient 8 | @SpringBootApplication 9 | public class SvcAServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SvcAServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svcb-service/src/main/java/com/josedab/example/SvcBServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @EnableDiscoveryClient 8 | @SpringBootApplication 9 | public class SvcBServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SvcBServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zuul-proxy/configuration-service/src/main/java/com/josedab/example/ConfigurationServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.config.server.EnableConfigServer; 6 | 7 | @EnableConfigServer 8 | @SpringBootApplication 9 | public class ConfigurationServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ConfigurationServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /config-provider/configuration-service/src/main/java/com/josedab/example/ConfigurationServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.config.server.EnableConfigServer; 6 | 7 | @EnableConfigServer 8 | @SpringBootApplication 9 | public class ConfigurationServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ConfigurationServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /service-registry/configuration-service/src/main/java/com/josedab/example/ConfigurationServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.config.server.EnableConfigServer; 6 | 7 | @EnableConfigServer 8 | @SpringBootApplication 9 | public class ConfigurationServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ConfigurationServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zipkin-server/src/main/java/com/josedab/zipkin/ZipkinServerApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.zipkin; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.sleuth.zipkin.stream.EnableZipkinStreamServer; 6 | 7 | @EnableZipkinStreamServer 8 | @SpringBootApplication 9 | public class ZipkinServerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ZipkinServerApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/configuration-service/src/main/java/com/josedab/example/ConfigurationServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.config.server.EnableConfigServer; 6 | 7 | @EnableConfigServer 8 | @SpringBootApplication 9 | public class ConfigurationServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ConfigurationServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/configuration-service/src/main/java/com/josedab/example/ConfigurationServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.config.server.EnableConfigServer; 6 | 7 | @EnableConfigServer 8 | @SpringBootApplication 9 | public class ConfigurationServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ConfigurationServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /service-registry/svca-service/src/main/java/com/josedab/example/SocialProfileServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @EnableDiscoveryClient 8 | @SpringBootApplication 9 | public class SocialProfileServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SocialProfileServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /service-registry/svcb-service/src/main/java/com/josedab/example/SocialProfileServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @EnableDiscoveryClient 8 | @SpringBootApplication 9 | public class SocialProfileServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(SocialProfileServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/configuration-service/src/main/java/com/josedab/example/ConfigurationServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.config.server.EnableConfigServer; 6 | 7 | @EnableConfigServer 8 | @SpringBootApplication 9 | public class ConfigurationServiceApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ConfigurationServiceApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zipkin-server/src/test/java/com/josedab/zipkin/ZipkinServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.zipkin; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringApplicationConfiguration(classes = ZipkinServerApplication.class) 10 | public class ZipkinServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/zuul-service/src/main/java/com/josedab/example/config/ZuulConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.config; 2 | 3 | import org.springframework.cloud.client.loadbalancer.LoadBalanced; 4 | import org.springframework.context.annotation.Bean; 5 | import org.springframework.context.annotation.Configuration; 6 | import org.springframework.web.client.RestTemplate; 7 | 8 | @Configuration 9 | public class ZuulConfiguration { 10 | 11 | @LoadBalanced 12 | @Bean 13 | public RestTemplate defaultRestTemplate() { 14 | return new RestTemplate(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/hystrix-dashboard/src/main/java/com/josedab/socialmedia/HystrixDashboardApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.socialmedia; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard; 6 | 7 | @EnableHystrixDashboard 8 | @SpringBootApplication 9 | public class HystrixDashboardApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(HystrixDashboardApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /zuul-proxy/configuration-service/src/test/java/com/josedab/example/ConfigurationServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringApplicationConfiguration(classes = ConfigurationServiceApplication.class) 10 | public class ConfigurationServiceApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /config-provider/configuration-service/src/test/java/com/josedab/example/ConfigurationServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringApplicationConfiguration(classes = ConfigurationServiceApplication.class) 10 | public class ConfigurationServiceApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/hystrix-dashboard/src/test/java/com/josedab/socialmedia/HystrixDashboardApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.socialmedia; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringApplicationConfiguration(classes = HystrixDashboardApplication.class) 10 | public class HystrixDashboardApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /service-registry/configuration-service/src/test/java/com/josedab/example/ConfigurationServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringApplicationConfiguration(classes = ConfigurationServiceApplication.class) 10 | public class ConfigurationServiceApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/configuration-service/src/test/java/com/josedab/example/ConfigurationServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringApplicationConfiguration(classes = ConfigurationServiceApplication.class) 10 | public class ConfigurationServiceApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/configuration-service/src/test/java/com/josedab/example/ConfigurationServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringApplicationConfiguration(classes = ConfigurationServiceApplication.class) 10 | public class ConfigurationServiceApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/configuration-service/src/test/java/com/josedab/example/ConfigurationServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringApplicationConfiguration(classes = ConfigurationServiceApplication.class) 10 | public class ConfigurationServiceApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /zuul-proxy/eureka-service/src/test/java/com/josedab/socialmedia/EurekaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.socialmedia; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.josedab.example.EurekaServiceApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = EurekaServiceApplication.class) 12 | public class EurekaServiceApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /service-registry/eureka-service/src/test/java/com/josedab/socialmedia/EurekaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.socialmedia; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.josedab.example.EurekaServiceApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = EurekaServiceApplication.class) 12 | public class EurekaServiceApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/eureka-service/src/test/java/com/josedab/socialmedia/EurekaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.socialmedia; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.josedab.example.EurekaServiceApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = EurekaServiceApplication.class) 12 | public class EurekaServiceApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/eureka-service/src/test/java/com/josedab/socialmedia/EurekaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.socialmedia; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.josedab.example.EurekaServiceApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = EurekaServiceApplication.class) 12 | public class EurekaServiceApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /zuul-proxy/zuul-service/src/test/java/com/josedab/socialmedia/SocialProfileClientApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.socialmedia; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.josedab.example.ZuulProxyClientApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = ZuulProxyClientApplication.class) 12 | public class SocialProfileClientApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/eureka-service/src/test/java/com/josedab/socialmedia/EurekaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.socialmedia; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.josedab.example.EurekaServiceApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = EurekaServiceApplication.class) 12 | public class EurekaServiceApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/zuul-service/src/test/java/com/josedab/socialmedia/SocialProfileClientApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.socialmedia; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.josedab.example.ZuulProxyClientApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = ZuulProxyClientApplication.class) 12 | public class SocialProfileClientApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zuul-service/src/test/java/com/josedab/socialmedia/SocialProfileClientApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.socialmedia; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.josedab.example.ZuulProxyClientApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = ZuulProxyClientApplication.class) 12 | public class SocialProfileClientApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /zuul-proxy/svca-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /zuul-proxy/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /config-provider/svca-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /config-provider/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /service-registry/svca-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /service-registry/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/zuul-service/src/test/java/com/josedab/socialmedia/ZuulProxyClientApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.socialmedia; 2 | 3 | import org.junit.Ignore; 4 | import org.junit.Test; 5 | import org.junit.runner.RunWith; 6 | import org.springframework.boot.test.SpringApplicationConfiguration; 7 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 8 | 9 | import com.josedab.example.ZuulProxyClientApplication; 10 | 11 | @RunWith(SpringJUnit4ClassRunner.class) 12 | @SpringApplicationConfiguration(classes = ZuulProxyClientApplication.class) 13 | public class ZuulProxyClientApplicationTests { 14 | 15 | @Ignore 16 | @Test 17 | public void contextLoads() { 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /zuul-proxy/svca-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /zuul-proxy/svcb-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /config-provider/svca-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /config-provider/svcb-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svca-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /service-registry/svca-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /service-registry/svcb-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svca-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svca-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svcb-service/src/main/java/com/josedab/example/model/SocialProfile.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | @Entity 8 | public class SocialProfile { 9 | 10 | @Id 11 | @GeneratedValue 12 | private Long id; 13 | private String name; 14 | 15 | public SocialProfile() {} 16 | 17 | public SocialProfile(String name) { 18 | this.name = name; 19 | } 20 | 21 | public String getName() { 22 | return name; 23 | } 24 | 25 | public void setName(String name) { 26 | this.name = name; 27 | } 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svca-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svcb-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svca-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svcb-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svca-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svcb-service/src/main/java/com/josedab/example/controller/ServiceInfoController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Value; 4 | import org.springframework.cloud.context.config.annotation.RefreshScope; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | @RefreshScope 9 | @RestController 10 | public class ServiceInfoController { 11 | 12 | @Value("${name}") 13 | private String serviceName; 14 | 15 | @RequestMapping("/info/name") 16 | public String getInfo(){ 17 | return this.serviceName; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /zuul-proxy/svca-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /zuul-proxy/svca-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SvcAServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SvcAServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /zuul-proxy/svcb-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /zuul-proxy/svcb-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SvcBServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SvcBServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /config-provider/svca-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /config-provider/svcb-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /service-registry/svca-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /service-registry/svcb-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svca-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svca-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SvcAServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SvcAServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svcb-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svcb-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SvcBServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SvcBServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svca-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svca-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SvcAServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SvcAServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svcb-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svcb-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SvcBServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SvcBServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svca-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svca-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SvcAServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SvcAServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svcb-service/src/main/java/com/josedab/example/repository/SocialProfileRepository.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.repository; 2 | 3 | import java.util.Collection; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.repository.query.Param; 7 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 8 | import org.springframework.data.rest.core.annotation.RestResource; 9 | 10 | import com.josedab.example.model.SocialProfile; 11 | 12 | @RepositoryRestResource 13 | public interface SocialProfileRepository extends JpaRepository { 14 | @RestResource(path="by-name") 15 | Collection findByName(@Param("name") String name); 16 | } 17 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svcb-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SvcBServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SvcBServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /zuul-proxy/zuul-service/src/main/java/com/josedab/example/ZuulProxyClientApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; 6 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 7 | import org.springframework.cloud.netflix.zuul.EnableZuulProxy; 8 | 9 | @EnableCircuitBreaker 10 | @EnableZuulProxy 11 | @EnableDiscoveryClient 12 | @SpringBootApplication 13 | public class ZuulProxyClientApplication { 14 | 15 | public static void main(String[] args) { 16 | SpringApplication.run(ZuulProxyClientApplication.class, args); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /config-provider/svca-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SocialProfileServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SocialProfileServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /config-provider/svcb-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SocialProfileServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SocialProfileServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /service-registry/svca-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SocialProfileServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SocialProfileServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /service-registry/svcb-service/src/test/java/com/josedab/example/SocialMediaServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.josedab.example.SocialProfileServiceApplication; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = SocialProfileServiceApplication.class) 14 | @WebAppConfiguration 15 | public class SocialMediaServiceApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zuul-service/src/main/java/com/josedab/example/ZuulProxyClientApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; 6 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 7 | import org.springframework.cloud.netflix.zuul.EnableZuulProxy; 8 | 9 | @EnableCircuitBreaker 10 | @EnableZuulProxy 11 | @EnableDiscoveryClient 12 | @SpringBootApplication 13 | public class ZuulProxyClientApplication { 14 | 15 | public static void main(String[] args) { 16 | SpringApplication.run(ZuulProxyClientApplication.class, args); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zuul-service/src/main/java/com/josedab/example/config/ZuulServiceConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.config; 2 | 3 | import org.springframework.cloud.client.loadbalancer.LoadBalanced; 4 | import org.springframework.cloud.sleuth.sampler.AlwaysSampler; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.context.annotation.Configuration; 7 | import org.springframework.web.client.RestTemplate; 8 | 9 | @Configuration 10 | public class ZuulServiceConfiguration { 11 | 12 | @LoadBalanced 13 | @Bean 14 | public RestTemplate restTemplate() { 15 | return new RestTemplate(); 16 | } 17 | 18 | @Bean 19 | public AlwaysSampler defaultSampler() { 20 | return new AlwaysSampler(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/zuul-service/src/main/java/com/josedab/example/ZuulProxyClientApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; 6 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 7 | import org.springframework.cloud.netflix.zuul.EnableZuulProxy; 8 | import org.springframework.context.annotation.Bean; 9 | import org.springframework.web.client.RestTemplate; 10 | 11 | @EnableCircuitBreaker 12 | @EnableZuulProxy 13 | @EnableDiscoveryClient 14 | @SpringBootApplication 15 | public class ZuulProxyClientApplication { 16 | 17 | public static void main(String[] args) { 18 | SpringApplication.run(ZuulProxyClientApplication.class, args); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svcb-service/src/main/java/com/josedab/example/processor/SocialProfileProcessor.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.processor; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.cloud.stream.messaging.Sink; 5 | import org.springframework.integration.annotation.MessageEndpoint; 6 | import org.springframework.integration.annotation.ServiceActivator; 7 | 8 | import com.josedab.example.model.SocialProfile; 9 | import com.josedab.example.repository.SocialProfileRepository; 10 | 11 | @MessageEndpoint 12 | public class SocialProfileProcessor { 13 | 14 | @Autowired 15 | private SocialProfileRepository socialProfileRepository; 16 | 17 | @ServiceActivator(inputChannel = Sink.INPUT) 18 | public void acceptNewProfiles(String profileName) { 19 | socialProfileRepository.save(new SocialProfile(profileName)); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/zuul-service/src/main/java/com/josedab/example/ZuulProxyClientApplication.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; 6 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 7 | import org.springframework.cloud.netflix.zuul.EnableZuulProxy; 8 | import org.springframework.cloud.stream.annotation.EnableBinding; 9 | import org.springframework.cloud.stream.messaging.Source; 10 | 11 | @EnableCircuitBreaker 12 | @EnableBinding(Source.class) 13 | @EnableZuulProxy 14 | @EnableDiscoveryClient 15 | @SpringBootApplication 16 | public class ZuulProxyClientApplication { 17 | 18 | public static void main(String[] args) { 19 | SpringApplication.run(ZuulProxyClientApplication.class, args); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svca-service/src/main/java/com/josedab/example/processor/SocialProfileProcessor.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.processor; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.cloud.stream.messaging.Sink; 5 | import org.springframework.integration.annotation.MessageEndpoint; 6 | import org.springframework.integration.annotation.ServiceActivator; 7 | 8 | import com.josedab.example.model.SocialProfile; 9 | import com.josedab.example.repository.SocialProfileRepository; 10 | 11 | @MessageEndpoint 12 | public class SocialProfileProcessor { 13 | 14 | @Autowired 15 | private SocialProfileRepository socialProfileRepository; 16 | 17 | @ServiceActivator(inputChannel = Sink.INPUT) 18 | public void acceptNewProfiles(String profileName) { 19 | System.out.println("Got new profile " + profileName); 20 | socialProfileRepository.save(new SocialProfile(profileName)); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /zuul-proxy/svcb-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Kanye West", 21 | "Rihanna", 22 | "Imagine Dragons") 23 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /config-provider/svcb-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Kanye West", 21 | "Rihanna", 22 | "Imagine Dragons") 23 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /service-registry/svcb-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Kanye West", 21 | "Rihanna", 22 | "Imagine Dragons") 23 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svcb-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Kanye West", 21 | "Rihanna", 22 | "Imagine Dragons") 23 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svcb-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Kanye West", 21 | "Rihanna", 22 | "Imagine Dragons") 23 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svcb-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Kanye West", 21 | "Rihanna", 22 | "Imagine Dragons") 23 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /zuul-proxy/svca-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Katy Perry", 21 | "Justin Bieber", 22 | "Taylor Swift", 23 | "Barack Obama", 24 | "Youtube", 25 | "Rihanna", 26 | "Lady Gaga") 27 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 28 | 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 José David Baena 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /config-provider/svca-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Katy Perry", 21 | "Justin Bieber", 22 | "Taylor Swift", 23 | "Barack Obama", 24 | "Youtube", 25 | "Rihanna", 26 | "Lady Gaga") 27 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 28 | 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /service-registry/svca-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Katy Perry", 21 | "Justin Bieber", 22 | "Taylor Swift", 23 | "Barack Obama", 24 | "Youtube", 25 | "Rihanna", 26 | "Lady Gaga") 27 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 28 | 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/svca-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Katy Perry", 21 | "Justin Bieber", 22 | "Taylor Swift", 23 | "Barack Obama", 24 | "Youtube", 25 | "Rihanna", 26 | "Lady Gaga") 27 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 28 | 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svca-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Katy Perry", 21 | "Justin Bieber", 22 | "Taylor Swift", 23 | "Barack Obama", 24 | "Youtube", 25 | "Rihanna", 26 | "Lady Gaga") 27 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 28 | 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/svca-service/src/main/java/com/josedab/example/clr/SocialProfileClr.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.clr; 2 | 3 | import java.util.stream.Stream; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.boot.CommandLineRunner; 7 | import org.springframework.stereotype.Component; 8 | 9 | import com.josedab.example.model.SocialProfile; 10 | import com.josedab.example.repository.SocialProfileRepository; 11 | 12 | @Component 13 | public class SocialProfileClr implements CommandLineRunner { 14 | 15 | @Autowired 16 | private SocialProfileRepository socialProfileRepository; 17 | 18 | @Override 19 | public void run(String... arg0) throws Exception { 20 | Stream.of("Katy Perry", 21 | "Justin Bieber", 22 | "Taylor Swift", 23 | "Barack Obama", 24 | "Youtube", 25 | "Rihanna", 26 | "Lady Gaga") 27 | .forEach(name -> socialProfileRepository.save(new SocialProfile(name))); 28 | 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/README.md: -------------------------------------------------------------------------------- 1 | # Hystrix dashboard with Turbine 2 | Examples of microservice instrastructures: Hystrix dashboard 3 | 4 | ## Blog post 5 | For this example, a Hystrix dashboard is going to be created in order to monitor connection between services. 6 | Explanation of the architecture and purpose of having a Hystrix dashboard service can be found here: 7 | http://www.josedab.com/2016/03/05/microservices-hystrix-dashboard-detecting-point-of-failures/ 8 | 9 | ## Overview 10 | When specifying callback strategies and proxying to an increasing number of microservices it would be good to have some kind of monitoring. 11 | 12 | Using Zuul let us to create a stream of data related to the connections that are proxied. This data can be rendered by a Hystrix dashboard. 13 | 14 | ## Deployment 15 | 16 | Each maven subproject is a Spring Boot application. Running the example would be as easy as running the following: 17 | `mvn spring-boot:run` 18 | inside each of the suprojects. 19 | 20 | The recommended way to deploy is: 21 | 22 | - Deploy config-service 23 | - Deploy service a 24 | - Deploy service b 25 | - Deploy Eureka service 26 | - Deploy Zuul proxy service 27 | - Deploy Hystrix dashboard service 28 | -------------------------------------------------------------------------------- /service-registry/README.md: -------------------------------------------------------------------------------- 1 | # Eureka service registry 2 | Examples of microservice instrastructures: Eureka service registry 3 | 4 | ## Blog post 5 | For this example, a Service registry is used for locating the different services that are up and running on our microservice infrastructure. 6 | Explanation of the architecture and purpose of having the Eureka service registry: 7 | http://www.josedab.com/2016/02/19/microservices-using-eureka-as-a-service-registry/ 8 | 9 | 10 | ## Overview 11 | As you incorporate more and more services, locating them becomes more and more difficult and unmaintainable (imagine 500 microservices for example, how would you keep track of what is going on?). 12 | 13 | On top of that, microservices are pieces of business logic that can be up/down changing their ip/status/address over the network. 14 | Dns is very capable of solving that but it normally requires it to wait some time until the new services are resolved. Changes on addresses on the microservices should be reflected immediately and a good dns normally caches the information (for performance purposes for example). 15 | 16 | For this example, we will create a service registry with Eureka and it will be showed also how to modify the microservices in order to be discovered. 17 | 18 | 19 | ## Deployment 20 | 21 | Each maven subproject is a Spring Boot application. Running the example would be as easy as running the following: 22 | `mvn spring-boot:run` 23 | inside each of the suprojects. 24 | 25 | The recommended way to deploy is: 26 | 27 | - Deploy config-service 28 | - Deploy service a 29 | - Deploy service b 30 | - Deploy Eureka service -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # spring-cloud-examples 2 | Examples of microservice instrastructures 3 | 4 | This project contains several examples of microservice infrastructures implemented with Spring Boot and Spring Cloud projects. 5 | The aim of each project is to provide an end to end example, being able to deploy it without too much hassle. 6 | 7 | ## Overview 8 | Each folder represents a type of example (`config-provider`, `service-registry`, etc...) 9 | Each example is divided in subfolders, which are maven projects in charge of a specific service. 10 | For example, for the `zuul-proxy-cloud-bus` example, we have the following folders: 11 | - configuration-service 12 | - eureka-service 13 | - svca-service (one of the services with a custom business logic) 14 | - svcb-service (another service with custom business logic) 15 | - zuul-service 16 | Each of them are deployed separately and together they form the microservice infrastructure for that example. 17 | 18 | # Deployment 19 | Each service could be deployed running the following: 20 | `mvn spring-boot:run` 21 | 22 | For example, for the microservice infrastructure declared on the project `zuul-proxy-cloud-bus` we will deploy the infrastructure doing the following: 23 | 24 | - Deploy config-service 25 | ``` 26 | cd configuration-service 27 | mvn spring-boot:run 28 | ``` 29 | - Deploy service a 30 | ``` 31 | cd svca-service 32 | mvn spring-boot:run 33 | ``` 34 | - Deploy service b 35 | ``` 36 | cd svcb-service 37 | mvn spring-boot:run 38 | ``` 39 | - Deploy Eureka service 40 | ``` 41 | cd eureka-service 42 | mvn spring-boot:run 43 | ``` 44 | - Deploy Zuul proxy service 45 | ``` 46 | cd zuul-service 47 | mvn spring-boot:run 48 | ``` -------------------------------------------------------------------------------- /config-provider/README.md: -------------------------------------------------------------------------------- 1 | # Configuration service 2 | Examples of microservice instrastructures: Configuration provider 3 | 4 | ## Blog post 5 | For this example, a Configuration service is used for centralizing the configuration. 6 | Explanation of the architecture and purpose of having a configuration service can be found here: 7 | http://www.josedab.com/2016/02/16/microservices-writing-a-centralized-configuration-microservice/ 8 | 9 | ## Overview 10 | When implementing microservices, you can go for isolating the configuration for each service into its own project. To instantiate a service, we would need several properties like: 11 | 12 | - Where the service is going to listen? 13 | - Where do we store the additional properties? 14 | - Do I need to communicate to other processes/services? If so, how do I connect to them without having hardcoded the information? 15 | 16 | Main issues you can find with decentralized configuration are: 17 | - Maintainability of configuration 18 | - Inconsistency on properties 19 | - Dynamic property refresh on microservices 20 | - Each microservice deals with the configuration: duplication of code, no flexibility, etc... 21 | 22 | Solving the issue of configuration inconsistency and maintainability on distributed systems and to act as a main point for configuration , we could go for the option of having a microservice for providing the configuration to the rest of the services. 23 | 24 | 25 | ## Deployment 26 | 27 | Each maven subproject is a Spring Boot application. Running the example would be as easy as running the following: 28 | `mvn spring-boot:run` 29 | inside each of the suprojects. 30 | 31 | The recommended way to deploy is: 32 | 33 | - Deploy config-service 34 | - Deploy service a 35 | - Deploy service b 36 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/README.md: -------------------------------------------------------------------------------- 1 | # spring-cloud-examples 2 | Examples of microservice instrastructures: Zipkin 3 | 4 | http://www.josedab.com/2016/03/09/microservices-zipkin-distributed-tracing/ 5 | 6 | For this example, the incorporation of the Zipkin stream server will allow us to receive http traces that later can be shown through the Zipkin Web UI. 7 | After reading the 8 fallacies of distributed computing, you definitely want some monitoring or analysis tool that tells you what is going on with your http requests. 8 | The more complex the system is, the more need of tools for analyzing what is going on on the communication between services. 9 | 10 | ## Deployment 11 | 12 | Each maven subproject is a Spring Boot application. Running the example would be as easy as running the following: 13 | `mvn spring-boot:run` 14 | inside each of the suprojects. 15 | 16 | The recommended way to deploy is: 17 | 18 | - Deploy Kafka on the default ports. We use it for the cloud streaming messages propagated to the zipkin stream server. 19 | ``` 20 | ~/kafka_2.11-0.10.1.0$ bin/zookeeper-server-start.sh configookeeper.properties 21 | ~/kafka_2.11-0.10.1.0$ bin/kafka-server-start.sh config/server.properties 22 | ``` 23 | - Deploy config-service 24 | - Deploy service a 25 | - Deploy service b 26 | - Deploy Eureka service 27 | - Deploy Zuul proxy service 28 | - Deploy Zipkin server 29 | - Deploy Zipkin web ui pointing to the Zipkin stream server: 30 | - Download the Zipkin web ui from the build . For this example, I downloaded zipkin-web-1.28.1-20160104.090947-7-all.jar , although you could use any newer version. 31 | java -jar zipkin-web-1.28.1-20160104.090947-7-all.jar 32 | -zipkin.web.port=localhost:9401 33 | -zipkin.web.rootUrl=/ 34 | -zipkin.web.query.dest=localhost:9411 35 | -------------------------------------------------------------------------------- /zuul-proxy/configuration-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.example 7 | configuration-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | configuration-service 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-config-server 30 | 31 | 32 | 33 | org.springframework.boot 34 | spring-boot-starter-test 35 | test 36 | 37 | 38 | 39 | 40 | 41 | 42 | org.springframework.cloud 43 | spring-cloud-dependencies 44 | Camden.RELEASE 45 | pom 46 | import 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | org.springframework.boot 55 | spring-boot-maven-plugin 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /config-provider/configuration-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.example 7 | configuration-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | configuration-service 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-config-server 30 | 31 | 32 | 33 | org.springframework.boot 34 | spring-boot-starter-test 35 | test 36 | 37 | 38 | 39 | 40 | 41 | 42 | org.springframework.cloud 43 | spring-cloud-dependencies 44 | Camden.RELEASE 45 | pom 46 | import 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | org.springframework.boot 55 | spring-boot-maven-plugin 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /service-registry/configuration-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.example 7 | configuration-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | configuration-service 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-config-server 30 | 31 | 32 | 33 | org.springframework.boot 34 | spring-boot-starter-test 35 | test 36 | 37 | 38 | 39 | 40 | 41 | 42 | org.springframework.cloud 43 | spring-cloud-dependencies 44 | Camden.RELEASE 45 | pom 46 | import 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | org.springframework.boot 55 | spring-boot-maven-plugin 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/configuration-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.example 7 | configuration-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | configuration-service 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-config-server 30 | 31 | 32 | 33 | org.springframework.boot 34 | spring-boot-starter-test 35 | test 36 | 37 | 38 | 39 | 40 | 41 | 42 | org.springframework.cloud 43 | spring-cloud-dependencies 44 | Camden.RELEASE 45 | pom 46 | import 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | org.springframework.boot 55 | spring-boot-maven-plugin 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/configuration-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.example 7 | configuration-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | configuration-service 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-config-server 30 | 31 | 32 | 33 | org.springframework.boot 34 | spring-boot-starter-test 35 | test 36 | 37 | 38 | 39 | 40 | 41 | 42 | org.springframework.cloud 43 | spring-cloud-dependencies 44 | Camden.RELEASE 45 | pom 46 | import 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | org.springframework.boot 55 | spring-boot-maven-plugin 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/configuration-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.example 7 | configuration-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | configuration-service 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-config-server 30 | 31 | 32 | 33 | org.springframework.boot 34 | spring-boot-starter-test 35 | test 36 | 37 | 38 | 39 | 40 | 41 | 42 | org.springframework.cloud 43 | spring-cloud-dependencies 44 | Camden.RELEASE 45 | pom 46 | import 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | org.springframework.boot 55 | spring-boot-maven-plugin 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /zuul-proxy/eureka-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.socialmedia 7 | eureka-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | eureka-service 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-eureka-server 34 | 35 | 36 | 37 | org.springframework.boot 38 | spring-boot-starter-test 39 | test 40 | 41 | 42 | 43 | 44 | 45 | 46 | org.springframework.cloud 47 | spring-cloud-dependencies 48 | Camden.RELEASE 49 | pom 50 | import 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-maven-plugin 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /service-registry/eureka-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.socialmedia 7 | eureka-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | eureka-service 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-eureka-server 34 | 35 | 36 | 37 | org.springframework.boot 38 | spring-boot-starter-test 39 | test 40 | 41 | 42 | 43 | 44 | 45 | 46 | org.springframework.cloud 47 | spring-cloud-dependencies 48 | Camden.RELEASE 49 | pom 50 | import 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-maven-plugin 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/eureka-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.socialmedia 7 | eureka-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | eureka-service 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-eureka-server 34 | 35 | 36 | 37 | org.springframework.boot 38 | spring-boot-starter-test 39 | test 40 | 41 | 42 | 43 | 44 | 45 | 46 | org.springframework.cloud 47 | spring-cloud-dependencies 48 | Camden.RELEASE 49 | pom 50 | import 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-maven-plugin 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/eureka-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.socialmedia 7 | eureka-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | eureka-service 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-eureka-server 34 | 35 | 36 | 37 | org.springframework.boot 38 | spring-boot-starter-test 39 | test 40 | 41 | 42 | 43 | 44 | 45 | 46 | org.springframework.cloud 47 | spring-cloud-dependencies 48 | Camden.RELEASE 49 | pom 50 | import 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-maven-plugin 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/eureka-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.socialmedia 7 | eureka-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | eureka-service 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-eureka-server 34 | 35 | 36 | 37 | org.springframework.boot 38 | spring-boot-starter-test 39 | test 40 | 41 | 42 | 43 | 44 | 45 | 46 | org.springframework.cloud 47 | spring-cloud-dependencies 48 | Camden.RELEASE 49 | pom 50 | import 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-maven-plugin 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/hystrix-dashboard/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.socialmedia 7 | hystrix-dashboard 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | hystrix-dashboard 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-hystrix-dashboard 34 | 35 | 36 | 37 | org.springframework.boot 38 | spring-boot-starter-test 39 | test 40 | 41 | 42 | 43 | 44 | 45 | 46 | org.springframework.cloud 47 | spring-cloud-dependencies 48 | Camden.RELEASE 49 | pom 50 | import 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-maven-plugin 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /zuul-proxy/README.md: -------------------------------------------------------------------------------- 1 | # Zuul proxy microservice 2 | Examples of microservice instrastructures: Zuul proxy 3 | 4 | ## Blog post 5 | For this example, a Zuul proxy used as edge service will be incorporated. 6 | Explanation of the architecture and purpose of having a Zuul proxy: 7 | http://www.josedab.com/2016/03/01/microservices-using-zuul-proxy-as-a-micro-proxy-and-api-gateway/ 8 | 9 | ## Overview 10 | Zuul service proxying GET and POST requests. 11 | On top of proxying requests, distributed messaging is incorporated to access multiple ends without having to locate each of the services (In this case service A and B) 12 | 13 | ## Deployment 14 | 15 | Each maven subproject is a Spring Boot application. Running the example would be as easy as running the following: 16 | `mvn spring-boot:run` 17 | inside each of the suprojects. 18 | 19 | The recommended way to deploy is: 20 | 21 | - Deploy config-service 22 | ``` 23 | cd configuration-service 24 | mvn spring-boot:run 25 | ``` 26 | - Deploy service a 27 | ``` 28 | cd svca-service 29 | mvn spring-boot:run 30 | ``` 31 | - Deploy service b 32 | ``` 33 | cd svcb-service 34 | mvn spring-boot:run 35 | ``` 36 | - Deploy Eureka service 37 | ``` 38 | cd eureka-service 39 | mvn spring-boot:run 40 | ``` 41 | - Deploy Zuul proxy service 42 | ``` 43 | cd zuul-service 44 | mvn spring-boot:run 45 | ``` 46 | 47 | ## Test 48 | On the console, you could run `jps`. This would show the java processes. An output of the services runing could be: 49 | ``` 50 | 1264 ConfigurationServiceApplication 51 | 1265 EurekaServiceApplication 52 | 1266 SvcAServiceApplication 53 | 1267 SvcBServiceApplication 54 | 1268 ZuulProxyClientApplication 55 | ``` 56 | 57 | ### Urls 58 | To hit the services deployed, you could try the following urls: 59 | - Zuul service health status [http://localhost:9000/health] 60 | - Microservice A 61 | - Through Zuul proxy [http://localhost:9000/svca-service] 62 | - Endpoint to service A: [http://localhost:9000/svca-service/socialProfiles] 63 | - Url of the service [http://localhost:5000] 64 | - Endpoint to service A: http://localhost:5000/socialProfiles 65 | - Microservice B 66 | - Through Zuul proxy [http://localhost:9000/svcb-service] 67 | - Endpoint to service B [http://localhost:9000/svcb-service/socialProfiles] 68 | - Url of the service [http://localhost:7000] 69 | - Endpoint to service A [http://localhost:7000/socialProfiles] 70 | - Composition of services 71 | - Endpoint for composition of service A and B: http://localhost:9000/profiles/names 72 | - Eureka service registry [http://localhost:8761] -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/README.md: -------------------------------------------------------------------------------- 1 | # Zuul proxy microservice 2 | Examples of microservice instrastructures: Zuul proxy 3 | 4 | ## Blog post 5 | For this example, a Zuul proxy used as edge service will be incorporated. 6 | Explanation of the architecture and purpose of having a Zuul proxy: 7 | http://www.josedab.com/2016/03/01/microservices-using-zuul-proxy-as-a-micro-proxy-and-api-gateway/ 8 | 9 | ## Overview 10 | Zuul service proxying GET and POST requests. 11 | On top of proxying requests, distributed messaging is incorporated to access multiple ends without having to locate each of the services (In this case service A and B) 12 | 13 | ## Deployment 14 | 15 | Each maven subproject is a Spring Boot application. Running the example would be as easy as running the following: 16 | `mvn spring-boot:run` 17 | inside each of the suprojects. 18 | 19 | The recommended way to deploy is: 20 | 21 | - Deploy config-service 22 | ``` 23 | cd configuration-service 24 | mvn spring-boot:run 25 | ``` 26 | - Deploy service a 27 | ``` 28 | cd svca-service 29 | mvn spring-boot:run 30 | ``` 31 | - Deploy service b 32 | ``` 33 | cd svcb-service 34 | mvn spring-boot:run 35 | ``` 36 | - Deploy Eureka service 37 | ``` 38 | cd eureka-service 39 | mvn spring-boot:run 40 | ``` 41 | - Deploy Zuul proxy service 42 | ``` 43 | cd zuul-service 44 | mvn spring-boot:run 45 | ``` 46 | 47 | ## Test 48 | On the console, you could run `jps`. This would show the java processes. An output of the services runing could be: 49 | ``` 50 | 1264 ConfigurationServiceApplication 51 | 1265 EurekaServiceApplication 52 | 1266 SvcAServiceApplication 53 | 1267 SvcBServiceApplication 54 | 1268 ZuulProxyClientApplication 55 | ``` 56 | 57 | ### Urls 58 | To hit the services deployed, you could try the following urls: 59 | - Zuul service health status [http://localhost:9000/health] 60 | - Microservice A 61 | - Through Zuul proxy [http://localhost:9000/svca-service] 62 | - Endpoint to service A: [http://localhost:9000/svca-service/socialProfiles] 63 | - Url of the service [http://localhost:5000] 64 | - Endpoint to service A: http://localhost:5000/socialProfiles 65 | - Microservice B 66 | - Through Zuul proxy [http://localhost:9000/svcb-service] 67 | - Endpoint to service B [http://localhost:9000/svcb-service/socialProfiles] 68 | - Url of the service [http://localhost:7000] 69 | - Endpoint to service A [http://localhost:7000/socialProfiles] 70 | - Composition of services 71 | - Endpoint for composition of service A and B: http://localhost:9000/profiles/names 72 | - Eureka service registry [http://localhost:8761] -------------------------------------------------------------------------------- /hystrix-dashboard-server/hystrix-dashboard/target/classes/META-INF/maven/com.josedab.socialmedia/hystrix-dashboard/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.socialmedia 7 | hystrix-dashboard 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | hystrix-dashboard 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.3.2.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-hystrix-dashboard 34 | 35 | 36 | 37 | org.springframework.boot 38 | spring-boot-starter-test 39 | test 40 | 41 | 42 | 43 | 44 | 45 | 46 | org.springframework.cloud 47 | spring-cloud-dependencies 48 | Brixton.BUILD-SNAPSHOT 49 | pom 50 | import 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-maven-plugin 60 | 61 | 62 | 63 | 64 | 65 | 66 | spring-snapshots 67 | Spring Snapshots 68 | https://repo.spring.io/snapshot 69 | 70 | true 71 | 72 | 73 | 74 | spring-milestones 75 | Spring Milestones 76 | https://repo.spring.io/milestone 77 | 78 | false 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zipkin-server/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.zipkin 7 | zipkin-server 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | zipkin-server 12 | Demo project for Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-sleuth-zipkin-stream 34 | 35 | 36 | org.springframework.cloud 37 | spring-cloud-starter-stream-kafka 38 | 39 | 40 | org.springframework.cloud 41 | spring-cloud-stream-test-support 42 | 43 | 44 | org.springframework.boot 45 | spring-boot-starter-test 46 | test 47 | 48 | 49 | 50 | 51 | 52 | 53 | org.springframework.cloud 54 | spring-cloud-dependencies 55 | Camden.RELEASE 56 | pom 57 | import 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | org.springframework.boot 66 | spring-boot-maven-plugin 67 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /zuul-proxy/zuul-service/src/main/java/com/josedab/example/controller/SocialProfileApiGatewayController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collection; 5 | import java.util.stream.Collectors; 6 | 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.core.ParameterizedTypeReference; 9 | import org.springframework.hateoas.Resources; 10 | import org.springframework.http.HttpMethod; 11 | import org.springframework.http.ResponseEntity; 12 | import org.springframework.web.bind.annotation.PathVariable; 13 | import org.springframework.web.bind.annotation.RequestMapping; 14 | import org.springframework.web.bind.annotation.RequestMethod; 15 | import org.springframework.web.bind.annotation.RestController; 16 | import org.springframework.web.client.RestTemplate; 17 | 18 | import com.josedab.example.model.SocialProfile; 19 | import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand; 20 | 21 | @RestController 22 | @RequestMapping("/profiles") 23 | public class SocialProfileApiGatewayController { 24 | 25 | private static final String SERVICE_A = "svca-service"; 26 | private static final String SERVICE_B = "svcb-service"; 27 | 28 | @Autowired 29 | private RestTemplate restTemplate; 30 | 31 | @HystrixCommand(fallbackMethod = "getProfileNamesFallback") 32 | @RequestMapping(method=RequestMethod.GET, value="/names/{service}") 33 | public Collection getProfileNamesForService(@PathVariable("service") String service) { 34 | ParameterizedTypeReference> typeReference = new ParameterizedTypeReference>() {}; 35 | ResponseEntity> profiles = 36 | restTemplate.exchange( 37 | "http://" + service + "/socialProfiles", 38 | HttpMethod.GET, 39 | null, 40 | typeReference); 41 | 42 | return profiles.getBody().getContent() 43 | .stream() 44 | .map(SocialProfile::getName) 45 | .collect(Collectors.toList()); 46 | 47 | } 48 | 49 | @HystrixCommand(fallbackMethod = "getProfileNamesFallback") 50 | @RequestMapping(method=RequestMethod.GET, value="/names") 51 | public Collection getProfileNamesForService() { 52 | Collection results = getProfileNamesForService(SERVICE_A); 53 | Collection svcbResults = getProfileNamesForService(SERVICE_B); 54 | results.addAll(svcbResults); 55 | return results; 56 | } 57 | 58 | private Collection getProfileNamesFallback() { 59 | return new ArrayList(); 60 | } 61 | 62 | private Collection getProfileNamesFallback(String service) { 63 | return getProfileNamesFallback(); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/zuul-service/src/main/java/com/josedab/example/controller/SocialProfileApiGatewayController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collection; 5 | import java.util.stream.Collectors; 6 | 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.core.ParameterizedTypeReference; 9 | import org.springframework.hateoas.Resources; 10 | import org.springframework.http.HttpMethod; 11 | import org.springframework.http.ResponseEntity; 12 | import org.springframework.web.bind.annotation.PathVariable; 13 | import org.springframework.web.bind.annotation.RequestMapping; 14 | import org.springframework.web.bind.annotation.RequestMethod; 15 | import org.springframework.web.bind.annotation.RestController; 16 | import org.springframework.web.client.RestTemplate; 17 | 18 | import com.josedab.example.model.SocialProfile; 19 | import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand; 20 | 21 | @RestController 22 | @RequestMapping("/profiles") 23 | public class SocialProfileApiGatewayController { 24 | 25 | private static final String SERVICE_A = "svca-service"; 26 | private static final String SERVICE_B = "svcb-service"; 27 | 28 | @Autowired 29 | private RestTemplate restTemplate; 30 | 31 | @HystrixCommand(fallbackMethod = "getProfileNamesFallback") 32 | @RequestMapping(method=RequestMethod.GET, value="/names/{service}") 33 | public Collection getProfileNamesForService(@PathVariable("service") String service) { 34 | ParameterizedTypeReference> typeReference = new ParameterizedTypeReference>() {}; 35 | ResponseEntity> profiles = 36 | restTemplate.exchange( 37 | "http://" + service + "/socialProfiles", 38 | HttpMethod.GET, 39 | null, 40 | typeReference); 41 | 42 | return profiles.getBody().getContent() 43 | .stream() 44 | .map(SocialProfile::getName) 45 | .collect(Collectors.toList()); 46 | 47 | } 48 | 49 | @HystrixCommand(fallbackMethod = "getProfileNamesFallback") 50 | @RequestMapping(method=RequestMethod.GET, value="/names") 51 | public Collection getProfileNamesForService() { 52 | Collection results = getProfileNamesForService(SERVICE_A); 53 | Collection svcbResults = getProfileNamesForService(SERVICE_B); 54 | results.addAll(svcbResults); 55 | return results; 56 | } 57 | 58 | private Collection getProfileNamesFallback() { 59 | return new ArrayList(); 60 | } 61 | 62 | private Collection getProfileNamesFallback(String service) { 63 | return getProfileNamesFallback(); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /zuul-proxy-cloud-bus/zuul-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.socialmedia 7 | zuul-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | zuul-service 12 | Zuul service example with Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | 29 | org.springframework.cloud 30 | spring-cloud-starter-config 31 | 32 | 33 | org.springframework.cloud 34 | spring-cloud-starter-eureka 35 | 36 | 37 | org.springframework.cloud 38 | spring-cloud-starter-hystrix 39 | 40 | 41 | org.springframework.cloud 42 | spring-cloud-starter-zipkin 43 | 44 | 45 | org.springframework.cloud 46 | spring-cloud-stream 47 | 48 | 49 | org.springframework.cloud 50 | spring-cloud-starter-stream-kafka 51 | 52 | 53 | org.springframework.cloud 54 | spring-cloud-starter-zuul 55 | 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-starter-hateoas 60 | 61 | 62 | 63 | org.springframework.boot 64 | spring-boot-starter-test 65 | test 66 | 67 | 68 | 69 | 70 | 71 | 72 | org.springframework.cloud 73 | spring-cloud-dependencies 74 | Camden.RELEASE 75 | pom 76 | import 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | org.springframework.boot 85 | spring-boot-maven-plugin 86 | 87 | 88 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zuul-service/src/main/java/com/josedab/example/controller/SocialProfileApiGatewayController.java: -------------------------------------------------------------------------------- 1 | package com.josedab.example.controller; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collection; 5 | import java.util.stream.Collectors; 6 | 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.core.ParameterizedTypeReference; 9 | import org.springframework.hateoas.Resources; 10 | import org.springframework.http.HttpMethod; 11 | import org.springframework.http.ResponseEntity; 12 | import org.springframework.web.bind.annotation.PathVariable; 13 | import org.springframework.web.bind.annotation.RequestBody; 14 | import org.springframework.web.bind.annotation.RequestMapping; 15 | import org.springframework.web.bind.annotation.RequestMethod; 16 | import org.springframework.web.bind.annotation.RestController; 17 | import org.springframework.web.client.RestTemplate; 18 | 19 | import com.josedab.example.model.SocialProfile; 20 | import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand; 21 | 22 | @RestController 23 | @RequestMapping("/profiles") 24 | public class SocialProfileApiGatewayController { 25 | 26 | private static final String SERVICE_A = "svca-service"; 27 | private static final String SERVICE_B = "svcb-service"; 28 | 29 | @Autowired 30 | private RestTemplate restTemplate; 31 | 32 | @HystrixCommand(fallbackMethod = "getProfileNamesFallback") 33 | @RequestMapping(method=RequestMethod.GET, value="/names/{service}") 34 | public Collection getProfileNamesForService(@PathVariable("service") String service) { 35 | ParameterizedTypeReference> typeReference = new ParameterizedTypeReference>() {}; 36 | ResponseEntity> profiles = 37 | restTemplate.exchange( 38 | "http://" + service + "/socialProfiles", 39 | HttpMethod.GET, 40 | null, 41 | typeReference); 42 | 43 | return profiles.getBody().getContent() 44 | .stream() 45 | .map(SocialProfile::getName) 46 | .collect(Collectors.toList()); 47 | 48 | } 49 | 50 | @HystrixCommand(fallbackMethod = "getProfileNamesFallback") 51 | @RequestMapping(method=RequestMethod.GET, value="/names") 52 | public Collection getProfileNamesForService() { 53 | Collection results = getProfileNamesForService(SERVICE_A); 54 | Collection svcbResults = getProfileNamesForService(SERVICE_B); 55 | results.addAll(svcbResults); 56 | return results; 57 | } 58 | 59 | private Collection getProfileNamesFallback() { 60 | return new ArrayList(); 61 | } 62 | 63 | private Collection getProfileNamesFallback(String service) { 64 | return getProfileNamesFallback(); 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /config-provider/svca-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab 7 | svca-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | svca-service 12 | Service A - Microservice 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.boot 33 | spring-boot-starter-actuator 34 | 35 | 36 | org.springframework.boot 37 | spring-boot-starter-data-jpa 38 | 39 | 40 | org.springframework.boot 41 | spring-boot-starter-data-rest 42 | 43 | 44 | org.springframework.boot 45 | spring-boot-starter-web 46 | 47 | 48 | 49 | com.h2database 50 | h2 51 | runtime 52 | 53 | 54 | org.springframework.boot 55 | spring-boot-starter-test 56 | test 57 | 58 | 59 | 60 | 61 | 62 | 63 | org.springframework.cloud 64 | spring-cloud-dependencies 65 | Camden.RELEASE 66 | pom 67 | import 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | org.springframework.boot 76 | spring-boot-maven-plugin 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /config-provider/svcb-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab 7 | svcb-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | svcb-service 12 | Service B - Microservice 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.boot 33 | spring-boot-starter-actuator 34 | 35 | 36 | org.springframework.boot 37 | spring-boot-starter-data-jpa 38 | 39 | 40 | org.springframework.boot 41 | spring-boot-starter-data-rest 42 | 43 | 44 | org.springframework.boot 45 | spring-boot-starter-web 46 | 47 | 48 | 49 | com.h2database 50 | h2 51 | runtime 52 | 53 | 54 | org.springframework.boot 55 | spring-boot-starter-test 56 | test 57 | 58 | 59 | 60 | 61 | 62 | 63 | org.springframework.cloud 64 | spring-cloud-dependencies 65 | Camden.RELEASE 66 | pom 67 | import 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | org.springframework.boot 76 | spring-boot-maven-plugin 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /zipkin-distributed-tracing/zuul-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.socialmedia 7 | zuul-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | zuul-service 12 | Zuul service example with Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | 29 | org.springframework.cloud 30 | spring-cloud-starter-config 31 | 32 | 33 | org.springframework.cloud 34 | spring-cloud-starter-eureka 35 | 36 | 37 | org.springframework.cloud 38 | spring-cloud-starter-hystrix 39 | 40 | 41 | org.springframework.cloud 42 | spring-cloud-starter-zipkin 43 | 44 | 45 | org.springframework.cloud 46 | spring-cloud-starter-zuul 47 | 48 | 49 | org.springframework.boot 50 | spring-boot-starter-hateoas 51 | 52 | 53 | 54 | org.springframework.boot 55 | spring-boot-starter-test 56 | test 57 | 58 | 59 | 60 | 61 | 62 | 63 | org.springframework.cloud 64 | spring-cloud-dependencies 65 | Camden.RELEASE 66 | pom 67 | import 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | org.springframework.boot 76 | spring-boot-maven-plugin 77 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /zuul-proxy/zuul-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.socialmedia 7 | zuul-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | zuul-service 12 | Zuul service example with Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | 29 | org.springframework.cloud 30 | spring-cloud-starter-config 31 | 32 | 33 | org.springframework.cloud 34 | spring-cloud-starter-eureka 35 | 36 | 37 | org.springframework.cloud 38 | spring-cloud-starter-hystrix 39 | 40 | 41 | org.springframework.cloud 42 | spring-cloud-starter-zipkin 43 | 44 | 45 | org.springframework.cloud 46 | spring-cloud-starter-zuul 47 | 48 | 49 | 50 | org.springframework.boot 51 | spring-boot-starter-hateoas 52 | 53 | 54 | 55 | org.springframework.boot 56 | spring-boot-starter-test 57 | test 58 | 59 | 60 | 61 | 62 | 63 | 64 | org.springframework.cloud 65 | spring-cloud-dependencies 66 | Camden.RELEASE 67 | pom 68 | import 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | org.springframework.boot 77 | spring-boot-maven-plugin 78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/zuul-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab.socialmedia 7 | zuul-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | zuul-service 12 | Zuul service example with Spring Boot 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | 29 | org.springframework.cloud 30 | spring-cloud-starter-config 31 | 32 | 33 | org.springframework.cloud 34 | spring-cloud-starter-eureka 35 | 36 | 37 | org.springframework.cloud 38 | spring-cloud-starter-hystrix 39 | 40 | 41 | org.springframework.cloud 42 | spring-cloud-starter-zipkin 43 | 44 | 45 | org.springframework.cloud 46 | spring-cloud-starter-zuul 47 | 48 | 49 | 50 | org.springframework.boot 51 | spring-boot-starter-hateoas 52 | 53 | 54 | 55 | org.springframework.boot 56 | spring-boot-starter-test 57 | test 58 | 59 | 60 | 61 | 62 | 63 | 64 | org.springframework.cloud 65 | spring-cloud-dependencies 66 | Camden.RELEASE 67 | pom 68 | import 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | org.springframework.boot 77 | spring-boot-maven-plugin 78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /zuul-proxy/svca-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab 7 | svca-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | svca-service 12 | Service A - Microservice 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-eureka 34 | 35 | 36 | org.springframework.boot 37 | spring-boot-starter-actuator 38 | 39 | 40 | org.springframework.boot 41 | spring-boot-starter-data-jpa 42 | 43 | 44 | org.springframework.boot 45 | spring-boot-starter-data-rest 46 | 47 | 48 | org.springframework.boot 49 | spring-boot-starter-web 50 | 51 | 52 | 53 | com.h2database 54 | h2 55 | runtime 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-starter-test 60 | test 61 | 62 | 63 | 64 | 65 | 66 | 67 | org.springframework.cloud 68 | spring-cloud-dependencies 69 | Camden.RELEASE 70 | pom 71 | import 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | org.springframework.boot 80 | spring-boot-maven-plugin 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /zuul-proxy/svcb-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab 7 | svcb-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | svcb-service 12 | Service B - Microservice 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-eureka 34 | 35 | 36 | org.springframework.boot 37 | spring-boot-starter-actuator 38 | 39 | 40 | org.springframework.boot 41 | spring-boot-starter-data-jpa 42 | 43 | 44 | org.springframework.boot 45 | spring-boot-starter-data-rest 46 | 47 | 48 | org.springframework.boot 49 | spring-boot-starter-web 50 | 51 | 52 | 53 | com.h2database 54 | h2 55 | runtime 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-starter-test 60 | test 61 | 62 | 63 | 64 | 65 | 66 | 67 | org.springframework.cloud 68 | spring-cloud-dependencies 69 | Camden.RELEASE 70 | pom 71 | import 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | org.springframework.boot 80 | spring-boot-maven-plugin 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /service-registry/svca-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab 7 | svca-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | svca-service 12 | Service A - Microservice 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-eureka 34 | 35 | 36 | org.springframework.boot 37 | spring-boot-starter-actuator 38 | 39 | 40 | org.springframework.boot 41 | spring-boot-starter-data-jpa 42 | 43 | 44 | org.springframework.boot 45 | spring-boot-starter-data-rest 46 | 47 | 48 | org.springframework.boot 49 | spring-boot-starter-web 50 | 51 | 52 | 53 | com.h2database 54 | h2 55 | runtime 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-starter-test 60 | test 61 | 62 | 63 | 64 | 65 | 66 | 67 | org.springframework.cloud 68 | spring-cloud-dependencies 69 | Camden.RELEASE 70 | pom 71 | import 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | org.springframework.boot 80 | spring-boot-maven-plugin 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /service-registry/svcb-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab 7 | svcb-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | svcb-service 12 | Service B - Microservice 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-eureka 34 | 35 | 36 | org.springframework.boot 37 | spring-boot-starter-actuator 38 | 39 | 40 | org.springframework.boot 41 | spring-boot-starter-data-jpa 42 | 43 | 44 | org.springframework.boot 45 | spring-boot-starter-data-rest 46 | 47 | 48 | org.springframework.boot 49 | spring-boot-starter-web 50 | 51 | 52 | 53 | com.h2database 54 | h2 55 | runtime 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-starter-test 60 | test 61 | 62 | 63 | 64 | 65 | 66 | 67 | org.springframework.cloud 68 | spring-cloud-dependencies 69 | Camden.RELEASE 70 | pom 71 | import 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | org.springframework.boot 80 | spring-boot-maven-plugin 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /hystrix-dashboard-server/svca-service/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | com.josedab 7 | svca-service 8 | 0.0.1-SNAPSHOT 9 | jar 10 | 11 | svca-service 12 | Service A - Microservice 13 | 14 | 15 | org.springframework.boot 16 | spring-boot-starter-parent 17 | 1.4.3.RELEASE 18 | 19 | 20 | 21 | 22 | UTF-8 23 | 1.8 24 | 25 | 26 | 27 | 28 | org.springframework.cloud 29 | spring-cloud-starter-config 30 | 31 | 32 | org.springframework.cloud 33 | spring-cloud-starter-eureka 34 | 35 | 36 | org.springframework.boot 37 | spring-boot-starter-actuator 38 | 39 | 40 | org.springframework.boot 41 | spring-boot-starter-data-jpa 42 | 43 | 44 | org.springframework.boot 45 | spring-boot-starter-data-rest 46 | 47 | 48 | org.springframework.boot 49 | spring-boot-starter-web 50 | 51 | 52 | 53 | com.h2database 54 | h2 55 | runtime 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-starter-test 60 | test 61 | 62 | 63 | 64 | 65 | 66 | 67 | org.springframework.cloud 68 | spring-cloud-dependencies 69 | Camden.RELEASE 70 | pom 71 | import 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | org.springframework.boot 80 | spring-boot-maven-plugin 81 | 82 | 83 | 84 | 85 | 86 | --------------------------------------------------------------------------------