Hi Andy,
me again. Just saw, that you’ve also written a node-based Basex-Client. My frontend is a node-app. So far I’m using AJAX-calls, to communicate via the REST-Interface with the Basex-Server, in generell I use the run command to execute different queries.
Are there any advantages (disadvantages) to change to a classical Server-Client Scenario (performance, less resources, security)? You know, I want to use it in an OpenShift-Environment for the future.
Thanks for any advice.
Günter
Hi again Günter,
Just saw, that you’ve also written a node-based Basex-Client
There are quite a few https://www.npmjs.com/search?q=basex
Are there any advantages (disadvantages) to change to a classical
Server-Client Scenario I think it all depends what you want to do. I wrote my client before RESTXQ existed, now I find I can do (almost) everything I want from BaseX. So my client has not had much attention recently and it's handling of streaming and various edge cases could certainly be improved.
If I was looking to connect Node and BaseX now I would look at an http interface to RESTXQ, but this may not be the most performant, resource light option.
/Andy
On 3 April 2016 at 21:46, kleist-digital kleist@mail.dunzwolff.de wrote:
Hi Andy,
me again. Just saw, that you’ve also written a node-based Basex-Client. My frontend is a node-app. So far I’m using AJAX-calls, to communicate via the REST-Interface with the Basex-Server, in generell I use the run command to execute different queries.
Are there any advantages (disadvantages) to change to a classical Server-Client Scenario (performance, less resources, security)? You know, I want to use it in an OpenShift-Environment for the future.
Thanks for any advice.
Günter
Hi Andy,
I really don’t understand, what you mean with http interface to RESTXQ to connect Node and BaseX. Do you know any npms or libraries out there, to do this kind of http-interface?
Günter
Am 04.04.2016 um 11:55 schrieb Andy Bunce bunce.andy@gmail.com:
If I was looking to connect Node and BaseX now I would look at an http interface to RESTXQ, but this may not be the most performant, resource light option.
Hi Günter,
Not tried it but I was just thinking of something simple like [1]. No doubt there are higher level libraries out there but I have not looked. This would also work with BaseX REST (rest?run=..) but I like the ease of mapping urls on to code with RESTXQ.
/Andy
[1] http://stackoverflow.com/questions/33994908/while-creating-a-rest-api-in-nod...
On 8 April 2016 at 12:52, kleist-digital kleist@mail.dunzwolff.de wrote:
Hi Andy,
I really don’t understand, what you mean with http interface to RESTXQ to connect Node and BaseX. Do you know any npms or libraries out there, to do this kind of http-interface?
Günter
Am 04.04.2016 um 11:55 schrieb Andy Bunce bunce.andy@gmail.com:
If I was looking to connect Node and BaseX now I would look at an http
interface to RESTXQ, but this may not be the most performant, resource light option.
basex-talk@mailman.uni-konstanz.de