Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Dispatch 0.9.3 released
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nathan Hamblen  
View profile  
 More options Oct 28 2012, 1:38 pm
From: Nathan Hamblen <nat...@technically.us>
Date: Sun, 28 Oct 2012 13:38:41 -0400
Local: Sun, Oct 28 2012 1:38 pm
Subject: Dispatch 0.9.3 released

Retries, Http auto-shutdown, json4s, Http config, path appender
correctness *and* completeness (finally)...

http://notes.implicit.ly/post/34495822045/dispatch-0-9-3


 
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.
Adam Shannon  
View profile  
 More options Oct 30 2012, 10:20 am
From: Adam Shannon <a...@ashannon.us>
Date: Tue, 30 Oct 2012 09:19:19 -0500
Local: Tues, Oct 30 2012 10:19 am
Subject: Re: Dispatch 0.9.3 released
Reboot is a rewrite of the dispatch project. The current release is
the version 0.9.3. You'll probably have to re-think a bit on how to
best use dispatch. It's a lot more async in nature now.

On Mon, Oct 29, 2012 at 2:48 PM, Brian Maso <br...@blumenfeld-maso.com> wrote:
> What is the relationship between 0.9.3 and reboot? I'm ready to upgrade from
> 0.8.8 now, but I'm not sure which direction I should be going in.

> Brian Maso

> On Sunday, October 28, 2012 10:38:42 AM UTC-7, n8han wrote:

>> Retries, Http auto-shutdown, json4s, Http config, path appender
>> correctness *and* completeness (finally)...

>> http://notes.implicit.ly/post/34495822045/dispatch-0-9-3

--
Adam Shannon
Developer
University of Northern Iowa
Junior -- Computer Science B.S. & Mathematics
http://ashannon.us

 
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.
Doug Tangren  
View profile  
 More options Oct 30 2012, 1:30 pm
From: Doug Tangren <d.tang...@gmail.com>
Date: Tue, 30 Oct 2012 13:30:30 -0400
Local: Tues, Oct 30 2012 1:30 pm
Subject: Re: Dispatch 0.9.3 released

On Sun, Oct 28, 2012 at 1:38 PM, Nathan Hamblen <nat...@technically.us>wrote:

>  Retries, Http auto-shutdown, json4s, Http config, path appender
> correctness *and* completeness (finally)...

> http://notes.implicit.ly/post/34495822045/dispatch-0-9-3

Are there any changes in the last release that would break when using a
custom async client builder?

I just refactored some code to use the new Http case class copy interface (
note I'm incorporating the extra netty provider option introduced in the
last release )

https://github.com/softprops/distress/blob/master/src/main/scala/http...

I previously needed to override the underlying client so I could control
concurrency when running n number of requests. This used to work but now
when I run my app I get a ton of
java.util.concurrent.RejectedExecutionException errors (
https://gist.github.com/3981689 )

Was there any change that would break usage when using a custom client as
listed above that I should expect?

Thanks.


 
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.
Nathan Hamblen  
View profile  
 More options Oct 30 2012, 3:09 pm
From: Nathan Hamblen <nat...@technically.us>
Date: Tue, 30 Oct 2012 15:09:29 -0400
Local: Tues, Oct 30 2012 3:09 pm
Subject: Re: Dispatch 0.9.3 released

On 10/30/2012 01:30 PM, Doug Tangren wrote:

> On Sun, Oct 28, 2012 at 1:38 PM, Nathan Hamblen <nat...@technically.us
> <mailto:nat...@technically.us>> wrote:

>     Retries, Http auto-shutdown, json4s, Http config, path appender
>     correctness *and* completeness (finally)...

>     http://notes.implicit.ly/post/34495822045/dispatch-0-9-3

> Are there any changes in the last release that would break when using
> a custom async client builder?

Yep, check notes.implicit.ly.

Nathan


 
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.
Doug Tangren  
View profile  
 More options Oct 30 2012, 6:43 pm
From: Doug Tangren <d.tang...@gmail.com>
Date: Tue, 30 Oct 2012 18:43:08 -0400
Local: Tues, Oct 30 2012 6:43 pm
Subject: Re: Dispatch 0.9.3 released

On Tue, Oct 30, 2012 at 3:09 PM, Nathan Hamblen <nat...@technically.us>wrote:

Arg! I caught it on the second pass. "The Http case class refactor is
likely to break code that does any significant customization of its Http
 instance" I do like the new interface and the fact that I can pass in my
own client (async http client builder is very customizable) but I'm not
sure which client options are now off limits. I'm only using two or three
and I immediately was thrown these exceptions. I'll check out the new
factory methods provided to see if the can accomplish what the underlying
builder options I'm using did without changing behavior.

For future reference, is there a white list for what options can be
configured on the client and a black list for those that will break? I'll
try and avoid those in the future.


 
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.
Nathan Hamblen  
View profile  
 More options Oct 30 2012, 7:15 pm
From: Nathan Hamblen <nat...@technically.us>
Date: Tue, 30 Oct 2012 19:15:55 -0400
Local: Tues, Oct 30 2012 7:15 pm
Subject: Re: Dispatch 0.9.3 released

On 10/30/2012 06:43 PM, Doug Tangren wrote:

Hm, I wasn't expecting any runtime exceptions. Is that Client.of def
perhaps called more than once? Generally you should only use one Http
instance.

 
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.
Doug Tangren  
View profile  
 More options Oct 31 2012, 1:10 am
From: Doug Tangren <d.tang...@gmail.com>
Date: Wed, 31 Oct 2012 01:03:05 -0400
Local: Wed, Oct 31 2012 1:03 am
Subject: Re: Dispatch 0.9.3 released

On Tue, Oct 30, 2012 at 7:15 PM, Nathan Hamblen <nat...@technically.us>wrote:

It's called once per run and shared between many requests.

I factored in some of the new changes but am stuck on how to define a
Success instance for a Promise of type Promise[Response] (I'm using an
identity function handler) Below is a snippet from my code with some extra
inline comments sprinkled in for context

      // a noop handler that just tracks timing of a handled requests
       //
https://github.com/softprops/distress/blob/master/src/main/scala/http...
      val ts = new Timestamp

      // I used to use underlying clients retry handling for failed requests
      // the retry.Directly call below doesn't compile because the handler
      // uses the identity function handler which
      // is a Promise[Response] Not Promise[Either[..,..]] or
Promise[Option[...]]
      // so there are no implicit param for its type defined.

      // the underlying client defined errors for its retry interface as
network errors
      //
https://github.com/AsyncHttpClient/async-http-client/blob/master/api/...

      // how would can I handle these same kind of network error retries
using the new dispatch retry interface?

      retry.Directly(3)(client(req > ts)
        .onComplete({
          case _ => // aggregate completion
        })
        .onSuccess({
          case _ => // aggregate success
        })
        .onFailure({
          case _ => // aggregate failure
        }))


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »