Author: Abid Khan

Data centre

Events Sourcing and Axon Server

Reading Time: 3 minutes Axon Server It’s a component that allows for different/multiple instances that are implemented in the axon framework. Axon server has the capability to communicate that your application is running in scaling mode. There is no matter application running in the micro-services environment, it’s transparently working. Run Axon Server We can use the official docker image to startup an Axon server instance: Another option we can startup a Continue Reading

How Kafka Relates to Axon Framework?

Reading Time: 3 minutes Axon and Kafka are used for different purposes, Axon is used for Event-Driven Architecture and provides the application-level support for domain modeling and Event Sourcing, as well as the routing of Commands and Queries, while Kafka serves as an Event Streaming system. The basic fundamental of Axon is to implement CQRS and Event Sourcing-based architecture.  With the help of this, we can design & develop Continue Reading

Spring Cloud Pub/Sub

Reading Time: 2 minutes Cloud Pub/Sub Google Cloud Pub/Sub allows services to communicate asynchronously, with latency on the order of 100 milliseconds. Pub/Sub is used for streaming analytics and data integration pipelines to ingest and distribute data. It is equally effective as a messaging- oriented middleware for service integration or as a queue to parallelised tasks. Pub/Sub enables to create systems of event producers and consumers, called publishers and subscribers. Publishers communicate Continue Reading

Spring Cloud GCP IAP Authentication and Authorization 

Reading Time: 2 minutes Identity-Aware Proxy (IAP) establish a central authorization layer for applications accessed by HTTPS, so we can use an application-level access control model instead of relying on network-level firewalls. IAP policies scale across organization. We can define access policies centrally and apply them to all of applications and resources. When you assign a dedicated team to create and enforce policies, we protect project from incorrect policy Continue Reading

Spring GCP BigQuery

Reading Time: 3 minutes BigQuery is Google’s fully managed, petabyte scale, low cost analytics data warehouse. It’s Serverless, highly scalable, and cost-effective multicloud data warehouse designed for business agility. BigQuery Benefits Gain insights with real-time and predictive analytics– Query streaming data in real time and get up-to-date information on all your business processes. Predict business outcomes easily with built-in machine learning–without the need to move data. Access data and Continue Reading

Spring GCP Data Firestore

Reading Time: 2 minutes Cloud GCP Firestore Firestore easily develop applications using a fully managed, scalable, and serverless document database. Feature Serverless document database (Best for mobile application) that effortlessly scales to meet any demand, with no maintenance Accelerate development of mobile, web, and IoT apps with direct connectivity to the database Built-in live synchronization and offline mode makes it easy to develop real-time applications Fully customizable security and Continue Reading

Spring Cloud Gateway Features

Reading Time: 4 minutes Spring Cloud Gateway provides a library for building an API Gateway on top of Spring WebFlux. Spring Cloud Gateway aims to provide a simple, yet effective way to route to APIs and provide cross cutting concerns to them such as: security, monitoring/metrics, and resiliency. Features Spring Cloud Gateway features: Built on Spring Framework 5, Project Reactor and Spring Boot 2.0 Able to match routes on Continue Reading

UAA Server setup locally for Spring Cloud Gateway

Reading Time: 3 minutes For authenticate the users, we need two things: user account records and an OAuth2 compatible authentication provider (server). There are many commercial OAuth2 authentication providers out there, but in this blog, I’m going to with open-source Cloud Foundry’s User Account & Authentication Server.Spring Cloud Gateway can forward OAuth2 access tokens to the services it is proxying. In addition to logging in the user and grabbing Continue Reading

Differences between Netflix zuul and Spring cloud gateway

Reading Time: 3 minutes Routing is an integral part of a microservice architecture. For example, `/` may be mapped to your web application, `/api/users` is mapped to the user service and `/api/shop` is mapped to the shop service.  Netflix Zuul Zuul is a JVM-based router and server-side load balancer from Netflix. It provides a single entry to our system, which allows a browser, mobile app, or other user interface to consume services from multiple hosts Continue Reading

SOLID Principles

Reading Time: 5 minutes SOLID is stand for Single Responsibility Principle, Open-Closed Principle, Liskov Substitution Principle, Interface Segregation Principle, and Dependency Inversion Principle. It is refers to five design principles in object-oriented programming, designed to reduce code and improve the value, class, function, and maintainability of software. The SOLID principles help the user develop minimized coupled code. If code is tightly coupled, a group of classes are dependent on Continue Reading

Digital Certificate

Reading Time: 5 minutes A Certificate Authority (CA) is an entity responsible for issuing digital certificates to verify identities on the internet. CA establishing trust and secure communications between browsers and servers, by verifying that the client or organization in question is indeed who they claim to be. Anyone can become a CA and issue self-signed certificates, but only a select few companies end up signing SSL/TLS certificates for Continue Reading

Testing Spring Embedded Kafka consumer and producer

Reading Time: 2 minutes This blog I’m talking about the Kafka testing without physical installation of Kafka services or docker container.For testing, I’m going to use another Spring library that is called spring-kafka-test. It provides much functionality to ease our job in the testing process and takes care of Kafka consumer or a producer works as expected. Maven Test Dependencies application.yml props file These are the minimum configuration for Continue Reading

Springboot all possible ways to read props from Configuration file.

Reading Time: 2 minutes Springboot YML/ Properties file Various properties can be specified inside your file or inside your application.yml file, the following ways to reading properties from YML or Properties file. Reading a single property Read bunch of properties then use can use @ConfigurationProperties. Read entire YML/Property file Visit following URL and here you can find more properties: In my case i’m using YML file Reading a Continue Reading