Tagged articles
2 articles
Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 14, 2024 · Backend Development

Log SpringBoot Controllers, Track Request Time, Dynamically Register Resources

This guide shows how to output all SpringBoot controller endpoints via logging configuration, measure complete request processing time by listening to ServletRequestHandledEvent, dynamically register and deregister static resources at runtime, and execute custom logic after the application context refreshes using ContextRefreshedEvent.

Dynamic ResourcesRequest TimingSpringBoot
0 likes · 7 min read
Log SpringBoot Controllers, Track Request Time, Dynamically Register Resources
System Architect Go
System Architect Go
Nov 19, 2017 · Backend Development

Implementing Simple Request‑Response Timing Middleware in Node.js

This article explains how to add lightweight middleware in a Node.js server that records the start time on the request object, listens for the response finish event, calculates the elapsed time with process.hrtime, and uses curl to verify the timing for different endpoints.

APIBackendNode.js
0 likes · 3 min read
Implementing Simple Request‑Response Timing Middleware in Node.js