Build comprehensive monitoring capabilities for Spring Boot Microservice using Spring Boot Actuator, Micrometer and Prometheus.


Observability, which is comprised of monitoring, logging, tracing, and alerting aspects, is an important architectural concern when using microservices and event-driven architecture (EDA) styles, primarily because:

  • A large number of deployments require automation and centralization of monitoring/observability
  • The asynchronous and distributed nature of the architecture results in difficulties related to correlating metrics produced from multiple components

What is CORS?

Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any other origins (domain, scheme, or port) than its own from which a browser should permit loading of resources.

For example, web app on domain makes the HttpRequest to a web app on domain

How CORS work?

In modern browsers due to security reasons cross-origin HTTP request is not allowed.

Whenever there is a CORS request browser will send a preflight request prior to sending the actual request to find out whether CORS request is valid or not.

The preflight…

The term algorithm is very familiar in the field of computer science and it acquires an important place in all computing systems.

An algorithm is any well-defined set of computational procedures that takes some value, or set of values, as input and produces some values, or set of values as output.

For example, we might need to sort a sequence of numbers in non-decreasing order.
Input: A sequence of n numbers (a1, a2, a3,..., an).
Output: A permutation (a1', a2', a3',..., an’) of input sequence such that a1'≤a2'≤...≤an’.

This problem is known as the sorting problem.

We will consider a…

This article focuses on plain GraphQL functionality.


What is GraphQL?

GraphQL is a query language that provides a complete and understandable description of how to load data from a server. GraphQL enables declarative data fetching where a client can specify exactly what data it needs from an API.

GraphQL vs. REST

REST has been a popular way to expose data from a server. But as the applications became more complex, people started facing problems with the REST architectural style. Let’s consider an example of a Movie Review System to understand this more.

Suppose we have three resources — Movies, Ratings, and Reviews. Our requirement is to…

This article focuses on basic overview of Neo4j and Graph Database.


What is Graph database?

  • Graph database uses graph structures with nodes, edges and properties to represent and store data. The graph relates data items to a collection of nodes and edges, where edges represent relationships between nodes. Graph database is designed to treat the relationships between data as important as the data itself.
  • Relational database uses ledger style structure and stores data in the form rows and columns. The relation between two tables is mentioned using foreign key constraint. …

Aakash Sorathiya

A Developer with strong passion for self-improvement.

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