Learnitweb

Author: Editorial Team

  • Kafka Core Concepts

    1. Introduction In this tutorial, we’ll discuss the core concepts of Kafka. Understanding these core concepts is important for having strong understanding Kafka. 2. Messages and Batches In Kafka, the unit of data is called a message. You can think of a message as a row in a database. A message in Kafka is simply…

  • Introduction to Kafka

    1. Introduction In this tutorial, we’ll briefly introduce the Kafka. We’ll discuss the publish/subscribe messaging and also the problems which Kafka solves. 2. Publish/Subscribe Messaging Before discussing the Kafka, it is important to understand the concept of publish/subscribe messaging and its importance for data-driven applications. It is common for an enterprise application to generate lot…

  • Encryption Algorithms

    1. Introduction In this tutorial, we’ll discuss the encryption algorithms in brief. We’ll discuss one-way encryption, symmetric encryption and public key cryptography. 2. One-way encryption These algorithms are also known as hashing algorithms. A one-way algorithm takes an input string and generate an output known as the message digest. The output can not be converted…

  • Execution Context in JavaScript

    1. Introduction In JavaScript, code is executed and is related to two main types of executions contexts. In this tutorial, we’ll discuss these two execution contexts: There is third type of execution context that is created for the code inside the eval function. Since the use of eval function is discouraged due to security concerns,…

  • Encryption and Decryption of Properties in Spring Cloud Config Server

    1. Introduction In previous tutorials, we have kept properties in plain text. But this is not always desirable. If you have sensitive information, you should keep such information in encrypted format not as plain text.In this tutorial, we’ll see how to encrypt and decrypt properties in Spring Cloud Config Server. 2. Provide encryption key To…

  • Reading configurations from the Git in Spring Cloud Config Server

    1. Introduction In this tutorial we’ll discuss reading configurations from the Git in Spring Cloud Config Server. This is the default implementation. Using Git makes it very convenient for managing upgrades and physical environments and auditing changes done over time. You can configure the location of the repository in your Config server configuration (for example…

  • Spring Bean Scopes

    1. Introduction A bean definition acts like a recipie for creating the actual instances of the the class. You can control dependencies, configuration values and the scope of the objects created from a particular bean definition. The Spring Framework supports six scopes, four of which are available only if you use a web-aware ApplicationContext. You…

  • Java Based Container Configuration

    1. Introduction In this tutorial, we’ll discuss the Java based container configuration in Spring. Two central artifacts in Spring’s Java configuration support are @Configuration annotated classes and @Bean annotated classes. 2. @Bean annotation The @Bean annotation signifies that a method creates, configures, and initializes a new object to be managed by the Spring IoC container.…

  • AnnotationConfigApplicationContext in Spring

    1. Introduction Spring Container can be instantiated using AnnotationConfigApplicationContext. AnnotationConfigApplicationContext was introduced in Spring 3.0. AnnotationConfigApplicationContext is an implementation of ApplicationContext. This accepts @Configuration classes, @Component classes and classes annotated with JSR-330 metadata. When @Configuration classes are supplied, the @Configuration class is registered as a bean definition, and all its declared @Bean methods are also…

  • HashSet in Java

    1. Introduction In this tutorial we’ll discuss HashSet class of the Java Collections Framework. HashSet class is in java.util package in java.base module. HashSet class implements the Set interface, backed by a hash table (actually a HashMap instance). Following are the features of HashSet: Here is an example of HashSet: Output 2. Creating HashSet HashSet…