GraphQL Java Server for your Micro Service Platform


GraphQL had been on my ‘one to watch’ list for some time. Upon casual glances it looked both expensive to implement and lacked any burning issue it could solve (at least for me). So there it sat. Then GitHub announced they were adopting GraphQL for their next generation public api, and around the same time, our micro-service based product started having growing pains.  Those growing pains came from the disparate API jungle our consumers needed to navigate.  Was a GraphQL server the answer?

Continue reading “GraphQL Java Server for your Micro Service Platform”

OpenCypher will bring the Graph Database into mainstream

If you haven’t yet read about Graph Databases you really should.  While many traditional and newer ‘NoSQL’ databases provide a lot of brawn, Graph databases really are the brains of the database world.  OpenCypher, recently announced by Neo Technology, is a query language for graph databases.  It will bring Graph Databases into mainstream.


Continue reading “OpenCypher will bring the Graph Database into mainstream”

Soulmate Builder Pattern

Big fan of using the Builder Pattern for my Java domain objects.  Builders are also becoming increasingly common in other libraries (e.g. guava).  What struck me recently was the variations in Builder pattern implementation styles.  Here I will summarise the two most common implementation styles, and introduce my own variation I call the ‘Soulmate Builder Pattern’.

Example of Builder Pattern used to create Domain objects

Continue reading “Soulmate Builder Pattern”

Using Markdown for Multiline Properties

md-databaseHave you ever just wanted to load multiline properties values into Java and sank in your seat at the choices available?  I had the exact same ‘sigh’ on a new lightweight project when I needed to store some database statements.  After quickly refusing to accept the usual suspects (Java string concatenation, XML bloat, properties files or JSon escape ugliness) I thought it shouldn’t be too hard to load from a Markdown file.  No frameworks, no more dependencies, just a few lines and simple rule for beautifully maintainable multiline properties.

Continue reading “Using Markdown for Multiline Properties”