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
Routing in Reel
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
  6 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
 
Doug Mayer  
View profile  
 More options Nov 6 2012, 12:02 am
From: Doug Mayer <dougtma...@gmail.com>
Date: Mon, 5 Nov 2012 21:02:55 -0800 (PST)
Local: Tues, Nov 6 2012 12:02 am
Subject: Routing in Reel

Has anyone tried hooking up routing within a Reel app? I wouldn't expect
anything terribly complex, perhaps just enough to support basic API-style
operations? http_router (https://github.com/joshbuddy/http_router) seems
like it might be usable in a Reel context.

Thanks!

--
Doug


 
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.
Tony Arcieri  
View profile  
 More options Nov 6 2012, 2:25 am
From: Tony Arcieri <tony.arci...@gmail.com>
Date: Mon, 5 Nov 2012 23:25:21 -0800
Local: Tues, Nov 6 2012 2:25 am
Subject: Re: Routing in Reel

The webmachine-ruby project has a Reel adapter, a router, and is also a
pretty nifty HTTP framework in general:

https://github.com/seancribbs/webmachine-ruby

On Mon, Nov 5, 2012 at 9:02 PM, Doug Mayer <dougtma...@gmail.com> wrote:
> Has anyone tried hooking up routing within a Reel app? I wouldn't expect
> anything terribly complex, perhaps just enough to support basic API-style
> operations? http_router (https://github.com/joshbuddy/http_router) seems
> like it might be usable in a Reel context.

> Thanks!

> --
> Doug

--
Tony Arcieri

 
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.
Grant Rodgers  
View profile  
 More options Nov 6 2012, 12:47 pm
From: Grant Rodgers <gra...@gmail.com>
Date: Tue, 6 Nov 2012 09:47:46 -0800 (PST)
Local: Tues, Nov 6 2012 12:47 pm
Subject: Re: Routing in Reel

Recent versions of reel include simple octarine integration:

require 'reel/app'

class FooApp
  include Reel::App

  get "/foo" do |request|
    [200, {}, "hello foo"]
  end

end

FooApp.new("0.0.0.0", 3010)


 
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 Mayer  
View profile  
 More options Nov 6 2012, 7:07 pm
From: Doug Mayer <dougtma...@gmail.com>
Date: Tue, 6 Nov 2012 18:07:48 -0600
Local: Tues, Nov 6 2012 7:07 pm
Subject: Re: Routing in Reel

Webmachine does indeed look pretty slick. I'm having trouble getting its adapter-based system to hook into our existing supervision tree, though. Are you aware of any design that may lend itself well to being started with a top-level supervision group?

I tried creating a wrapper around a Webmachine::Application instance but things seemed to run amok with traps being ignored, etc. Perhaps I just have a little something wrong, which I can dig into further, but I don't want to lose more time on it if it's a clear loser to those more comfortable with such a setup.

Thanks,
Doug


 
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.
Tony Arcieri  
View profile  
 More options Nov 6 2012, 7:19 pm
From: Tony Arcieri <tony.arci...@gmail.com>
Date: Tue, 6 Nov 2012 16:19:11 -0800
Local: Tues, Nov 6 2012 7:19 pm
Subject: Re: Routing in Reel

I'm working on a project which will be using Webmachine soon. I expect I'll
start running into the same problems ;)

There aren't many people using Webmachine + Reel yet (if you are, want to
speak up? ;) so unfortunately it's a bit rough around the edges.

--
Tony Arcieri

 
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 Mayer  
View profile  
 More options Nov 7 2012, 9:46 am
From: Doug Mayer <dougtma...@gmail.com>
Date: Wed, 7 Nov 2012 08:45:59 -0600
Local: Wed, Nov 7 2012 9:45 am
Subject: Re: Routing in Reel

I'd love to hear any solution you may come to when you're able to dig into it.

For now, I was able to remove the trap/sleep from Webmachine::Adapters::Reel#run and add an adapter_option for supervise_as to get it running. (Since I already used supervision groups, I had my own sleep it can hit.) I hooked the adapter's embedded Reel::Server shutdown into my existing supervision group's finalize, and it seems to cleanly terminate. It may be that to do this in a supervisor-aware way, we should make a separate entry point into Webmachine, letting the adapter know if it should handle supervision or not?

We'll see if this ends up causing more problems than it solves. :)


 
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 »