Thanks for the info, it didn't look possible. I guess I've misunderstood 
what APE is good for.

For most of what I want to do I can get away with rsync doing a push from 
the server generating the data to the server I want to process it via cron 
job. Follow that with a cron job on the processing server to search for new 
data every minute or so and voila everything takes care of itself pretty 
well. For the most part a couple of minutes worth of delay between data 
generation and processing isn't a big deal.

However, I currently have an app where I'd like to monitor market data as 
near to real-time as possible. One of my data sources uses Pusher to put 
out ticker updates. However, that Pusher service seems to have some timing 
issues - randomly dropped connections, several updates a second with the 
occasional file write/cache store/etc failing, etc, etc, - so I am 
considering devoting a server more or less to nothing but receiving those 
updates. I thought maybe I could use APE to push those Pusher updates to my 
other servers where the real math would happen. The benefit to a Pusher 
like service is the near real-time triggering of that math for only the 
market data that has changed rather than an infinite loop constantly 
reading & processing all the market data (most of which hasn't changed).

I can accomplish something similar using Gearman but the architecture that 
comes to mind is a lot more complicated.

Thanks again

On Thursday, May 15, 2014 4:41:06 PM UTC-6, Pablo wrote:
>
> Agree with Louis,
>
> Syncing data across servers is not what APE is for. Sure you could use 
> cUrl for this task as suggested but what ever you are trying to do, rethink 
> it, i think you have the wrong idea for a couple of reasons:
>
> - you are trying to sync applications written in PHP, not servers
> - you should consider having your applications share a storage resource 
> like a DB or Redis server 
> On May 15, 2014 5:25 PM, "Louis Charette" <[email protected]<javascript:>> 
> wrote:
>
>> I don’t think such a client exist. Furthermore, you would need to keep a 
>> connection open from PHP to the APE server to received data in realtime and 
>> I don’t think it’s that efficient using PHP. If the volume of data isn’t 
>> really big, another way to do it would be having APE push data manually to 
>> the server using a HTTP request. For example:
>>
>> Server #2 have hew data —> APE Server —> Server #1, #3, #4…
>>
>> But you could do something similar without APE Server in between (using 
>> CURL for instance)
>>
>>
>>   - Louis
>>
>> Le 2014-05-15 à 14:35, Gabriel Spradlin <[email protected]<javascript:>> 
>> a écrit :
>>
>> I'm looking into APE because I have several servers that I want to trade 
>> backend data. As a result I'm not running a website where I can copy and 
>> paste the JS into the page and have it update page values in real-time.
>>
>> I've seen plenty of examples of PHP inliine push which is great in that I 
>> can use a backend PHP process to grab the data, preprocess it and then push 
>> to everyone on a broadcast channel (assuming I've understood what APE is 
>> and how to use inline push). However, I have not seen any PHP clients for 
>> receiving data off of a channel. Are there any? I already have a PHP code 
>> base for dealing with the data once received and I have never programmed in 
>> Java or JS.
>>
>> I suspect I'd spend months finding little gotcha about the way JS 
>> operates differently from PHP. Bad or missing data will get expensive. As a 
>> result, I'm not interested in learning another language well enough to 
>> build a robust, well trapped, piece of data exchange code at this time.
>>
>> So if there is not PHP client I need to move on to some other solution.
>>
>> Thanks
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "APE Project" group.
>> To post to this group, send email to [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/ape-project?hl=en
>> ---
>> APE Project (Ajax Push Engine)
>> Official website : http://www.ape-project.org/
>> Git Hub : http://github.com/APE-Project/
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "APE Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>  -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "APE Project" group.
>> To post to this group, send email to [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/ape-project?hl=en
>> ---
>> APE Project (Ajax Push Engine)
>> Official website : http://www.ape-project.org/
>> Git Hub : http://github.com/APE-Project/
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "APE Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

--- 
You received this message because you are subscribed to the Google Groups "APE 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to