Sahajahan

Sahajahan

I am Sahajahan, a coder. Love to learn and share. Total experience of 5+ years in IT. Worked in multiple areas like Service Virtualization, Web development, Automation.

Frequency of each word in a given string

This a quick tutorial for finding the frequency of each word in given string using java. This is a frequently asked question in interviews. They might ask to write the code in Java or Java 8. Lets see how to write it in Java 8 way first as Java 8 is trending in current market.   Try the above codes and see the result. Thanks for reading!!!!

0
Read More

Predicate in Java 8 and how it works

5 mins might be useful if you spend on this page. This is a quick hands on one of the cool feature of java 8. It is helps to reduce the lot of boiler plate code and focused many runtime implementation using @FunctionalInterface. @FunctionalInterface -> A interface which has only one abstract method. It can contain any number of default and static method. We will be talking about Predicate (shown below). @FunctionalInterface interface Predicate<T> Predicate has one abstract method ->…

0
Read More

How to configure and set expire in Redis cache using Spring Boot?

Introduction We have different cache techniques in this software industry. We will have a small talk about Redis Cache. We use cache service to improve the API response means we save the response in the cache for a duration and response is sent back from cache instead of real service/databases. Reduces the backend API calls / Database calls. Reduces loads on the blackened server. Let’s Try: Let’s Start on Redis container part.  We can run a Redis docker container in…

0
Read More

How to do operation on existing Docker container and run commands?

A Docker container is a light weighted software package which can operate independently. i.e. It has its all required dependencies to run an application works like an independent system. Sometimes we need to work on the running container to debug and analyze the outputs. We can do it very easily. Let’s do it. Lets pull a image from DockerHub . Let pull a redis docker image. We can run this image with below command: check the container is up and…

0
Read More

Unable to connect to mysql 5.7 database on WSO2 API manager

WSO2 API Manager is a fully open-source full lifecycle API Management solution that can be run anywhere. It can be deployed on-prem, on a private cloud, is available as a service on cloud or deployed in a hybrid fashion where its components can be distributed and deployed across multiple cloud and on-prem infrastructures Some time we need to configure Relation Database like MySQL . We can find configuration details in MySQL Setup Link. You can access API Manager 2.10 MySQL…

0
Read More

What does const stand for in ES6?

Lot of changes are happening in JavaScript. ES6 shifted standard of JavaScript language to one level up. const is one of the concept ,that is introduced as apart of ES6 standard. Those, who came from the C or Java , they have different meaning for this. const in JavaScript means “one-time assignment” . It doesn’t mean constant. It means you can assign the a variable or object once. But doesn’t mean immutable. The immutable concept require explanations. We will understand in below examples.

0
Read More

What is Events and EventEmitter in Node.js

Let’s discuss some of the core concepts of Node.js. It is a very short post, but it is very important, if you want to play around with Node.js. It will give you a fair amount of idea how the activity is raised and handled by this fascinating coding language. Let’s jump into the topic. Any kind of activity or action taking place in the computer world are called an event. Some of the examples of the event are like the…

0
Read More
feature image

What is Behavior Driven Development ?

In continuously evolving IT world, we are introduced to new technology and new approaches to learning every day. These new technologies and approaches make life easy and create a better life for developers,   Tester, Business Analyst etc. Behaviour Driven Development is the result of change and innovation in the IT world. Let’s learn about BDD today, Behaviour Driven Development (BDD) is a software development approach which is evolved from the Test Driven Development (TDD) approach. In Test Driven Development, the…

0
Read More