• Setup Kubernetes Cluster on Google Cloud Platform (GCP) and connect using Cloud SDK

    In this guide, let’s create a Kubernetes cluster using Google Cloud Platform (GCP) account and connect to this cluster using GCP Cloud SDK. [ Read more ]
  • Integrate embedded Apache ActiveMQ 5 (Classic) JMS Broker with Spring Boot application

    Apache ActiveMQ is the most popular open source JMS server. ActiveMQ supports Spring for configuration of the JMS client side as well as for configuring the JMS Message Broker. In this post, let’s integrate an embedded ActiveMQ JMS 5 broker (Classic version as they call it) with a simple Spring Boot application which sends/recieves data from the embedded ActiveMQ broker. [ Read more ]
  • Install Spring Cloud Data Flow (SCDF) server and Skipper Server on Pivotal Cloud Foundry (PCF)

    In this tutorial, let’s configure and deploy spring cloud data flow server to pivotal cloudfoundry (PCF). For deploying streams, the Data Flow Server delegates the deployment work to Skipper Server. Hence, we shall configure and deploy Skipper server as well. [ Read more ]
  • Create a stream on Pivotal Cloud Foundry (PCF) using Spring Cloud Data Flow (SCDF) server

    In this tutorial, let’s use Spring provided HTTP source and LOG sink applications to create a stream and deploy it to cloudfoundry. We shall use SCDF server running locally on our machine to deploy the stream to cloudfoundry. [ Read more ]
  • Create and deploy Spring Cloud Config Client on cloudfoundry (PCF)

    Config Server for Pivotal Cloud Foundry (PCF) is an externalized configuration service, which gives us with a central place to manage an application’s external properties across all environments. Spring cloud config client applications can use Config Server to manage configurations across environments. In this tutorial, let’s deploy a sample spring cloud config client application (say..Pet Store App) which binds to Config Server. [ Read more ]
  • Integration of Swagger UI with Spring Boot

    Swagger UI is used to generate interactive API documentation that lets you to try out the REST service calls directly in the browser. In this guide, let’s build a simple Spring Boot REST service and integrate Swagger UI to this service. This lets us to test our REST service directly in the browser using spring boot integrated Swagger UI. [ Read more ]
  • Kafka Producer and Consumer using Spring Boot

    Kafka is a streaming platform capable of handling trillions of events a day. Kafka provides low-latency, high-throughput, fault-tolerant publish and subscribe data. In this guide, let’s build a Spring Boot REST service which consumes the data from the User and publishes it to Kafka topic. Let’s also create a kafka consumer which pulls the data from this topic and prints it to the console. [ Read more ]
  • Integrate embedded Apache ActiveMQ Artemis JMS Broker with Spring Boot application

    Apache ActiveMQ is the most popular open source JMS server. ActiveMQ supports Spring for configuration of the JMS client side as well as for configuring the JMS Message Broker. In this post, let’s integrate an embedded ActiveMQ JMS Artemis server with a simple Spring Boot application which sends/recieves data from the embedded ActiveMQ server. [ Read more ]
  • Spring Cloud Security - OAuth2 Authorization using Jdbc Token Store

    Oauth2 is a widely used authorization framework and is supported by Spring. The Spring OAuth 2.0 Authorization mechanism manages and verifies the OAuth 2.0 tokens. These tokens are then used to access the protected resources. Without going much into theory, let’s assume a real world security problem statement and see how we can accomplish our desired solution using JDBC OAuth2 security features provided by Spring. [ Read more ]
  • Spring Cloud Security - OAuth2 Authorization using JWT (JSON Web Token)

    Oauth2 is a widely used authorization framework and is supported by Spring. The Spring OAuth 2.0 Authorization mechanism manages and verifies the OAuth 2.0 tokens. These tokens are then used to access the protected resources. Without going much into theory, let’s assume a real world security problem statement and see how we can accomplish our desired solution using JWT (JSON Web Token) OAuth2 security features provided by Spring. [ Read more ]
  • Register Spring Cloud Config Server on cloudfoundry (PCF)

    Config Server for Pivotal Cloudfoundry is an externalized configuration service, which can be used as a central place to manage all of our cloudfoundry application’s external properties across all the environments. Cloudfoundry applications can use the Pivotal Cloudfoundry Config Server service to manage configurations across environments. In this tutorial, let’s register Config Server for Pivotal Cloud Foundry (PCF) and configure it’s git coordinates. [ Read more ]
  • Add custom actuator endpoint to Spring Boot Application

    In this guide, let’s add a custom actuator endpoint to Spring Boot application. [ Read more ]
  • Add custom datasource health check indicator to Spring Boot Application

    Spring Boot exposes health information of the app through actuator endpoints. We can use health information to check the status of the running application. It can be used by a monitoring software to alert someone when the application goes down. In this guide, let’s add a custom DB health check indicator to Spring Boot application. [ Read more ]
  • Setup Multiple Instances of Tomcat

    In this post, let’s download tomcat software and setup two instances of tomcat. Let’s also test this setup by deploying a sample web app on each of the instances. [ Read more ]
  • Load Balancing Tomcat Instances using NGINX on Windows

    In this post, let’s download NGINX software and setup NGINX as a load balancer for a sample application running on two instances of tomcat. In this scenario, NGINX will be setup to act as a reverse proxy. [ Read more ]