The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Sergio Bossa <sergio.bo...@gmail.com>
Date: Thu, 12 Nov 2009 09:32:19 +0100
Local: Thurs, Nov 12 2009 3:32 am
Subject: Re: Threading Policies
On Thu, Nov 12, 2009 at 9:14 AM, Stefan Weber <stefan.we...@gmail.com> wrote:
Glad you agree :)
> I understand this reasoning and think it makes sense. To be honest, the > suggestion I made to allow concurrent handlers if the @ThreadSafe annotation > is not very clean. > I think this is a good idea and had it in mind as well. I was a bit
I know, I know, that's why I was recently considering to add to
> reluctant to do this because it would push some of the concurrency burden > that I could get rid of with Actorom back to the application. But given that > you also suggest to do it this way I will try this. Actorom a bunch of commonly used handler implementation, such as "BalancingActor", "OffloadingActor" and so on ... do you think it could be a worthy addition? > Actually, I had to ideas how to implement it:
Agree: and #2 actually does what you describe in #1 under the hood, so
> [CUT] > I prefer solution 2 because it is simpler. don't reinvent the wheel :) > The only small doubt I have is
Absolutely agree: I don't think creating Runnable objects would be a
> that I have to create a new Runnable for every message. I don't have enough > experience to guess how expensive this will be in practice but I assume it > will be easy to spot in case it really becomes a bottleneck. What do you > think? problem and just in case you may want to tune your garbage collection to accommodate the large number of short-lived objects (by tuning the eden space) ... anyways, go with it and keep me posted. Cheers,
Sergio B.
-- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||