Gremlin - best approach for querying Titan db from Node.js - node.js

I am using Titan graph db with Cassandra and Elasticsearch, Node.js and building RESTful web services.
I am confused whether to connect to Gremlin server using HTTP or Web Sockets.
Please share your learnings and let me know if there are any good reads or video tutorials on this.

Note: Titan is no longer maintained, you should switch to JanusGraph, which was forked from Titan and is maintained by an active community of users and developers.
You can use https://github.com/jbmusso/gremlin-javascript which can be found in the "Language drivers" section of the Apache TinkerPop site.
You can find sample code in https://github.com/jbmusso/gremlin-javascript/tree/master/gremlin-client

Related

Electron Desktop Application communicating with remote NoSql server

I've begun to dive into developing a desktop application with electron. I have been interested in pairing this application with a NoSQL database to create users, display data, and do CRUD operations. I've considered databases such as MongoDB and CouchDB, and I'm curious if creating a desktop application that communicates with a database hosted elsewhere is a feasible goal.
I'm hoping that someone here can help direct me to great resources on creating a desktop application that works with a remote NoSQL database. Any advice here would be greatly appreciated!
I recommend the use of CouchDB, which uses a JSON based document format. CouchDB bundles the server and data storage functionality in a single product, providing a REST-like HTTP interface for document insertion, updates, retrieval and deletion.
Therefore, you'll be able to interact with CouchDB directly from within the Electron desktop application. Apache CouchDB Nano is the official Node.js library for accessing CouchDB.
The following additional factors speach for CouchDB:
It is open source.
It has comprehensive documentation.
It is available for Linux, macOS and Windows.
It's easily installed and quickly set up.
It can be installed on your local computer (for development), on your own servers, or in the cloud.
It supports Mango querying language (inspired from MongoDB).
It is highly scalable.
It is shipped with Fauxton web interface that lets you create, update, delete, view and query documents on the fly.
etc.

How to monitor ArangoDB with Newrelic

We’re having Newrelic application monitoring in many projects integrating with classical relational databases and mongo and recently started a new project with the ArangoDB as a multi-model graph database.
I cannot find any article on the web having both ArangoDB and Newrelic creatures in the topic.
Did anyone try to monitor a backend application with ArangoDB using Newrelic? Is it possible? Is it difficult?
If anybody knows, please share knowledge, describe available strategies and possible tactics.
We have a cookbook, that is meant for integration and monitoring of ArangoDB instances using Prometheus and Grafana.
https://docs.arangodb.com/devel/Cookbook/Monitoring/Collectd.html
There are to ways you could go about this. If you have some experience with Newrelic and feel motivated to adopt the above cookbook to Newrelic, we would not hinder you and help wherever we can.
Or you would go to our github repositpry and file a feature request after having stared us :) there.
In either case, you'd be awesome.

Akka (JVM) event-sourcing in Azure?

I am trying to deploy an Akka application on Azure, that uses the journal persistence plugin.
I cannot find a working combination when it comes to the persistence plugin I should use.
So far I looked into:
akka-persistence-mongo and Azure Document Store with Mongo driver: it does not work because akka-persistence-mongo is not compatible with the latest reactive-mongo version that supports SSL
akka-persistence-jdbc and an Azure SQL server: it seems the akka-persistence-jdbc is only compatible with Slick H2, Oracle and MySQL drivers
I do not have any strong performance requirements, this is why both solutions would have worked.
My best guess for the moment is akka-persistence-redis with Microsoft Azure Redis.
I am proposing a contribution to this plugin to make it compatible with Microsoft Azure Redis (authentication, as well as a strange error when calling zrangebyscore that I do not have with a local Redis).

What is best ORM framework to use with NodeJS and Informix DB. Also Support for Transaction management

Actually I'm planing to use NodeJS for web application development, my back-end DB is Informix, I'm looking for the ORM framework which best fit for Nodejs and also supports DB Transaction. Previously I used MyBatis with JAVA and Spring I'm wondering whether it supports or not.
Also it is very helpful if someone can provide an example/sample implementation fro CRUD operation using Informix, NodeJS (with or with out ORM)
I searched google with no luck. Appreciate your help. Thanks In advance
Here are some examples in multiple languages (java, javascript, python, etc) to help you get started with app development against Informix backend - https://github.com/ibm-informix/informix-client-examples
Web app development against Informix should be greatly simplified since REST APIs are available for accessing data in relational tables as well as collections. Here is a tutorial on the Informix REST APIs - http://www.slideshare.net/BrianHughes70/informix-rest-api-tutorial

Configuration between MongoDB,Cordova and Node.JS

How to integrate mongodb, nodejs and cordova in eclipse. As i am building hybrid mobile application.Basically i am looking for configuration between these three.
I am using similar technologies and discovered that MongoDB cannot be integrated directly on Android/Eclipse.
MongoDB is designed to run on a server with more resources than mobile typically offers, eg a lot of RAM with specialized memory mapping etc. I would not expect Cordova integration in the near future.
If the design is already set on Mongo/Node, you'll have to create your own persistent data layer. Check out this blog post and sample project (GIT):
http://coenraets.org/blog/2013/04/sample-application-with-backbone-js-and-twitter-bootstrap-updated-and-improved/
An earlier post specifically for PhoneGap / Cordova:
http://coenraets.org/blog/2013/06/building-modular-mobile-phonegap-apps-with-backbone-js-requirejs-and-topcoat/
If you are flexible on technologies, consider using CouchBase:
http://developer.telerik.com/featured/powering-hybrid-mobile-apps-couchbase/
Basically, it takes care of much of developer plumbing and allows you
to focus on building your amazing app. There are three components to
it:
Couchbase Lite – A standalone on-device lightweight embedded JSON database; you will use this to stow away data locally on the mobile
device with full CRUD (Create | Read | Update | Delete) features.
Sync Gateway – The bridge that allows you to securely synchronize on-device Couchbase Lite data with Couchbase Server backend.
Couchbase Server – A high performance scalable JSON database that serves as your backend in the cloud.
CouchBase is also compatible with NodeJS:
http://docs.couchbase.com/developer/node-2.0/introduction.html
The Couchbase Node.js SDK allows you to connect to a Couchbase cluster
from Node.js. It is a native Node.js modules and uses Couchbase's high
performance C library to handle communicating to the cluster over
Couchbase’s binary protocols.

Resources