[Spring] Utilize spring web client
Since WebClient replace RestTemplate to call external API in Spring. There are some patrices I lesson learnt in my work and summarize as below.
Since WebClient replace RestTemplate to call external API in Spring. There are some patrices I lesson learnt in my work and summarize as below.
Idle timeout is one of the feature to enhance security by enforce logout if not used. In Angular, idle timeout can be done by rxjs. This demo will show the steps on adding and enable […]
Cookie is one of the persistent storage in web client. It can ensure data persistent even page refresh. Compare with Local storage, it has additional security as it natively support expire date time. As contract, […]
Opentracing is one of the open protocol for distribute tracing between microservices. With APM, it helps to identify service dependency and target bottom-neck during performance tuning. Even it merged to OpenTelmetry in recent years but […]
To enable ELK logging, mostly it will use logback as logging library. However, when migrate existing application, eliminate dependency change is one of the factor to ensure application stability. In this demo, we will use […]
Spring Cloud Sleuth is one of the spring cloud component which used to corelate log between different service. It is useful when tracking problem and it can draw the full picture from start to end. […]
Aspect-oriented Programming (AOP) enable developer design application with more “module-ize”. This example will show how to use AOP to log method execution in SpringBoot AOP.
To ensure service availability, Most application nee to restart service to resume. However, auto reconnect is a must requirement to ensure it can self-heal. For Spring data JPA, it can be done without alter code.
Application Performance Monitoring is one of the method to ensure application’s availability and status. However, most of them only can check the platform status (e.g. CPU usage / Thread / Memory / etc), some organization […]
It caused by Eclipse default server setting on JMX.
Copyright © 2024 | MH Magazine WordPress Theme by MH Themes