<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mark Vollmary on Medium]]></title>
        <description><![CDATA[Stories by Mark Vollmary on Medium]]></description>
        <link>https://medium.com/@mark.arangodb?source=rss-bf18ceb0382b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZsVUGqe2SzchjL9BNG3Glw.png</url>
            <title>Stories by Mark Vollmary on Medium</title>
            <link>https://medium.com/@mark.arangodb?source=rss-bf18ceb0382b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:18:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mark.arangodb/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Foxx CLI — Managing Microservices]]></title>
            <link>https://medium.com/@mark.arangodb/foxx-cli-managing-microservices-ca19bd424eed?source=rss-bf18ceb0382b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca19bd424eed</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[arangodb]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[foxx]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Mark Vollmary]]></dc:creator>
            <pubDate>Wed, 02 May 2018 14:51:24 GMT</pubDate>
            <atom:updated>2018-05-02T14:51:24.317Z</atom:updated>
            <content:encoded><![CDATA[<p>Anyone who has ever worked with our <a href="https://docs.arangodb.com/latest/Manual/Foxx/">JavaScript framework Foxx</a> was faced at some point with the challenge to install its Foxx service in its current ArangoDB instance or to replace the installed service with local code changes. This is not a big deal and can easily be done through ArangoDB’s WebUI. However, we developers always want to become more productive and clicking through a graphical UI is not the best way. Furthermore, this procedure is almost impossible to use in an automated deployment process. That’s why we decided to develop a node-based CLI tool to manage Foxx services, called <a href="https://github.com/arangodb/foxx-cli">Foxx-CLI</a>, which we already released in version 1.1.</p><p>For all readers who have not tried Foxx until now, shame on you. No, seriously, you should really give it a try. Check out our <a href="https://docs.arangodb.com/latest/Manual/Foxx/GettingStarted.html">Getting Started</a> tutorial and come back here if you’ve written your first little Foxx service and would like to try it out in your running ArangoDB instance. If you have any question, join our <a href="https://slack.arangodb.com/">#foxx channel in our Slack Community</a>.</p><p>For those who are already in love with Foxx, let’s get started with the new CLI…</p><h3>Install</h3><p>Since the Foxx-CLI is a node module, it is dead-easy to install it by using npm or yarn.</p><h4>yarn</h4><pre>yarn global add foxx-cli</pre><h4>npm</h4><pre>npm install --global foxx-cli</pre><h3>Usage</h3><p>Now we can already start. After you’ve installed the Foxx-CLI, you should be able to use the Foxx program. You can learn more about the different commands Foxx supports by using the --help flag.</p><pre>foxx --help</pre><p>Let’s take a look at the most essential functionality — installing a Foxx service. For this we first switch to the directory of our Foxx service, where our manifest.json is located, and call the Foxx-CLI with the desired mountpoint, under which our service should be installed and accessible:</p><pre>cd my-service<br>foxx install /hello</pre><p>That was easy. By the way, we can install already bundled (zipped) services or specify a URL and download &amp; install the service from there. In order to optimally support the workflow of a developer, it is of course also possible to switch on the development mode via the Foxx-CLI or to replace the installed service with your local files by a single command. Here everyone can work out for themselves the optimal procedure how to use the CLI.</p><p><em>Upgrade service with local files</em></p><pre>foxx upgrade /hello</pre><p><em>Enable development mode</em></p><pre>foxx set-dev /hello</pre><h3>Bootstrapping</h3><p>After the initial release 1.0 we have extended the Foxx CLI with the command init, which allows you to bootstrap your Foxx service. This command comes with two additional options which allows you to create your basic service resources based on specific user input or just create an example service.</p><p><em>Create a minimal service in your current working directory</em></p><pre>foxx init</pre><p><em>Create a hello world example service</em></p><pre>foxx init -e</pre><p><em>Answer interactive questions</em></p><pre>foxx init -i</pre><p>In addition it is possible to generate boilerplate code for routers or scripts to your already existing local Foxx service.</p><p><em>Create and add a minimal router</em></p><pre>foxx add router &lt;name&gt;</pre><p><em>Create a router with crud operations for a given collection</em></p><pre>foxx add crud &lt;collection&gt;</pre><h3>Why a CLI?</h3><p>As already mentioned, many developers who work regularly with a terminal, prefer to type in their commands and are reluctant to clickclick themselves through a graphical UI. This is also more effective in most cases. But there are other cases where you can reach a technical limit with a WebUI, for example keyword automation. We live in a time where everyone knows how important testing is. Nowadays, CI (continuous integration) is seen everywhere, and there are enough tools to support it. For some time already, these tools have also been using Docker more and more. For a CI tool or a Docker container, clicking through a WebUI is not an option. Here a CLI tool like Foxx-CLI fits just right.</p><h3>Docker</h3><p>Those of you who ran <a href="https://hub.docker.com/_/arangodb/">ArangoDB in Docker</a> before may also already know the possibility to run shell scripts at initialization time of its ArangoDB instance within the container. This is the perfect environment in which our new Foxx CLI can unleash its potential. Here it is now possible to easily install your own or third party Foxx services automatically in your running Docker ArangoDB instance and directly configure it. For some time now we have been offering <a href="https://hub.docker.com/r/arangodb/arangodb-preview/">alpin based docker images</a>, which are tagged by us as preview and are not officially published. These Docker images already include our Foxx CLI. So if you want you can start right here, but let me say again that this image is a preview release and we can not recommend to use it in production. Create a shell script, e.g. ./init-scripts/install-service.sh with the following content:</p><pre>foxx install /hello /opt/foxx-service</pre><p>When running a Docker container, based on our image arangodb/arangodb-preview:3.3, mount your shell script to /docker-entrypoint-initdb.d and your Foxx service directry to the one used in your shell script.</p><pre>docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 -p 8529:8529 \<br>  -v $(pwd)/init-scripts:/docker-entrypoint-initdb.d \<br>  -v $(pwd)/my-service:/opt/foxx-service \<br>  arangodb/arangodb-preview:3.3</pre><p>After running this command you should see the following output:</p><pre>Initializing root user...Hang on...<br>Initializing database...Hang on...<br>/entrypoint.sh: running /docker-entrypoint-initdb.d/install-service.sh<br>Installed service at &quot;/hello&quot;.<br>Database initialized...Starting System...</pre><p>Congrats, you have successfully started a Docker container with a running ArangoDB instance with your Foxx service installed.</p><h3>Future plans</h3><p>We are currently in the process of planning and implementing additional functionality which hopefully further simplifies your life with Foxx. To not create stuff you guys don’t need, feedback is really appreciated to guide our efforts. Feel free to open feature requests, send us ideas and any other feedback on <a href="https://github.com/arangodb/foxx-cli">GitHub</a>.</p><p><em>As previously published on </em><a href="https://www.arangodb.com/2018/04/foxx-cli-managing-microservices/"><em>ArangoDB</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca19bd424eed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring is coming! — ArangoDB meets Spring Data]]></title>
            <link>https://medium.com/@mark.arangodb/spring-is-coming-arangodb-meets-spring-data-c486b297cbe5?source=rss-bf18ceb0382b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c486b297cbe5</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[arangodb]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[spring-data]]></category>
            <dc:creator><![CDATA[Mark Vollmary]]></dc:creator>
            <pubDate>Mon, 05 Mar 2018 14:45:38 GMT</pubDate>
            <atom:updated>2018-03-05T14:45:38.606Z</atom:updated>
            <content:encoded><![CDATA[<p>Last year we got a lot of requests from our customers to provide Spring Data support for ArangoDB. So we listened and teamed up with one of our bigger customers from the financial sector to develop a <a href="https://github.com/arangodb/spring-data">Spring Data implementation for ArangoDB</a>. We have also made an extensive <a href="https://www.arangodb.com/tutorials/spring-data/">demo</a> on how to use Spring Data ArangoDB with an example data set of Game of Thrones characters and locations. So, Spring is not only coming… it’s already here!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/0*U2QnQmGT2YGG9BPd.png" /></figure><h3>What is the Spring Framework?</h3><p>The Spring Framework is an open source Java application framework which provides an Inversion of Control (IoC) Container to manage Plain-Old-Java-Objects (POJO) through Dependency Injection (DI). The Spring Framework includes a wide range of modules providing several services. One interesting module for us is <a href="http://projects.spring.io/spring-data/">Spring Data</a> which provides a Spring like programming model for data access. There are already a lot of subprojects of Spring Data which specify data access to different specific database technologies and now ArangoDB joins in.</p><h3>Why did it take some time?</h3><p>To successfully implement our Spring Data module for ArangoDB we needed a solid base with our team and with our Java driver which runs under the hood. In the last two years, we expanded our team of developers who are well versed in the Java world. With their help we implemented a completely new Java driver with a more intuitive and object oriented API, but also several new features like <a href="https://www.arangodb.com/2017/08/velocystream-async-binary-protocol/">VelocyStream</a> support, multi-document operations, automatic fallback and, with the current release, built-in <a href="https://www.arangodb.com/2017/12/introducing-the-new-arangodb-java-driver-load-balancing/?utm_content=buffer46c5a&amp;utm_medium=social&amp;utm_source=twitter.com&amp;utm_campaign=buffer">load balancing</a>. Especially the load balancing and fallback features were a high priority for our customers running ArangoDB in a cluster setup. With this preliminary work, we started implementing our Spring Data module in 2017 closely collaborating with two great developers from our customer base. (Thanks for your great work, guys!)</p><h3>Features</h3><p>Spring Data ArangoDB provides a solution for all core concepts of Spring Data. With ArangoTemplate you are able to perform common database operations from managing databases, collections and graphs to single or batch CRUD operations. This includes annotation based object mapping of POJOs to <a href="https://github.com/arangodb/velocypack">VelocyPack</a> documents (ArangoDBs internal storage format) and exception translation into data access exceptions used in Spring. You are also able to write repository interfaces which will be automatically implemented. Within these repository interfaces, you can implement custom methods from which AQL queries will be derived. With this feature, you can perform a wide range of queries with filter conditions, joins, graph traversals and even geospatial queries. It also supports passing AQL bind parameters as parameters in your method. But you can still write your AQL queries on your own and attach it with the @Query annotation to your custom method.</p><h3>Example</h3><h3>Configuration</h3><p>Configure the connection to ArangoDB server and enable Spring Data ArangoDB repositories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*3Elbw0pqHOc0FxZazmJw-A.png" /></figure><h3>Entities</h3><p>Create and annotate your objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*wNWYj6g-XqV5Hh0M_26eew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*jsu1gEmTxH8SffKe5Q6cEw.png" /></figure><h3>Repositories</h3><p>Create repository interfaces and implement custom methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*t8FS-C_JC9_xT8zOLeV7WA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*7ZWvc73XBl_KAgkbjgyHHw.png" /></figure><h3>Usage</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*5BGsn689YRSIKq2EIhAUBg.png" /></figure><p><em>As previously published on </em><a href="https://www.arangodb.com/2017/12/spring-coming-arangodb-meets-spring-data/"><em>ArangoDB</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c486b297cbe5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing the new ArangoDB Java driver with load balancing and advanced fallback]]></title>
            <link>https://medium.com/@mark.arangodb/introducing-the-new-arangodb-java-driver-with-load-balancing-and-advanced-fallback-a079c92082fe?source=rss-bf18ceb0382b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a079c92082fe</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[arangodb]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Mark Vollmary]]></dc:creator>
            <pubDate>Mon, 05 Mar 2018 12:37:32 GMT</pubDate>
            <atom:updated>2018-03-05T14:42:28.343Z</atom:updated>
            <content:encoded><![CDATA[<p>The newest release 4.3.2 of the official ArangoDB Java driver comes with load balancing for cluster setups and advanced fallback mechanics.</p><h3>Load balancing strategies</h3><h3>Round robin</h3><p>There are two different strategies for load balancing that the Java driver provides. The first and most common strategy is the round robin way. Round robin does, what the name already assumes, a round robin load balancing where a list of known coordinators in the cluster is iterated through. Each database operation uses a different coordinator than the one before.</p><p>Most of the database operations can be handled by this simple logic. But for AQL queries we need something smarter. We have to stick to a specific coordinator when performing AQL queries where its result is not fully returned in a single response. In this case, ArangoDB creates state in form of a local cursor on the coordinator, the initial query was sent to. Every following request to get more batches of the result has to go to the same coordinator. Different to most simple standalone load balancer the driver is able to take care of that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*JvAJL48srk0jAxViJqxRbw.png" /></figure><p><em>Note: Per default, the driver uses one connection. To make round robin load balancing work properly you need at least as many connections as the number of coordinators in your cluster.</em></p><h3>Random</h3><p>Another way of load balancing offered with the new driver version is — random, meaning picking one random coordinator from a configured list of known coordinators and sticking to that coordinator as long as the driver instance exists. By itself this does not sound like load balancing. But if you take another look at it, it gives you an opportunity to create an application with a sessions management where you can stick one session to one coordinator as long as the session is alive. So instead of assigning one coordinator to every new session, you can work with a globally configured list of all known coordinators; and every new driver instance picks a random coordinator from that global list. In the end you get a better load balancing over all your sessions.</p><p><strong>An example in the multi-threaded environment.</strong><br>Because ArangoDB.Builder is thread-safe, you can use it as your global configuration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*qCFnmZnsahVe1qJ0kOLnXw.png" /></figure><p>and share it between your threads. These threads create their own instance of the driver’s main access point — ArangoDB, and perform database operations on that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*kWQ5EouqhVqIkAIUb8lyCQ.png" /></figure><h3>Know your coordinators</h3><p>As I already pointed out, load balancing requires to know which coordinators are part of your cluster. But that is only half true — the driver has to know, but you only have to specify one coordinator it has to connect to. There is another neat feature — the driver can acquire a list of all known coordinators in the cluster by itself. The list will be then updated regularly. In case an additional coordinator gets added to your cluster or vice versa the driver will recognize it automatically.</p><p>For you, it is simply as easy as it sounds and it works together with both load balancing strategies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*U9JdcuF06_ptwbMqJNmBRw.png" /></figure><h3>Fallback</h3><p>Ok, the fallback feature is not really new. ArangoDB Java driver already supported fallback — in case one coordinator is not reachable, it simply picks another known coordinator. The new part is that it also works with the new mechanic of acquiring the known coordinators in the cluster. In addition, the fallback for hosts not only works for coordinators in a cluster setup but also for ArangoDB’s new feature “active-passive single server” which was introduced in the <a href="https://www.arangodb.com/2017/12/arangodb-3-3-dc2dc-replication-encrypted-backup-server-level-replication/">ArangoDB 3.3 Release</a>.</p><p><em>As previously published on</em> <a href="https://www.arangodb.com/2017/12/introducing-the-new-arangodb-java-driver-load-balancing/"><em>ArangoDB</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a079c92082fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Native multi-model databases are gaining popularity]]></title>
            <link>https://medium.com/@mark.arangodb/native-multi-model-databases-are-gaining-popularity-c122e9087a83?source=rss-bf18ceb0382b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c122e9087a83</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[arangodb]]></category>
            <category><![CDATA[spring-data]]></category>
            <dc:creator><![CDATA[Mark Vollmary]]></dc:creator>
            <pubDate>Tue, 27 Feb 2018 10:44:15 GMT</pubDate>
            <atom:updated>2018-02-27T10:44:15.631Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*-8MEXPt-EO3LrcxE.jpg" /><figcaption>© Shutterstock / Maxx-Studio</figcaption></figure><p>In this article, I will talk about native multi-model databases and introduce ArangoDB. If you want to know how ArangoDB integrates with Java, look no further.</p><p>Having multiple data models in one database core may sound strange: “It’s impossible!”; “This can’t be fast!”; or “I don’t need this. I can just connect to multiple database systems in my application.” These were some of the most common responses to our multi-model database system, <a href="https://www.arangodb.com/">ArangoDB</a>. However, over the past year or so, the typical reactions have changed. There is far less disbelief in what’s possible with ArangoDB.</p><p>Today, our native multi-model database is increasingly gaining in popularity, (e.g., <a href="https://blog.g2crowd.com/blog/database/best-free-and-open-source-database-software#arangodb">G2Crowd</a>, <a href="https://www.gartner.com/reviews/market/operational-dbms/vendor/arangodb/?pid=28784">Gartner</a>, <a href="https://github.com/arangodb/arangodb">Github</a>). In this article, we’ll look at some of the reasons why organizations are exploring this new approach. First, we’ll look at what is a native multi-model database, what is ArangoDB. Then we’ll look at how ArangoDB integrates with Java.</p><h3>Native multi-model databases</h3><p>As the name implies, multi-model databases serve more than one data model with one technology. There are two basic types of multi-model databases:</p><p><strong>Layered approach</strong></p><p>For this type, an additional database is mounted onto another storage technology and connected via an API: e.g., a graph layer mounted on top of a key/value store, a relational database system or a columnar store. Accessing different models is done by various query languages.</p><p><strong>Native approach</strong></p><p>By this simpler method, one database core and one query language are used for all supported data models.</p><p>Since 2011, the team of ArangoDB has been working on the native multi-model approach, when we discovered a way to combine key/value, document and the graph models into one C++ core and to allow the management of stored data with a declarative query language (i.e., ArangoDB Query Language or AQL). We decided to release this technology under the Apache 2 open-source license. We felt that it’s the best way to provide access to a project of this size, allowing for easy adoption.</p><p>Our idea is simple: If we can efficiently combine more than one data model into one core and one query language, then we can provide something useful for fellow developers. If we can do this while also being competitive with leading single-model databases on their home turf, that makes it even better. Fewer datastores to learn, manage and maintain will inherently reduce the complexity of a tech stack. Plus, developers can execute a wider range of queries on data.</p><p>Native multi-model is not the ultimate solution for all situations. Our approach is not to force developers to use all data models. Nor can we integrate all models, efficiently. It’s more about enabling developers to leverage the advantages of different models for different aspects of their applications. We think this can be done more efficiently with one technology in many cases.</p><h3>The native multi-model in ArangoDB</h3><p>At the core, ArangoDB is a transactional document store, storing JSON documents and supporting joins, aggregation or sorting operations similar to typical relational database systems.</p><p>If you just store a value in a document, it can have the characteristics of a modern key/value store. As we are based on a document store, ArangoDb stores a bit more data per JSON file compared to classical key/value stores. That’s why we recommend ArangoDB for small to mid-sized key/value use cases. If you need hyperscale, though, we recommend something like Redis.</p><p>The interesting part is graphs. A graph is a highly connected dataset, with relations represented by vertices and edges. In the visual example below, a graph connection is represented by two airports (i.e., vertices) which are connected via a flight (i.e., edge).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/0*tSfx7vRj0W1SL2yL.png" /></figure><p>What you can see here are two important characteristics of ArangoDB. First, in order to create the graph, the only thing necessary is to store additional _from and _to attributes in the JSON documents (see the green and orange text).</p><p>Second, both the vertices and edges are full, nestable JSON documents and can store arbitrary attributes, create suitable indexes and perform queries with complex filter conditions. By using efficient hashing (i.e., an edge index) on those _from and _to attributes, traversing a graph in ArangoDB can be very fast, thanks to consistent hash-lookup latency.</p><p>For the graph part, developers can use a wide range of graph algorithms starting with traversals, shortest path and pattern matching. Developers can also use SmartGraphs and distributed graph processing with Pregel for large-scale computation.</p><p>With the native approach of ArangoDB, you can combine different access patterns like joins, aggregations, filtering and graph traversals in a single query. <a href="https://www.arangodb.com/why-arangodb/case-studies/liaisons-healthy-data-platform-service-arangodb/">Some of our clients started by using one pattern</a>, like joins or graph traversals. Most of them recognized over time, <a href="https://www.arangodb.com/why-arangodb/case-studies/thomson-reuters-fast-secure-single-view-everything-arangodb/">that some queries would be better suited to another access pattern</a>. But instead of adding a new database to their applications, they simply rewrote some queries to leverage graphs or joins. This flexibility is one of the key advantages of the native multi-model approach and the main reason for its recent popularity.</p><p>Regarding queries, there is another useful aspect of ArangoDB, a feature that has contributed to its increasing adoption. <a href="https://www.arangodb.com/why-arangodb/foxx/">The Foxx Framework</a> is a JavaScript framework based on Google’s V8 engine. It’s used for writing data-centric, RESTful microservices that run natively inside ArangoDB. The advantage is that it provides a unified storage logic, reduced network overhead. Sensitive data never has to leave the database. Moving data-intensive business logic closer to the data not only improves performance, but it also helps to keep the query language out of your application layer and reduce vendor lock-in effects.</p><p>ArangoDB with its native multi-model approach is obviously worth trying and considering. If you want to start today, you can read<a href="https://www.arangodb.com/white-paper-multi-model-database/"> our White Paper about the multi-model</a> idea or <a href="https://www.arangodb.com/arangodb-graph-course/">get the graph course</a> to explore this new storage approach.</p><h3>Integrating ArangoDB into Java</h3><p>If you’ve never worked with a non-relational database like ArangoDB before, you might be surprised that most NoSQL databases do not provide an integration to JDBC or JPA, but provide their own Java API instead. In most cases, NoSQL databases provide a much broader feature set compared to relational databases. Therefore, standardized JDBC or JPA would mean a limitation for those databases.</p><p><strong>The Java API of ArangoDB</strong></p><p>ArangoDB provides a RESTful API which allows an application to perform any kind of database operation from simple CRUD operations over complex queries, to database administration like creating database or collections — the NoSQL equivalent to SQL tables. Like all our other language bindings, the Java driver also uses this REST API to connect to ArangoDB.</p><p>The <a href="https://github.com/arangodb/arangodb-java-driver">Java</a> API for ArangoDB, which supports Java 1.6+, is fairly complete. It supports synchronous and asynchronous communication. Besides HTTP, the driver supports a second network protocol called <a href="https://www.arangodb.com/2017/08/velocystream-async-binary-protocol/">VelocyStream</a>. It’s a binary transport protocol which transports the internal storage format of ArangoDB, <a href="https://github.com/arangodb/velocypack">VelocyPack</a>.</p><p>Let’s take a look at how to work with the Java API. Below is an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*VrcAr3gHePan8L_w8Ua3gQ.png" /></figure><p>If you decide to try ArangoDB, you may want to watch <a href="https://www.arangodb.com/tutorials/tutorial-sync-java-driver/">our 10-minute Java tutorial</a>. We are always looking to improve the Java driver for ArangoDB. Please let us know if you have any feedback on it. The <a href="https://www.arangodb.com/2017/12/introducing-the-new-arangodb-java-driver-load-balancing/">latest update</a> of the driver contains a feature requested by the ArangoDB community: we now support built-in load balancing, as well as extended failover.</p><p>In complex Java projects, it’s convenient and, in some cases, necessary to use frameworks, like the Spring Framework. Over the past year, we’ve adapted to such projects, and have begun to help these teams to better integrate ArangoDB into their environments.</p><p><strong>Spring Data integration</strong></p><p>One interesting module of the Spring Framework is Spring Data. It provides a Spring-like programming model for data access. There are many sub-projects of Spring Data which specify data access to different database technologies.</p><p>While the query language for ArangoDB is what makes it native, it is a proprietary language. One of our key pillars is efficiency. We want to share software to help others create more efficient applications. To remove an obstacle to such efficiency, <a href="https://www.arangodb.com/2017/12/spring-coming-arangodb-meets-spring-data/">we released a Spring Data integration</a> as an abstraction layer. It reduces the need to learn AQL and supports a wide range of database operations.</p><p><em>As previously published on </em><a href="https://jaxenter.com/arangodb-new-tools-for-java-139995.html"><em>JAXenter</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c122e9087a83" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>