Can we write Gateway in a Multi-Tenant Architecture other then q

Hi All,

  Just wanted to know, Can we write our own gateway in a Multi-TenantArchitecture in another preferred language other than Q. 

  Found this reference:  https://code.kx.com/v2/wp/common_design_principles_for_kdb_gateways.pdf

  But example/design principles are preferably in Q.

Thanks and Regards,

 Pratap

This is possible if you implement q’s IPC protocol in your own implementation (or use c.java or other similar implementation of the protocol).

I managed to implement a gateway process in Java using Netty (https://netty.io/) as the basis some time ago. But there was quite a bit of work reverse engineering, as I didn’t use c.java or other existing Java implementation of the IPC protocol (had to implement it myself).

one could do a simple msg router, which doesn’t do much with the data (in terms of joins, data-types etc) - however, that would be quite limiting.

More recently, in v3.6, we added

https://code.kx.com/v2/kb/deferred-response/

which should help overcome some concerns about concurrency for gateway processes.