webserver questions

  1. Have any performance metrics been posted or documented for the kdb+webserver?2) Is there a way to firewall against lambda injections?3) Has anybody written a json de/serializer?Thanks,James

2008/5/23 JK Smith :>> 1) Have any performance metrics been posted or documented for the kdb+> webserver?no, the webserver provided is a simple example of the sort of thingyou can do by over-riding the default .z.ph (and .z.pp)> 2) Is there a way to firewall against lambda injections?you can lock it down as tightly as you like by modifying .z.ph and.z.pp (and .z.pw if you want to have userid+password signin)> 3) Has anybody written a json de/serializer?not that I know of, if you’d like to write one we’d be delighted tohost it on code.kx.com

> no, the webserver provided is a simple example of the sort of thing> you can do by over-riding the default .z.ph (and .z.pp)A shame. I need something production quality.> > 3) Has anybody written a json de/serializer?>> not that I know of, if you’d like to write one we’d be delighted to> host it on code.kx.comI’ve been working my way through the book, and preliminarily kdb+would appear to be a much more productive replacement technology for asuccessful trending and yield management commercial app I develop.This app is mission-critical for clients, so for new development I’dhave to hit the ground running using dev tools that are production-ready to support building web-facing service busses. I could handlethe json de/serialization I think, but it’s sort of a non-starter ifthe kdb+ web server code hasn’t been thoroughly beaten on andreasonably optimised. It would be difficult enough to convince therest of my team to consider any language that’s not the imperativelanguage du jour without also suggesting that we’d have to write andtest a https web server.I suppose using another web server for a front-end is doable, but I’dprefer everything on the backend be in kdb+. I’m surprised that yourexisting clients must be running in closed intranets with dedicatedlines. I don’t see anything in the docs so far that suggest any builtin security to protect the excellent remoting facilities.

Bump. The kx people usually around here seem scarce lately. A solidapp server with support for a https frontend would I think be a greatway to encourage more people to take a look at q/kdb+.

Jk,There are good webservers around I don’t think anyone will want tospare the money to license a kdb+ server just to use it a webserver.FelixOn 6/10/08, JK Smith wrote:>> Bump. The kx people usually around here seem scarce lately. A solid> app server with support for a https frontend would I think be a great> way to encourage more people to take a look at q/kdb+.>> >>

>> > 1) Have any performance metrics been posted or documented for the kdb+> > webserver?>> no, the webserver provided is a simple example of the sort of thing> you can do by over-riding the default .z.ph (and .z.pp)>Sample webserver? If there’s sample code anywhere, I’d love to lookat it. Particularly if that webserver uses the “body” of the HTMLrequest. I’m just about to start on this area or our prototypedsolution.I have the following scenario: client applications need to provide asmall table to the server and the server responds by doing acalculation involving both the client-supplied table and the server-resident data. The client-supplied table might have as few as 100rows or as many as 30,000 rows.I’m wondering how to “pass” this table from the client to the server.I’m writing the client code, so I can format the request in anywaywhich works or makes it easy. I assume the potential size of thedata means that URL-encoding (the table) is out of the question, sothe table will have to be “passed” through in the body of the HTMLrequest.Anyway, any code examples of webserver would be very gratefullyaccepted, and any showing the server accessing and using the body ofthe HTML request would be utterly fantastic. Like I said, I’m justabout to get into this.–Mike

> There are good webservers around I don’t think anyone will want to> spare the money to license a kdb+ server just to use it a webserver.Sure, but I’m not referring to something just serving web pages, butas another service bus interface in addition to tcp and q2q. As thingsappear to stand, if I wanted to build a service bus based on q/kdb+,I’d have to make calls from some web server x to the bus. Then I feellike I’d be dealing with disparate scaling characteristics and a FFI.A comprehensive q/kdb+ solution would be preferable, no?

On Tue, Jun 10, 2008 at 7:41 PM, Mike Thompson<mike.thompsonator> wrote:>> no, the webserver provided is a simple example of the sort of thing>> you can do by over-riding the default .z.ph (and .z.pp)>>>> Sample webserver? If there’s sample code anywhere, I’d love to look> at it. Particularly if that webserver uses the “body” of the HTML> request. I’m just about to start on this area or our prototyped> solution.headers are available inside the web handler .z.ph, presumablyincluding something about the method (GET/POST/etc.). i’m not to up onhttp, but iirc, a POST is just a blob of data with appropriateheaders, isn’t it? the only web code i know of is the default server,which is implemented in q.k. i don’t think it deals with POST, butthere’s definitely at least URL parsing, if not formal use of GET,since you can put a query in the URL.-- Aaron Daviesaaron.davies@gmail.com</mike.thompsonator>