Graph Databases: standalone with java api - database

I am looking into graph database systems, but most of them seem to be either embedded or accessible via html request. I am searching for a standalone server, accessible via a java api, that supports acid (and clustering), preferrably open source.
I like neo4j, but I don't want to embed my db or access it with (slow) html requests, it has to be accessible by multiple systems. If I got it all wrong and neo4j is a super choice, please provide a link or name to a suitable driver, if you know one. Thank you.

Check out InfiniteGraph. It is not open source, but there is a free version for up to 1 million nodes and edges.

Related

React Native - connect to PostgreSQL database

I would like to connect with React Native to an external database, like PostgreSQL, MySQL or what ever. Is this possible?
But first let me tell you something about my plan:
I will develop my application for multiple installations (multiple devices - one installation on one device). All devices are connected with a local network which is provided by a Windows installation (server). On the server runs a database (PostgreSQL) and I would like to connect to this database with all my devices.
The server (or in fact its database) should store tasks and each device should access to these tasks (read and write) locally.
I had also some other ideas like simple SMB-XML file storage (but the problem with collisions) and an SQLite database on an SMB shared file - but the website of SQLite tells that this will not avoid problems with multiple accesses. Therefore I need another local solution. This brought me to provide a database which is accessible from the local network.
I would be very grateful if someone has a note how to solve this problem.
Thank you!
In order to access a database directly from react native you would need a pure JavaScript database driver. A quick google search produced a JavaScript drivers for PostgreSQL (https://github.com/brianc/node-postgres) but it is written for Node.js and I doubt it will work in JavaScript Core or Chrome. CouchDB works via a REST API and it's actually intended for direct access by multiple clients. There are multiple JavaScript clients available for that.
BUT why do you want your clients to connect to the DB directly? What you describe seems like a pretty standard application model. You'll just need a backend running on your server talking to the DB and providing an API. Good old web development. If you want to write JavaScript on the backend I suggest using Node.js
If you really can't or don't want to write a backend, there are several services that provide API for data storage and even some data processing. But of course they aren't local. Have a look at parse.com or firebase.com for example.

How to setup an online database for my cross-platform games?

How to setup database whose data can be obtained by my cross-platform games (Flash on Kongregate, Flash and JavaScript on my WordPress page, Android and iOS) and my WordPress page as well? The data to be saved are gameplay count (total and for each platform) and high scores.
I have no experience about this database thing.
And my games will be made in Haxe.
You will want to have a redundant Database, preferably mysql. You can access a mysql database from almost any language / script.
Before you start that Project heads in have a look at what you need. I personally learn the best, if i find myself some example code, take it appart, look at each function if i don't know it already and then i try to find new ways of doing it with the functions provided.
Sqlite Database helper is a great start to create unlimited Databases just to see, how that works, how it looks inside a database, what is a primary key etc. You could even import the whole database to mysql, if you're very happy with it.
Choose a database of your choice, it could be mysql or mongodb.
Choose a server language of your choice and build a HTTP API to access your db. If you are using Haxe to build the server, you may want to target neko or php if you choose mysql as your db, or nodejs for mongodb. Because Haxe has mysql support for neko & php, and you can download mongodb drivers from npm if you choose mongodb and nodejs.
Then, from your games, just use the Http class provide in the Haxe standard library to access your Http API to get the data from your db.

How to list the namespaces of a Citrusleaf/AeroSpike host?

I want to list the namespaces on a host remotely using the C# Client SDK, and the documentation is very scarce about it.
I am aware of a server tool to do this but I need to query that from a maintenance tool that I am writing, so using the server console is not an option.
Does anybody know if this is possible and if so how to do it?
You can make an info call with the string "namespaces" and parse the returned value.
doc on c# info API: http://www.aerospike.com/apidocs/csharp/html/Methods_T_Aerospike_Client_Info.htm
You can get that information by emulating the logic that clmonitor utilizes to communicate with the Aerospike cluster. Clmonitor is written in Python; executing the 'info' command in clmonitor provides a wealth of information, a subset of which is the list of namespaces. I suggest that you emulate the logic used by clmonitor in your C# code to communicate with the cluster and then parse out the information that you require. In the future, I suggest that you take advantage of the Aerospike forums to ask questions about Aerospike. Thank you for your interest in Aerospike.

Is it possible to connect Adobe Flash CS to Database of any kind?

Can I build flash application that connects to database? (MySQL)
For example: Photo Gallery that brings me the photos from database...
Or Music Player...
Maybe PHP? :-)
AMF is a technology that allows a Flash app to execute remote code. Server side implementations exist for a number of server side environments and languages, check out the list in the wikipedia article.
Simple answer: yes.
As fvu mentioned, you can get into AMF which is an excellent choice for heavy lifting, but it's not required.
Using combinations of URLRequest, URLLoader and URLVariables it is very easy to send and receive data in HTTP requests, which then frees you to employ whatever server-side solution you prefer. The data format you choose is then also up to you; Flash natively supports XML, and full JSON support is found in as3corelib.
Perhaps Adobe FlashBuilder (formerly FlexBuilder) is something that would interest you.

Flash and database integration

I recently had a couple of flash products to do, which basically were a clients for some database (online games, movie players). In all of them I used PHP + MySQL as the server database and then made the flash client application work with those databases.
This was ok, but I'm somewhat interested if there is some other choice except PHP + SQL database for the server backend, which would be, like, more Flash-oriented or something (easier to deploy, etc).
Does someone know what can I use for that?
Thank you.
Any server script & database will work with flash. The URLLoader works with any HTTP request. All it's doing is making a request to the server for data.
IMHO PHP + MySQL is the way to go, but you could choose Python or Perl or ASP.net, with Oracle, or DBase, or whatever.
Flash has a nice implementation of XML, so passing data via XML works great. If your data doesn't change very much/often (or even if it does) you can generate static XML files for the flash player to hit. If it's content that changes often, then you'll want to request data directly from the server script.
Just make sure that you send the correct mime type from the server, so that the flash script will know what to do with the data.
I've personally really liked using PHP and MySQL as the backend for a lot of the mom and pop applications/websites I've done, and it serves it's purpose. XML is after all pretty easy to read so debugging is generally not too troublesome.
I think what you're after though is AMF (actionscript message format) this is the serialized version (if you're unfamiliar with the term basically the binary form of the object) of plain old actionscript objects, you can use BlazeDS (free from Adobe) as a component to the server. In big projects I've used some sort of J2EE server (like Websphere or Apache Tomcat), BlazeDS, Spring, and iBatis (Teradata DB sitting behind it but who cares :) ) with some pretty awesome success (setting up this sort of environment isn't trivial though... taken piece by piece it can be done and using build tools like maven makes life easier).
If you've got the gut for it I would recommend this route:
http://code.google.com/p/maven-blazeds-spring-archetype/
Alternatively check out amfphp a php backend that supports AMF or other AMF libraries for your language of choice, it's all very decoupled and each piece can be chosen based on what suits your needs best.

Resources