Subscribing to KDB+ 'events'

Received: by 10.100.153.6 with SMTP id a6mr1349030ane.12.1234816128767; Mon, 16 Feb 2009 12:28:48 -0800 (PST)Date: Mon, 16 Feb 2009 12:28:48 -0800 (PST)X-IP: 209.6.234.174User-Agent: G2/1.0X-Google-Token: rcKhhAwAAADiaxxSmK-twsoSJ_3778aSX-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.48 Safari/525.19,gzip(gfe),gzip(gfe)Message-ID: <1d898f3c-c402-443e-b07e-fb018ae24626@e18g2000yqo.googlegroups.com>Subject: Subscribing to KDB+ 'events’From: andye To: “Kdb+ Personal Developers” X-Google-Approved: charlie@kx.com via web at 2009-02-16 20:46:53My KDB+ db holds realtime security prices and is updated via a Reutersfeed handler.Can KDB+ publish events to a message queue (TIBCO, MQ,…) when aprice change happens ?i.e. how do message based applications get notified that a new pricehas arrived for security xyz ?Many Thanks.

This is done by kdb+tick. See previous thread at http://tinyurl.com/d6rs9pand the kx site http://kx.com/Products/kdb+tick.php .On Feb 17, 4:28?am, andye <andykedwa…> wrote:> My KDB+ db holds realtime security prices and is updated via a Reuters> feed handler.> Can KDB+ publish events to a message queue (TIBCO, MQ,…) ?when a> price change happens ?> i.e. how do message based applications get notified that a new price> has arrived for security xyz ?>> Many Thanks.</andykedwa…>

Thanks Chris.To get a “new price” event published to MQ, here’s how I plan toproceed:1. I create an adapter in Java2. my adapter uses the Q/Java API3. my adapter subscribes to KDB+ in a forever loop4. my adapter gets the next price from KDB+, performs sometransformation and publishes an event to MQ.Chris (or anyone), does 1-4 make sense.Many thanks!A—On Feb 16, 7:36?pm, Chris Burke <cdbu…> wrote:> This is done by kdb+tick. See previous thread athttp://tinyurl.com/d6rs9p> and the kx sitehttp://kx.com/Products/kdb+tick.php.>> On Feb 17, 4:28?am, andye <andykedwa…> wrote:>> > My KDB+ db holds realtime security prices and is updated via a Reuters> > feed handler.> > Can KDB+ publish events to a message queue (TIBCO, MQ,…) ?when a> > price change happens ?> > i.e. how do message based applications get notified that a new price> > has arrived for security xyz ?>> > Many Thanks.</andykedwa…></cdbu…>

Date: Tue, 17 Feb 2009 11:44:43 +0800Message-ID: Subject: Re: [personal kdb+] Re: Subscribing to KDB+ 'events’From: Aaron Davies <aaron.davies>To: personal-kdbplus@googlegroups.comthe kdb+tick consistent way to do it would be to register with tick.qas a client. then you get pushed ticks on the “upd” callback, whichyou implement locally to perform your transformations and publish theeventi think(i’ve never really worked extensively with q/java interaction)On Tue, Feb 17, 2009 at 10:32 AM, andye wrote:>> Thanks Chris.>> To get a “new price” event published to MQ, here’s how I plan to> proceed:> 1. I create an adapter in Java> 2. my adapter uses the Q/Java API> 3. my adapter subscribes to KDB+ in a forever loop> 4. my adapter gets the next price from KDB+, performs some> transformation and publishes an event to MQ.>> Chris (or anyone), does 1-4 make sense.>> Many thanks!> A> —> On Feb 16, 7:36 pm, Chris Burke <cdbu…> wrote:>> This is done by kdb+tick. See previous thread athttp://tinyurl.com/d6rs9p>> and the kx sitehttp://kx.com/Products/kdb+tick.php.>>>> On Feb 17, 4:28 am, andye <andykedwa…> wrote:>>>> > My KDB+ db holds realtime security prices and is updated via a Reuters>> > feed handler.>> > Can KDB+ publish events to a message queue (TIBCO, MQ,…) when a>> > price change happens ?>> > i.e. how do message based applications get notified that a new price>> > has arrived for security xyz ?>>>> > Many Thanks.> >>– Aaron Daviesaaron.davies@gmail.com</andykedwa…></cdbu…></aaron.davies>