Home » Author Archives: Ben Wilcock

Author Archives: Ben Wilcock

Microservices with Spring Boot, Axon CQRS/ES and Docker

docker-logo

In the last year or two, the pace of change in software architecture has rapidly advanced with new approaches like DevOps and Microservices becoming hot topics overnight. In this post, I want to introduce you to a project that I’ve been working on which combines two of the stand out architectural advances of the last few years: Microservices and the Command and Query Responsibility Separation ...

Read More »

Working with Robolectric and Robotium in Android Studio and Gradle

android-logo

I develop the TripComputer App for Android but I find testing apps using the standard Android Instrumentation framework is really slow and painful. Slow testing cycles can kill productivity and are a well documented disincentive to TDD. Therefore, most Android tutorials that talk about testing bestow the virtues of switching to something like the Robolectric framework when unit testing Android apps. Robolectric is great because ...

Read More »

Event Tracking with Analytics API v4 for Android

android-logo

As I’ve learned from developing my own mileage tracking app for cyclists and commuters, getting ratings and feedback from users can be challenging and time consuming. Event tracking can help by enabling you to develop a sense of how popular a particular feature is and how often it’s getting used by users of your app. In Android, Google Play Services’ Analytics API v4 can ...

Read More »

Working with Google Analytics API v4 for Android

android-logo

For v4 of the Google Analytics API for Android, Google has moved the implementation into Google Play Services. As part of the move the EasyTracker class has been removed, but it still possible to get a fairly simple ‘automatic’ Tracker up and running with little effort. In this post I’ll show you how.               Assumptions: ...

Read More »

Implementing Entity Services using NoSQL – Part 1: Outline

apache-couchdb-logo

Over the past few weeks I’ve been doing some R&D into the advantages of using NoSQL databases to implement Entity services (also known as Data Services). Entity service is a classification of service coined in the Service Technology series of books from Thomas Erl. It’s used to describe services that are highly agnostic and reusable because they deal primarily with ...

Read More »

Implementing Entity Services using NoSQL – Part 2: Contract-first

apache-couchdb-logo

It’s time to begin the coding of my SOA entity service with NoSQL project, and as promised I’m starting with the web service’s contract. Take a look at Part 1 of this series. This technique of starting with a web service contract definition is at the heart of the ‘contract-first’ approach to service-oriented architecture implementation and has numerous technical benefits ...

Read More »

Implementing Entity Services using NoSQL – Part 3: CouchDB

apache-couchdb-logo

Following on from Part 2 of this series where I created and deployed the Product Entity Service using the SOA ‘contract-first’ technique, I’m now going to work on the NoSQL database aspects of the service implementation. As I already mentioned in Part 1, I’ve already selected CouchDB as my NoSQL database and the Ektorp library as the database driver. CouchDB ...

Read More »

Implementing Entity Services using NoSQL – Part 4: Java EE

apache-couchdb-logo

Now that I have prepared a skeleton contract-first web-service and created a data access layer using Ektorp and CouchDB, it’s time to wire them together into a fully working entity service. To do this I’m going to use Java EE and Glassfish 3.1. It’s worth noting at this point that it’s not strictly necessary that I use Java EE at ...

Read More »

How to build a DIY Service Repository

software-development-2-logo

Every Jedi faces the moment in their life when their Lightsaber simply fails to perform as expected and he or she has bite the bullet and build a better one. Not being a Jedi I clearly have no use for a Lightsaber, but I did have a recurring irritation in the form of the service registries and repositories. These tools ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns