Java

Setting up a Java Agent

I was recently testing out Appoptics APM for an article I was writing. During the process I noticed there wasn’t a lot of info online about setting up a gradle project with a Java agent, so I thought I’d write one. I’ll start with a quick overview of some popular Java agents and then show you how to create a Java Gradle project and add a Java agent to it. At the end of the post, there will be a working Java application that includes a Java agent.

Continue reading

Java and IAM Roles

In my first post, IAM Roles in AWS you created an ec2 instance and directly accessed a restricted S3 bucket. Today, you’ll create a Java application, which will use an ec2 role to access the same restricted s3 bucket. Here’s what you’re going to do: Create a simple Java application Create an S3 bucket Create a customer managed policy Create an IAM role, using the customer managed policy, to manage access to the S3 bucket

Continue reading

Service Virtualization and Contract Based Testing

In the new world of micro services, as the number of services goes up, it gets harder to deploy multiple services on your development box. Also as the number of micro services increase in an environment, it makes no sense to start up multiple services to be able to test the actual integration between various services either manually or via automated tests. In this regard, the concepts of service virtualization and consumer driven contract testing become important to adopt as part of one’s development workflow.

Continue reading

Setting up my new MacBook Pro

I just got a new MacBook Pro, sweet machine, I love having 32gb of memory on my laptop. One of the things I always do when I get a new laptop is set it up from scratch. While I use Time Machine to back up my Mac, I don’t use it to setup my new system. There’s something about deciding what software you want on the new machine, choosing what to install and how to install it that’s always appealed to me.

Continue reading