Spring Boot Admin is a web application, used for managing and monitoring Spring Boot applications. As no of microservices is more , it become difficult to manage and monitor them . that is where Spring Boot Admin come into picture.

Image for post
Image for post

Each microservice is considered as a client and register to the admin server(Spring Boot Admin) . Behind the scenes, Spring Boot Admin uses Spring Boot Actuator endpoints.

I have created a tutorial on spring actuator as well , which can be read from below link and admin server dependency in pom.xml of admin server.

<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId>
</dependency>

After this…


Spring Boot Actuator is a sub-project from spring boot framework, It helps us to monitor and manage our application. we can gather all these info using jmx or http endpoints.

To include in your maven spring project , you have to add below dependency in your pom.xml

<dependencies>    
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId> </dependency>
</dependencies>

Spring boot actuator provide various built-in features , ready-to use in production. You get below endpoints without writing a single line of code. However we have to enable some the endpoints for use.

The following technology-agnostic endpoints are available:

auditevents

Exposes audit events information for the current…


Moving your monolithic application to microservices architecture gives us immense benefit. Now we need to deploy only services ,which we changed. we can have seperate team working on seperate microservice without impacting each others. We can develop different microservices in different language and platform. However all these benefits comes with lot of headaches.

When you have 20–30 microservices, dev, test, stage, prod environment. Each env has different version of microservice. It become quite difficult to track ,What code is deployed on which environment on kubernetes. did my code get update after deployment. From which branch , Which commit from git…


Recently i got a chance to work on microservices ,In existing code i observed some annotations in my pojo or JPA entities and did not see any setter or getter for properties defined. But in my whole code getter and setter were getting used .I realized there is something going behind the scene and these annotation are generating setter getter for my JPA during compilation time. After some research i had an answer. answer was a library known as lombok :)

Getters/Setters, Constructors — So Repetitive

Encapsulating object properties via public getter and setter methods is such a common practice in the Java world, and…


Recently i got a chance to work on microservices ,In existing code i observed some annotations in my pojo or JPA entities and did not see any setter or getter for properties defined. But in my whole code getter and setter were getting used .I realized there is something going behind the scene and these annotation are generating setter getter for my JPA during compilation time. After some research i had an answer. answer was a library known as lombok :)

Getters/Setters, Constructors — So Repetitive

Encapsulating object properties via public getter and setter methods is such a common practice in the Java world, and…


Cloud functions is a serverless platform for building event-base microservices. it is basically scalable pay as you go Functions-as-a-Service (FaaS) to run your code with zero server management from google.

Image for post
Image for post

Cloud function can be primarily divided into 2 kind of function.


Phone Book

Design a data structure to store your contacts: Names of people along with their phone numbers.The data structure should be able to do the following quickly:

  • Add contacts.
  • Lookup the phone number by name.
  • Determine who is calling given their phone number.

To do that:

To implement this we will be using HashMap and Trie data structure. Trie data help us to search and provide suggestion on basis of keystroke entered. Once we select any contact name we can search in hashmap.

Generally search query on a Trie is to determine whether the string is present or not in the…


Image for post
Image for post

In modern cloud architecture applications are decoupled into smaller, independent building blocks that are easier to develop, deploy and maintain. Message queues provide communication and coordination for these distributed applications. Message queues can significantly simplify coding of decoupled applications, while improving performance, reliability and scalability.

Message queues allow different parts of a system to communicate and process operations asynchronously. A message queue provides a lightweight buffer which temporarily stores messages, and endpoints that allow software components to connect to the queue in order to send and receive messages.


Image for post
Image for post

What is this?

The JavaScript this keyword refers to the object it belongs to.

It has different values depending on where it is used:

  • In a object method, this refers to the owner object.
  • Alone, this refers to the global object.
  • In a function, this refers to the global object.
  • In a function, in strict mode, this is undefined.
  • In an event, this refers to the element that received the event.
  • Methods like call(), and apply() can refer this to any object.

So basically `this` value differ according to execution context where this is referred.

“this” Refers to a Global Object

By default, the execution context for an execution…

krishankant singhal

Angular,Vuejs,Android,Java,Git developer. i am nerd who want to learn new technologies, goes in depth.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store