DNS , file length, and other async issues.
Norman Maurer
norman.maurer at googlemail.com
Fri Oct 21 01:36:31 EDT 2011
2011/10/20 Kevin Burton <burton at spinn3r.com>:
>>
>> you are right calling File.length this way is prolly not a good thing.
>> You would be better of to add an ExecutionHandler in front of it which
>> will offload the task to an other ThreadPool and so keep the
>
> It's a shame that it would make the examples difficult to grok but doing the
> right thing in the examples is probably the right thing.
>
>>
>> IO-Worker-Thread not blocked.
>>
>> The same is true for DNS stuff.
>>
>> There is also a async DNS provider called dnsjnio which use dnsjava.
>> This allows you todo DNS queries in a non-blocking manner.
>>
>
> I was looking at dnsjava (which seems to be as old as time) ... I'll have
> to take a look at this.
> We have the need for a decent HTTP proxy for some internal stuff here at
> work and we aren't really happy with Node.js or tinyproxy or the other
> options.
> Doing something like this in netty would be straight forward but I'd want it
> to do DNS, etc correctly.
> Kevin
> --
>
> Founder/CEO Spinn3r.com
>
> Location: San Francisco, CA
> Skype: burtonator
>
> Skype-in: (415) 871-0687
You are right dnsjava is "old" but its quite stable ;) And you will
see a new release once or two times a year. So nothing to worry about.
We use it here without problems in a few projects. Some of them make
also use of dnsjnio to make it work in a asynchronous way.
Bye,
Norman
Ps: About the examples you are prolly right. I will commit a update shortly...
More information about the netty-users
mailing list