KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ Query Routing/ Load Balancing / asynchronous callbacks Re: Query Routing/ Load Balancing / asynchronous callbacks

  • simon_watson_sj

    Member
    April 14, 2022 at 12:00 am

    Thanks Dave,

    I still get no luck – I should say that if I open a port to 5003 directly using

    `h_gw set hopen 5003;

    I can get it to do say “5+6” (returning 11) or “til 5” (returning 1 2 3 4).

    As you advised, I restructured the gateway function:

    gw:{(neg `h_gw[])(`userQuery;x);`h_gw[]""}

    I now get an error back from

    gw(`EQUITY_MARKET_RDB;"select from trade where date=max date")

    where it doesn’t seem to recognize the table. It does return properly now though. I will add log functions to each component on the gw and see what gets done when. Also I should say, I took all the code directly from the query routing white paper. Perhaps I’m being too flippant with my cut and paste – either way, this process will get the skills built. I will report back with news from the logs.

    Simon