Home » Archives for Arun Gupta

Author Archives: Arun Gupta

Arun is a technology enthusiast, avid runner, author of a best-selling book, globe trotter, a community guy, Java Champion, JavaOne Rockstar, JUG Leader, Minecraft Modder, Devoxx4Kids-er, and a Red Hatter.

Gossip-based Kubernetes Cluster on AWS using Kops

Creating a Kubernetes cluster using Kops requires a top-level domain or a sub domain and setting up Route 53 hosted zones. This domain allows the worker nodes to discover the master and the master to discover all the etcd servers. This is also needed for kubectl to be able to talk directly with the master. This worked well but an additional hassle for the developers. Kops ...

Read More »

Creating Smaller Java Image using Docker Multi-stage Build

Two of the announcements at DockerCon 2017 directly relevant to Java developers are: Docker Multi-stage build Oracle JRE in Docker Store This blog explains the purpose of Docker multi-stage build and provide examples of how they help us generate smaller and more efficient Java Docker images. Just show me the code: github.com/arun-gupta/docker-java-multistage. What is the issue? Building a Docker image for a Java application typically involves building the application ...

Read More »

Docker Remote API on Windows and OSX

There are multiple ways to monitor Docker containers. Docker CLI provides the docker container stats API that gives basic information about the running containers. Docker Remote API provides more detailed information about the containers. Staring with Docker 1.13, there is an experimental feature with a Prometheus endpoint cAdvisor is an open source tool that provides last container usage and performance characteristics. This data can be ...

Read More »

Service Discovery with Java and Database application in Kubernetes

This blog will show how a simple Java application can talk to a database using service discovery in Kubernetes. Service Discovery with Java and Database application in DC/OS explains why service discovery is an important aspect for a multi-container application. That blog also explained how this can be done for DC/OS. Let’s see how this can be accomplished in Kubernetes with a single ...

Read More »

Service Discovery with Java and Database application in DC/OS

java-interview-questions-answers

This blog will show how a simple Java application can talk to a database using service discovery in DC/OS. Why Service Discovery? An application typically consist of multiple components such as an application server, a database, a web server, caching and messaging server. Typically, multiple replicas of each component would run based upon the needs of your application. Deploying this application using a container orchestration framework means that each replica would run as ...

Read More »

Stateful Containers using Portworx and Couchbase

Containers are meant to be ephemeral and so scale pretty well for stateless applications. Stateful containers, such as Couchbase, need to be treated differently. Managing Persistence for Docker Containers provide a great overview of how to manage persistence for stateful containers. This blog will explain how to use Docker Volume Plugins and Portworx to create a stateful container. Why Portworx? Portworx is an easy-to-deploy ...

Read More »

Getting Started with Oracle Container Cloud Service

Oracle Container Cloud Service is Oracle’s entry into the the world of managed container service. There are plenty of existing options: Docker for AWS or Azure Amazon Elastic Container Service Google Container Engine Azure Container Service DC/OS by Mesosphere OpenShift by Red Hat This blog will explain how to get started with Oracle Container Cloud Service. A comparison of different managed services is ...

Read More »

Microservice using Docker stack deploy – WildFly, Java EE and Couchbase

There is plenty of material on microservices, just google it! I gave a presentation on refactoring monolith to microservices at Devoxx Belgium a couple of years back and it has good reviews: This blog will show how Docker simplifies creation and shutting down of a microservice. All code used in this blog is at github.com/arun-gupta/couchbase-javaee. Microservice Definition using Compose Docker 1.13 introduced a v3 of Docker ...

Read More »

Analyze Donald Trump Tweets with Couchbase and N1QL

AWS Serverless Lambda Scheduled Events to Store Tweets in Couchbase explained how to store tweets in Couchbase using AWS Serverless Lambda. Now, this Lambda Function has been running for a few days and has collected 269 tweets from @realDonaldTrump. This blog , inspired by SQL on Twitter: Analysis Made Easy Using N1QL, will show how these tweets can be analyzed using N1QL.   ...

Read More »