DEV Community

Discussion on: Aspect Oriented Programming (AOP) in real life scenario.

Collapse
 
rafalpienkowski profile image
Rafal Pienkowski

Hi Pawel.

Yes I've used LoggingInterceptor in production application. It's logging methods arguments and results. I haven't used MonitorinInterceptor in production because I've used dedicated profilers ex. Jetbrains dotTrace or profiler build in Azure.

I didn't face problems connected with AOP approach. Maybe my application isn't too big and that is the cause of that. I've used in my work postsharp when it was free. I used it in big scale application and it was working fine.

You asked about pitfalls. As I wrote in summary I've used AOP very carefully and didn't change methods results in an Interceptor.