I’m trying to build a REST api directly in kdb. Unfortunately, -30!(::) for deferred response does not seem to be available for use in the .z.ph handler. Is there any way around this? I can’t see a way to implement a load balanced system without being able to make use of -30!(::) and I’d like to avoid setting up a REST api in another language in front of the kdb system. The error one gets when trying to use deferred sync is ‘Nothing to defer. Handle 11 was not expecting a response msg’
An update on this. The existing system we had consisted of a load balancer process (using deferred sync) in front of workers. Since deferred sync is not possible with http queries, we will remove the q load balancer process and allow nginx to load balance directly across the workers