Skip to content
Advertisement

Is ReactorDebugAgent suitable for production?

I read how to enable ReactorDebugAgent here:

https://projectreactor.io/docs/core/release/reference/#reactor-tools-debug

But I don’t know if it’s feasible to have such debug agent enabled by default on the production environment or only when something unusual happens?

Advertisement

Answer

The section name, as of 18th Feb 2022, is:

7.4. Production-ready Global Debugging

which seems to suggest that it is indeed suitable to be used in production. To add further context, the agent:

instruments your code and adds debugging info without paying the cost of capturing the stacktrace on every operator call. The behaviour is very similar to Activating Debug Mode – aka tracebacks, but without the runtime performance overhead.

To add some more context, we have been using this agent in a service with ~500 rps and ~5ms response time, and have not faced any issue, and have benefited from the traceback with assembly information

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement