-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I had written 4 Classes for Fiber All Blocking Java-API #215
Comments
PR #216 |
Is it really async? It's just thread created with task ... Not so much async-ish |
@fhntv24 It's really async. |
It's not real async, it's just blocking thread pool - and this what even you sad. Async means not syncronized ( aka asynchronous ), and you solution is just callback - and this is NOT async. Callbacks != async You can create real async DNS lookup using NIO, so solution same as JDBC, but I don't think what something better than that is required for DNS lookups. But for massive lookups ( 10k lookups ) - then you would need async DNS. And this is what Quasar is made for - it's for making toons of green threads ( aka fibers ) Also, btw, Netty has async resolvers. p.s. Yes I do know - running in another thread some task is asynchronous too. But IMHO, it's not what Quasar is made for. |
@fhntv24 UDP is very different from TCP. |
Yea, useless ... Right ... So what Netty did is magic ... And also DNS never uses TCP, never! Actually, DNS can use TCP for large request that are larger than one UDP packet, and you can use NIO for UDP. If you want to, you can use NIO even for IP protocol ( but there is no implementation of such, this is just "theory" ). I did use it for UDP, and it's really easy to do. Please, do not say things that you don't know. If it's soo different, then how DatagramSocket.receive may know what you are the one who did DNS request? Answer is simple, UDP uses ports too (Incoming and outcoming), and even if there is no real connection - dns must answer to you some-how. Connection-less doesn't mean what you cannot use NIO with it. edit: |
@fhntv24 for your infomation : I had released a project BlackHolePy as a DNS proxy which convert UDP DNS requset to TCP。 |
Hi. I believe your functionality is already covered by |
@pron yes it is, and @linkerlin just made an bycicle. And he doesn't get what you could write async NIO powered UDP client/server. Also, checkout netty resolver. Yes, netty is pretty big, but maybe it could be an entire library that makes quarsar and netty work together? That would be pretty cool, as there is a lot of netty http clients and other pretty usefull async tools. |
@fhntv24 Please keep your tone respectful; everyone here is trying to help. |
@pron sorry, my bad. Also i may try to write DNS resolver using NIO only, but it could take some time. |
@pron Happy coding! Waiting for your good news! |
Could I commit them as a PR?
The text was updated successfully, but these errors were encountered: