The Spring Framework is a leading framework used on the Java Virtual Machine (JVM) to build web applications and modern distributed systems. New Relic has supported Spring applications and services from the beginning, so we are excited to announce our support for the latest version, Spring 5 in New Relic APM.
Spring 5 includes many improvements, but the cornerstone is WebFlux. WebFlux is a new web framework that provides non-blocking I/O for incoming requests and outbound web client calls. It encourages a reactive coding style that is ideal for high-throughput services.
New Relic APM monitors Spring 5 services by identifying incoming requests, naming them based on annotations or route functions, and tracking the activity of route handlers and other methods. You can use New Relic to identify bottlenecks and service failures whether you use Spring WebFlux or Web MVC.
New Relic tracks the cross-thread activity of WebFlux routing and WebClient external calls. You can use the New Relic async API if you have custom async handling within your reactive service, and you can use New Relic’s @Trace annotation to record method call time for other methods such as your route handler.
With this instrumentation, New Relic distributed tracing shows your Spring 5 service calls in the context of your distributed system; you can trace activity from your Spring 5 service to other services that use different frameworks or languages. For a self-contained service, you can run your services using Spring Boot, or with app servers such as Apache Tomcat and Eclipse Jetty. You can write your code using Java or Kotlin. (Learn more about Spring5’s Kotlin support here.)
With a distributed microservice architecture, it’s more important than ever to have effective and complete monitoring, both for activity within your microservices, and their relationship to other services. If you want the best insight into your Spring 5 services, simply install the latest New Relic APM Java agent. You’ll get the visibility you need so you can move fast with confidence.
이 블로그에 표현된 견해는 저자의 견해이며 반드시 New Relic의 견해를 반영하는 것은 아닙니다. 저자가 제공하는 모든 솔루션은 환경에 따라 다르며 New Relic에서 제공하는 상용 솔루션이나 지원의 일부가 아닙니다. 이 블로그 게시물과 관련된 질문 및 지원이 필요한 경우 Explorers Hub(discuss.newrelic.com)에서만 참여하십시오. 이 블로그에는 타사 사이트의 콘텐츠에 대한 링크가 포함될 수 있습니다. 이러한 링크를 제공함으로써 New Relic은 해당 사이트에서 사용할 수 있는 정보, 보기 또는 제품을 채택, 보증, 승인 또는 보증하지 않습니다.