Dockerizing Web Application with Puppet

In post Installing Puppet Modules – Librarian Puppet we provisioned a Vagrant VM to install the puppet module from  Puppet Forge using librarian-puppet, now in this post we will do the same thing except we provision Docker container instead of Vagrant VM and deploy a hello-spring application in provisioned container. Before starting with application deployment in Docker container let’s understand brief about Docker and ...

Read More »

Running Web Application in Linked Docker Containers Environment

In post Dockerizing Web Application with Puppet we hosted web application in a single container, this time we will host a web application in a linked docker container environment – one in which our database (mysql) resides leveraged by our web application hosted in another docker container. Before start, let’s have a brief about Linking Docker containers and how it helps us. Linking ...

Read More »

Configuring Logstash with Filebeat

In post Configuring ELK stack to analyse Apache Tomcat logs  we configured Logstash to pull data from directory whereas in this post we will configure Filebeat to push data to Logstash. Before configuring, let’s have a brief about why we need Filebeat. Why Filebeat? Filebeat helps in decentralization the server where logs are generated from where logs are processed, thus sharing the load from a single ...

Read More »

Using the JDBC Insert Features in Oracle

java-interview-questions-answers

Introduction In this article I will show an example of how to use the JDBC bulk insert features supported by Oracle — and which are specific to Oracle. For more details on why one might like to resort to using bulk inserts in general, e.g., performance considerations when certain circumstances warrant, see the JCG article, “JDBC Batch Insert Example ” ...

Read More »

Safe Database Migration Pattern Without Downtime

I’ve been doing a continuous delivery talk for a while now and during my talk I describe a pattern of how to safely migrating one database to another database without downtime. Since many people contacted me and asked for more details about it, I will describe it here in more details as promised. You can use this pattern to migrate ...

Read More »

Is Your Employer a “Best Place To Work” For Developers?

Glassdoor recently released their Best Places to Work 2016/Employees Choice Awards, and as you would expect the top of the list features several well-known companies from the tech sector (Airbnb, Facebook, LinkedIn, Google) and other firms that aren’t exactly household names. The rankings are based on anonymous reviews and ratings from employees, with the results crunched by a proprietary algorithm. The ...

Read More »

Factory Pattern

The factory pattern is a creational design pattern whose intent is to provide an interface for creating families of related or dependent objects without specifying their concrete classes. The creational logic is encapsulated within the factory which either provides a method for its creation or delegates the creation of the object to a subclass. The client is not aware of ...

Read More »

Functional vs Imperative Programming. Fibonacci, Prime and Factorial in Java 8

There are multiple programming styles/paradigms, but two well-known ones are Imperative and Functional. Imperative programming is the most dominant paradigm as nearly all mainstream languages (C++, Java, C#) have been promoting it. But in the last few years functional programming started to gain attention. One of the main driving factors is that simply all new computers are shipped with 4, ...

Read More »

Modelling failure in Ceylon

In all programming languages, we need to deal with operations than can “fail”: a pure function might fail to produce a result, or an impure function might fail to produce its desired side-effect (create a new file, or whatever). In neither case can we just blindly continue with the rest of the computation. In the first case, the result of ...

Read More »