node-basex

Sunday, 3 April 2016 · 4 messages · last reply 8 Apr 2016
K
kleist-digital3 Apr 2016 22:46 #
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
AB
Andy Bunce4 Apr 2016 11:55 #
Hi again Günter,
Quoted text · kleist-digital · 1 line
>Just saw, that you’ve also written a node-based Basex-Client
Quoted text · kleist-digital · 1 line
>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
Quoted text · kleist-digital · 16 lines
On 3 April 2016 at 21:46, kleist-digital <kleist at 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 >
K
kleist-digital8 Apr 2016 13:52 #
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
Quoted text · Andy Bunce · 3 lines
> Am 04.04.2016 um 11:55 schrieb Andy Bunce <bunce.andy at 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.
AB
Andy Bunce8 Apr 2016 14:18 #
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-node-how-can-i-stream-http-response-from-a-request
Quoted text · kleist-digital · 17 lines
On 8 April 2016 at 12:52, kleist-digital <kleist at 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 at 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. > > >

⚡Generated with XQuery