Hello,

I'm trying to establish some logging best practices on my team using Akka.  
We're actually in exactly the same boat as the post described here: 
https://groups.google.com/forum/#!topic/akka-user/ap0bNazxrKo

We're using Java only and SLF4J with logback.  Currently, our actor code is 
using the LoggingAdapter, and the non-actor code is using straight SLF4J.  
This means any actors leveraging the non-actor code are unknowingly paying 
a synchronous logging penalty in their receive loop.

I'm personally struggling with minor idiosyncrasies between the 
LoggingAdapter and SLF4J, and at this point, I think I'd like to switch all 
of my actor code over to straight SLF4J for consistency.  Is this the worst 
idea ever?  In the post linked above, Patrik mentions
>
> Logging often involve synchronized code and even blocking file IO, i.e. 
> things you should not do in actors without considering the pitfalls
>

I guess I'd like to obtain a better understanding of what the pitfalls 
actually are.  Obviously this will negatively impact message throughput. In 
the case of my system, however, I don't expect to have to deal with 
thousands (or even hundreds) of messages per second, so I think message 
throughput is moot for me.  I'm more concerned with stability of the actor 
system itself - if I get blocked up on file IO, is my actor system going to 
take a dive, possibly disconnect from the cluster, or something 
catastrophic?

Alternatively, couldn't I go with an asyncAppender for logback and resolve 
the problem that way (or pursue log4j2's async logging)?  Any advice would 
be appreciated.

Thanks,
Nick

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to