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
Intrathread/process pubsub?
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
  4 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
 
DJW  
View profile  
 More options Jan 8, 12:28 am
From: DJW <ward.dav...@gmail.com>
Date: Sat, 7 Jan 2012 21:28:10 -0800 (PST)
Local: Sun, Jan 8 2012 12:28 am
Subject: Intrathread/process pubsub?
I've been reading up on CherryPy's wspbus but couldn't find a concrete
answer for a problem I'm trying to solve.

Rough outline is that I am writing a on-demand javascript coverage
utility.  I overrode the stock staticdir tool to accomplish this, but
now I wanted to implement a simple filter to decide where to serve the
real JS resource or an instrumented version.

The crux of it is that in my version of staticdir I would need to send
a query over the bus to a central control subscriber which would
return True/False Process/Pass-thru.  Is something like this possible
with wspbus or should I look to use an external message queue service.


 
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.
Anders Langworthy  
View profile  
 More options Jan 8, 12:21 pm
From: Anders Langworthy <and...@anderware.us>
Date: Sun, 8 Jan 2012 12:21:22 -0500
Local: Sun, Jan 8 2012 12:21 pm
Subject: Re: [cherrypy-users] Intrathread/process pubsub?

On Sat, Jan 07, 2012 at 09:28:10PM -0800, DJW wrote:
> I've been reading up on CherryPy's wspbus but couldn't find a concrete
> answer for a problem I'm trying to solve.

> Rough outline is that I am writing a on-demand javascript coverage
> utility.  I overrode the stock staticdir tool to accomplish this, but
> now I wanted to implement a simple filter to decide where to serve the
> real JS resource or an instrumented version.

> The crux of it is that in my version of staticdir I would need to send
> a query over the bus to a central control subscriber which would
> return True/False Process/Pass-thru.  Is something like this possible
> with wspbus or should I look to use an external message queue service.

This should be possible with wspbus.  You'd write your central
subscriber as a plugin.  See for example the way the template tool &
plugin interact in Sylvain's app here:
https://bitbucket.org/Lawouach/twiseless/src

 
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.
DJW  
View profile  
 More options Jan 9, 5:18 am
From: DJW <ward.dav...@gmail.com>
Date: Mon, 9 Jan 2012 02:18:05 -0800 (PST)
Local: Mon, Jan 9 2012 5:18 am
Subject: Re: Intrathread/process pubsub?
Looks like it is possible:

Subscriber side calls on the bus to get a new mako.Template instance
https://bitbucket.org/Lawouach/twiseless/src/d171fde9e454/lib/tool/te...

And service responds here:
https://bitbucket.org/Lawouach/twiseless/src/d171fde9e454/lib/plugin/...

Very nice and much appreciation for pointing this repository out.

On Jan 8, 10:21 am, Anders Langworthy <and...@anderware.us> wrote:


 
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.
Sylvain Hellegouarch  
View profile  
 More options Jan 9, 5:51 am
From: Sylvain Hellegouarch <s...@defuze.org>
Date: Mon, 9 Jan 2012 11:51:57 +0100
Local: Mon, Jan 9 2012 5:51 am
Subject: Re: [cherrypy-users] Re: Intrathread/process pubsub?

On Mon, Jan 9, 2012 at 11:18 AM, DJW <ward.dav...@gmail.com> wrote:
> Looks like it is possible:

> Subscriber side calls on the bus to get a new mako.Template instance

> https://bitbucket.org/Lawouach/twiseless/src/d171fde9e454/lib/tool/te...

> And service responds here:

> https://bitbucket.org/Lawouach/twiseless/src/d171fde9e454/lib/plugin/...

> Very nice and much appreciation for pointing this repository out.

Yes that's about it really. Note though that the bus implementation in CP
is straightforward and runs within the current process's loop. In other
words, the longer your plugins take to perform their tasks, the worse your
performance may become. It could be interesting to have the bus implemented
atop zeromq or something similar someday.

--
- Sylvain
http://www.defuze.org
http://twitter.com/lawouach


 
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 Older topic »