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.
Die in diesem Blog geäußerten Ansichten sind die des Autors und spiegeln nicht unbedingt die Ansichten von New Relic wider. Alle vom Autor angebotenen Lösungen sind umgebungsspezifisch und nicht Teil der kommerziellen Lösungen oder des Supports von New Relic. Bitte besuchen Sie uns exklusiv im Explorers Hub (discuss.newrelic.com) für Fragen und Unterstützung zu diesem Blogbeitrag. Dieser Blog kann Links zu Inhalten auf Websites Dritter enthalten. Durch die Bereitstellung solcher Links übernimmt, garantiert, genehmigt oder billigt New Relic die auf diesen Websites verfügbaren Informationen, Ansichten oder Produkte nicht.