Playing with Graal VM Recently I started playing with Graal VM. What is Graal VM? To quote directly: GraalVM is a universal virtual machine for running applications written in JavaScript, Python, Ruby, R, JVM-based languages like Java,
micronaut How to Micronaut with Kotlin and Java with Groovy tests Recently, I came across Micronaut framework. It's a super light framework that fills the need for something in between Spring Boot and Vert.x. I have been playing with it and wanted to
spring Performance comparison: Spring Boot + Spring Data vs Micronaut + Gorm performance Update 10/23/2018 12:30 pm PDT: With the latest release of micronaut v1.0.0, it matches Spring without any changes to bombardier i.e. it's keeping the connection alive by
mysql Multiple MySQL databases with one MySQL container Multiple MySQL databases within one container using base mysql image.
spring Spring Generic Type Factory How to create generic factory using Spring and it's ability to consider generics as a form of @Qualifier.
wiremock Wiremock and Response Transformer I wanted to test a scenario where: For the first x calls respond with y Then for x+1 respond with z Wiremock by itself doesn't provide a direct way to to stub
kotlin Kotlin generic extension functions I have been educating myself in Kotlin recently. One of the most powerful feature that Kotlin provides is: Extension Functions. The simplest of example of a Extension Function that I can come up
groovy Groovy Unmarshalling Json to a specific Object If you have a simple POJO (Plain Old Java Object) or POGO (Plain Old Groovy Object), you can use Groovy's default Map based constructor to convert the JSON string to an Object type.
remote SSH Tunnel to connect to Remote Mongodb Problem: I love to use RoboMongo[1] as the Mongo DB Query tool. In my case the problem is that the MongoDb server is on a private network and the only way to
junit REST API Integration Testing with Wiremock Lets say you have a service (customer-service) that calls another service (account-service) over HTTP, gets the response from account-service, does some munging with the data and returns it back to the UI. Now
PKIX Resolve PKIX path building failed Problem: I was trying to get spring-cloud-server started on my laptop and I was getting: Downloaded: http://repo.spring.io/libs-snapshot/org/codehaus/mojo/maven-metadata.xml (21 KB at 16.6 KB/sec)
Mongo Know your Mongo through Replica Set Oplog and System Profile At work, recently we noticed that records in a Mongo collection did not have the latest data. Specifically, I was storing the status as NEW -> PROCESSING -> OK, and then
Python Delete GIT tags from local and remote branch Problem statement: Recently at work we have been playing around with the concept of automated builds and one build (master build) kicking off builds for multiple projects. The master build that kicked off
Python Automating Github releases via Jenkins Recently at work we were discussing releasing internal python artifacts to Github. Github has the concept of releases[1]. Releases are a workflow for shipping software to end users. Releases are first-class objects
flask Upload and Download file from Mongo using Bottle and Flask If you have a requirement to save and serve files, then there are at least a couple options. Save the file onto the server and serve it from there. Mongo[^n] provide GridFS[
groovy Custom validation message in Grails Grails[1] is an awesome full stack, web application framework on JVM. It has good documentation but not excellent documentation. I am working on a business project where I am using Grails REST
Elasticsearch Logstash config for ELK stack explained On my previous blog post about installing ELK stack without sudo access[1] one of the commentator asked me about explaining the Logstash config in more detail. For ease of reference the Logstash
Elasticsearch Install ELK stack without sudo access Recently, on my blog post on installing ELK stack on Ubuntu/Debian I was asked if it was possible to have ELK stack running on a server without sudo access. I admit it's
Logstash Send stats to Graphite via Logstash We have some stats being calculated and logged in our logs and we wanted to plot graphs via our already running Graphite service. There are two ways to approach this issue. You can
groovy Store current date time in Mongo in ISO format I wanted to store current date time (in UTC time zone) in ISO format in Mongo with Groovy as the language. It is pretty straightforward with joda time library. First the code and
Kibana Deploying static content on JBoss server Recently, I had a question from a commenter on my blog post on installing ELK stack on Ubuntu/Debian. The question was how to serve kibana 3 via a server like jboss. Kibana
Logstash Logstash Shipper / Forwarder Once you have the ELK stack installed, you can then ship/forward your logs to the redis database on the ELK stack. Once your logs are on the redis database, the logstash on
Logstash Install Logstash shipper on RedHat 5.4+ Installing Logstash on older versions of RedHat can be a real pain. If you are struck with the familiar LoadError: Could not load FFI Provider: (NotImplementedError) FFI not available: null then follow on!
ubuntu Install ELK Stack on Ubuntu/Debian How to install ELK and configure it on your server (Ubuntu/Debian)? You can follow the steps below to install and configure Elasticsearch-Logstash-Kibana (ELK) stack on Ubuntu/Debian server. If you are familiar