Ir al contenido principal

Destacado

Monitoring your micro services with Spring Boot Admin

This new joetip is for those who have in their architecture some micro-services developed with Spring Boot and are already using some Spring Cloud projects such as Spring Cloud Config and Spring Cloud Eureka as Discovery server.

The Spring Boot Admin is a project developed by CodeCentric which is available for free at https://github.com/codecentric/spring-boot-admin so we can monitor our microservices.

In order for these micro-services to be monitored, we have 2 options:


Placing the dependency of spring boot admin client on each projectOr configuring the Eureka (Consul or Zookeeper) so that you can monitor the micro-services that are already registered in it.

I will explain step by step what has to be done to work with the spring boot admin in our microservices cluster. But, if you are impatient and already want to try it, here is the GitHub repository: https://github.com/joedayz/spring-boot-admin-cloud-finchley.

For my demos I will use the following projects and the following versions…

Refactoring: Extract Method

Esta semana me compre el intellij idea para mi mac.
Y me gusto mucho los refactors que tiene. La tarea mia sera probarlos todo y de paso buscar su equivalente en Eclipse.

Para empezar Intellij IDEA soporta los refactorings propuestos en Refactoring: Improving the Design of Existing Code by Martin Fowler

1.- Extract Method
Tenemos un fragmento de código que puede ser agrupado.

Llevamos el fragmento a un método cuyo nombre explica el proposito del método.

Si tenemos un código así:


Al aplicar este refactor el resultado es:


Para complementar ver el siguiente video:


Así poco a poco ire documentando cada refactor. Si te interesa comenta o sugiere algún refactor necesitado.

Joe



Comentarios