Sounds great!

/Patrik

> 25 apr 2014 kl. 18:11 skrev Chris Baxter <cbax...@gmail.com>:
> 
> Hi Patrick.  I will try and boil this down to something much simpler before 
> taking out a ticket.  Thanks for looking into it for me.
> 
> Yes, I'm just starting to familiarize myself with the new Akka reactive 
> streams api.  This is just a prototype to get myself familiar with the inner 
> workings of the core IO stuff.  I'm really waiting for reactive streams to 
> come out and then I plan on building on top of that as it will be much 
> cleaner and simpler.
> 
>> On Friday, April 11, 2014 2:32:37 PM UTC-4, Chris Baxter wrote:
>> I'm using the latest release of Akka (2.3.2) and I've been playing around 
>> with the Tcp Api a bit, trying to get familiar with how it works.  In doing 
>> so, I've been writing a little Memcached binary client.  This usage of Tcp 
>> is a little different then the examples in the docs in that the connection 
>> is kept alive and never closed (unless the peer closes the connection in 
>> which a reconnect will happen).  In my little prototype, I'm using the Ack 
>> based back-pressure solution.  I also recently switched to pullMode for 
>> reads because I found that when I didn't, so many reads were coming when I 
>> was hammering it with load that it took forever to receive the write ack 
>> thus delaying the next write and slowing throughput down.  When I switched 
>> to pullMode, things sped up, but now I'm running into a strange issue where 
>> I eventually do not receive an Ack for one of the writes that I made which 
>> pretty much kills the flow as it's the acks that keep data flowing from my 
>> memcached node actor into the connection actor.  I enabled trace logging and 
>> more often then not, when this happens, I see this is the log as the last 
>> log message from the selection handler:
>> 
>> [DEBUG] [04/11/2014 14:11:02.281] [couch-akka.actor.default-dispatcher-22] 
>> [akka://couch/system/IO-TCP/selectors/$a/0] Wrote [0] bytes to channel
>> 
>> I can post my code if need be, but I just wanted to first see if anyone else 
>> has ever seen this behavior.  
>> 
> 
> -- 
> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to