hosted Jiffy

16 views
Skip to first unread message

jnthnlstr

unread,
Jul 9, 2008, 6:11:34 AM7/9/08
to jiffy-web
Hello,

I take it that Jiffy if something that I have to host myself. Is there
anything in the pipeline for a Jiffy service, which I just point my
client at?

Thanks,



J.

Scott Ruthfield

unread,
Jul 9, 2008, 10:24:29 AM7/9/08
to jiff...@googlegroups.com
We're not planning to provide one as WhitePages.com: it certainly makes sense for someone to do so.

Steve Souders

unread,
Jul 9, 2008, 11:52:03 AM7/9/08
to jiff...@googlegroups.com
Google Ajax API Libraries ( http://code.google.com/apis/ajaxlibs/ ) would be a good way to do this, but that focuses more on JS libraries.

I'm about to host a similar industry-wide .js file on Google App Engine. That would be a good choice for this. Scott - I'll circle back with you afterwards and give you the "howto".

-Steve

Scott Ruthfield

unread,
Jul 9, 2008, 12:30:27 PM7/9/08
to jiff...@googlegroups.com
My assumption was that J was asking about hosting the Jiffy service and data storage/reporting, not the js file. The js file is certainly interesting, though!

-Scott

Jonathan Lister

unread,
Jul 11, 2008, 9:20:42 AM7/11/08
to jiff...@googlegroups.com
That's right, am keen to see the back-end hosted so that non back-end developers can take advantage of the service.



J.

Patrick McFadin

unread,
Jul 17, 2008, 4:27:37 PM7/17/08
to jiffy-web
The only thing that could be hosted would be the data loading and
reporting after the data is collected. The AJAX callback has to go
back to the exact originating server URL. You would have to host the
content as well as the jiffy collection URI as an entire package.

On Jul 11, 6:20 am, "Jonathan Lister" <jnthnl...@googlemail.com>
wrote:
> That's right, am keen to see the back-end hosted so that non back-end
> developers can take advantage of the service.
>
> J.
>
>
>
> On Wed, Jul 9, 2008 at 5:30 PM, Scott Ruthfield <scot...@gmail.com> wrote:
> > My assumption was that J was asking about hosting the Jiffy service and
> > data storage/reporting, not the js file. The js file is certainly
> > interesting, though!
>
> > -Scott
>
> > On Wed, Jul 9, 2008 at 8:52 AM, Steve Souders <st...@souders.org> wrote:
>
> >>  Google Ajax API Libraries (http://code.google.com/apis/ajaxlibs/)
> >> would be a good way to do this, but that focuses more on JS libraries.
>
> >> I'm about to host a similar industry-wide .js file on Google App Engine.
> >> That would be a good choice for this. Scott - I'll circle back with you
> >> afterwards and give you the "howto".
>
> >> -Steve
>
> >> On 7/9/2008 7:24 AM, Scott Ruthfield wrote:
>
> >> We're not planning to provide one as WhitePages.com: it certainly makes
> >> sense for someone to do so.
>
> >> On Wed, Jul 9, 2008 at 3:11 AM, jnthnlstr <jnthnl...@googlemail.com>

Arlen

unread,
Jul 17, 2008, 4:40:42 PM7/17/08
to jiffy-web
What would the jiffy developers suggest for the best way to separate
your production web servers from the server recording the performance
data, say for instance your running IIS and you cant run Apache to
record the data on the same machine. Ajax will not work across
different hosts, domains or ports so how could you send those ajax
requests to another server? There are some ways around the AJAX cross-
domain security features with url re-writing but it requires a web-
load balancer such as an F5 in our environment, would this even be
possible without such a device?

Scott Ruthfield

unread,
Jul 17, 2008, 5:01:05 PM7/17/08
to jiff...@googlegroups.com
Jack or Devin might have a different solution, but the easiest path might just be to log to your IIS (servers). There's nothing specific about Apache that's necessary for this, and (I assume?) IIS can record AJAX posts just as well as Apache can.

(If you do that, please post the proxy.)

-Scott

Patrick McFadin

unread,
Jul 17, 2008, 5:41:05 PM7/17/08
to jiff...@googlegroups.com
IIS logs to a funky format and it's not even close to as flexible as Apache.

I'll find out what it will take and send whatever it is. (config, setup docs, etc...)

It may take modifying the injestor with a IIS flag.

Patrick

Ben Maldonado

unread,
Jul 17, 2008, 11:43:28 PM7/17/08
to jiff...@googlegroups.com
As for AJAX being sent to a server that is not on your Domain I would
suggest having Apache proxy those calls to the third party servers for
you since no response is required after the measure is called out via
AJAX.

I would probably do this if I was running IIS. I think setting up
apache to accept calls from measure and letting all other calls fall
through to your IIS stack might work. I would guess since the proxy is
so light it wouldn't cost anything to have it sitting in front of IIS
to catch these calls to the logger provided in the Jiffy build.

Ben

Jonathan Lister

unread,
Jul 25, 2008, 7:16:57 AM7/25/08
to jiff...@googlegroups.com
It is possible to make cross-domain AJAX requests if you access a html file from your local disk. I work on the TiddlyWiki open source project (tiddlywiki.com) and we make use of this all the time.

I can imagine a scenario where the central Jiffy host on the web communicates with my local testing ground using this ability, avoid the need to rely on proxies.



J.

Patrick McFadin

unread,
Jul 25, 2008, 11:16:55 AM7/25/08
to jiff...@googlegroups.com
Here is a nice description of the rules for AJAX:

http://en.wikipedia.org/wiki/Same_origin_policy

The basic premise is that the request has to be to the same protocol, url and port. Anything else is an error.

If you are doing local testing, I would suggest the jiffy firefox extention. http://billwscott.com/jiffyext/ It will give you all your timings in a nice graphical format and it doesn't have any AJAX restrictions.

Patrick

Patrick McFadin

unread,
Jul 25, 2008, 11:40:43 AM7/25/08
to jiff...@googlegroups.com
I just looked further down the wikipedia article and noticed that your local file work around you use in tiddlywiki is mentioned by name.

bb

unread,
Jul 25, 2008, 5:14:59 PM7/25/08
to jiffy-web
i just checked in a new version of jiffy.js that allows cross domain
collection by dynamic creation of img tags. i would appreciate it if
folks tried it out to verify it works in the variety of situations the
real world provides.


bb.

On Jul 25, 8:40 am, "Patrick McFadin" <pmcfa...@gmail.com> wrote:
> I just looked further down the wikipedia article and noticed that your local
> file work around you use in tiddlywiki is mentioned by name.
>
> On Fri, Jul 25, 2008 at 8:16 AM, Patrick McFadin <pmcfa...@gmail.com> wrote:
> > Here is a nice description of the rules for AJAX:
>
> >http://en.wikipedia.org/wiki/Same_origin_policy
>
> > The basic premise is that the request has to be to the same protocol, url
> > and port. Anything else is an error.
>
> > If you are doing local testing, I would suggest the jiffy firefox
> > extention.http://billwscott.com/jiffyext/It will give you all your
> > timings in a nice graphical format and it doesn't have any AJAX
> > restrictions.
>
> > Patrick
>
> > On Fri, Jul 25, 2008 at 4:16 AM, Jonathan Lister <jnthnl...@googlemail.com>
> > wrote:
>
> >> It is possible to make cross-domain AJAX requests if you access a html
> >> file from your local disk. I work on the TiddlyWiki open source project (
> >> tiddlywiki.com) and we make use of this all the time.
> >> I can imagine a scenario where the central Jiffy host on the web
> >> communicates with my local testing ground using this ability, avoid the need
> >> to rely on proxies.
>
> >> J.
>
> >> On Fri, Jul 18, 2008 at 4:43 AM, Ben Maldonado <benmaldon...@gmail.com>wrote:
>
> >>> As for AJAX being sent to a server that is not on your Domain I would
> >>> suggest having Apache proxy those calls to the third party servers for
> >>> you since no response is required after the measure is called out via
> >>> AJAX.
>
> >>> I would probably do this if I was running IIS. I think setting up
> >>> apache to accept calls from measure and letting all other calls fall
> >>> through to your IIS stack might work. I would guess since the proxy is
> >>> so light it wouldn't cost anything to have it sitting in front of IIS
> >>> to catch these calls to the logger provided in the Jiffy build.
>
> >>> Ben
>
> >>> On Thu, Jul 17, 2008 at 2:01 PM, Scott Ruthfield <scot...@gmail.com>
> >>> wrote:
> >>> > Jack or Devin might have a different solution, but the easiest path
> >>> might
> >>> > just be to log to your IIS (servers). There's nothing specific about
> >>> Apache
> >>> > that's necessary for this, and (I assume?) IIS can record AJAX posts
> >>> just as
> >>> > well as Apache can.
>
> >>> > (If you do that, please post the proxy.)
>
> >>> > -Scott
>

Devin Ben-Hur

unread,
Jul 25, 2008, 6:48:43 PM7/25/08
to jiff...@googlegroups.com
bb wrote:
> i just checked in a new version of jiffy.js that allows cross domain
> collection by dynamic creation of img tags. i would appreciate it if
> folks tried it out to verify it works in the variety of situations the
> real world provides.

--- jiffy.js (revision 107)
+++ jiffy.js (revision 106)
@@ -268,1 +277,1 @@
- var strParams = (typeof(params)=='string') ? params :
Telemeter.utils.serialize(params);
+ var strParams = (typeof(params)=='string') ? params :
Jiffy.utils.serialize(params);

Ben: I don't understand this change from Jiffy to Telemeter. There is no
Telemeter object visible.

I've fixed it in r108.

-Devin

bb

unread,
Jul 26, 2008, 3:36:04 AM7/26/08
to jiffy-web
thanks for catching that. i patched the changes back in from a very
different codebase i've created and missed that line. the different
name lets me keep track of which codebase i'm in.


bb.
Reply all
Reply to author
Forward
0 new messages