Author: Ankit Mogha

Creating RESTful API using SpringBoot and MongoDB

Reading Time: 3 minutes In this blog, we are going to create RESTful APIs using spring boot and containerized MongoDB. What are RESTful API, SpringBoot, and Containerized MongoDB In this section, we will go through the term’s REST API, SpringBoot, and Containerized MongoDB RESTful API A REST API (also known as RESTful API) is an application programming interface that conforms to the constraints of REST architecture. REST stands for Continue Reading

The JSF Framework: An Introduction to JavaServer Faces

Reading Time: 2 minutes JSF stands for JavaServer Faces. It is a framework that helps you build user interfaces for JavaServer applications. It provides the standard set of tools for creating a user interface. JavaServer Faces (JSF) is an MVC web framework. What is JSF? JSF technology includes a set of APIs representing different UI components and helps manage their states. JSF framework provides the flexibility of creating simple Continue Reading

GSSAPI – Generic Security Service Application Program Interface

Reading Time: 2 minutes In the previous blog, We have read about SCRAM Authentication. In Today’s blog, we gonna read about GSSAPI (Kerberos) Authentication. Kerberos is a security protocol that provides an alternate mechanism for client and server authentication. Introduction to GSSAPI As its name implies, the GSS-API enables programmers to write generic applications with respect to security. It is widely use by protocol implementers as a means to Continue Reading

SCRAM – Salted Challenge Response Authentication Mechanism

Reading Time: 2 minutes The Salted Challenge Response Authentication Mechanism SCRAM is a family of modern, password-based challenge–response authentication mechanisms. Providing authentication of a user to a server. As it is specified for Simple Authentication and Security Layer (SASL). It can use for password-based login to services like SMTP and IMAP (e-mail), or XMPP (chat).  Apache Kafka supports SCRAM-SHA-256 and SCRAM-SHA-512.  SCRAM Implementation Kafka stores SCRAM credentials in ZooKeeper and is suitable for use in Kafka installations where ZooKeeper is on a private network. Continue Reading

What is Lambda Expression in java? How to Use it?

Reading Time: 3 minutes Lambda Expressions get add-in Java 8. Java lambda expressions are Java’s first step into functional programming. Its main objective is to increase the expressive power of the language. The syntax of a basic lambda expression is: The expression use as the code body for the abstract method within the paired functional interface. lambda expressions exist outside of any object’s scope. This means they are callable anywhere in Continue Reading

What are Streams API in Java 8 ? How its unique

Reading Time: 3 minutes First of all, Java 8 Streams should not be confuses with Java I/O streams. The Stream API is use to process collections of objects. Java provides a new additional package in Java 8 called java.util.stream. In stream one or more operations can be perform. The Streams operations are either intermediate or terminal. Stream provides following features: The stream does not store elements. A stream is not Continue Reading

Contracts in Ethereum using Solidity

Reading Time: 2 minutes The Contracts in the sense of Solidity is a collection of code and data. That resides at a specific address on the Ethereum blockchain. Contracts in Solidity are similar to classes in object-oriented languages. They contain persistent data in state variables, and functions that can modify these variables. Creating Contracts Contracts can be create from outside via Ethereum transactions or from within Solidity contracts. Lets Continue Reading

Design Patterns in Rust Programming

Reading Time: 3 minutes The Design Patterns are programming language independent strategies for solving a common problem. By using design patterns, you can make your code more flexible, reusable, and maintainable. These solutions were obtained by trial and error by numerous software developers. Types of Design Patterns There are following types of design Patterns in Rust for solving our problems : Behavioural Creational Behavioural Patterns Behavioural design pattern are design patterns that Continue Reading

How to Tackle Error in Rust Programming

Reading Time: 3 minutes An Error is basically an unexpected behaviour that may lead a program to produce undesired output or terminate abruptly. Error handling is the process of handling the possibility of failure. In Rust, errors can be classified into two major categories. Recoverable UnRecoverable Recoverable Error Recoverable errors are those that do not cause the program to terminate abruptly. Such as a file not found error . Continue Reading

How to use Pattern Matching in Rust

Reading Time: 3 minutes Rust has an extremely powerful control flow operator called Match. Pattern matching in Rust works by checking if a place in memory matches a certain pattern. Patterns can be : literal values variable names wildcards, and many other things Destructuring using Pattern Matching Pattern matching can use to destruct following items : Structures Enums Tuples  Destructuring breaks up a value into its component pieces. The syntax used is Continue Reading

Generics : How to use them and Implement them in Rust

Reading Time: 4 minutes When we want to write code for multiple contexts we use Generics. It give us primitives to declare placeholder that allow us to focus less on the specific types. It allows us writing a more concise and clean code by reducing code-duplication and providing type-safety.  Generic Functions In a generic definition, we write the type parameter between open and close angle brackets after the name. In Rust, generic also describes anything that accepts one or more generic type Continue Reading

What are the different types of collection in Rust

Reading Time: 4 minutes Rust’s standard library includes a number of very useful data structures called collections. A collection is something that holds zero or more elements in some fashion that allows you to enumerate those elements, add or remove elements, find them and so forth. Rust’s collections can be grouped into four major categories: Sequences Maps Sets Misc Sequences Collection Sequences are supported in many forms in Rust. Vec Continue Reading

How Substrate Frame v2 different from Frame v1

Reading Time: 3 minutes Blockchain is a specific type of database. It differs from a typical database in the way it stores information. Blockchains store data in blocks that are then chained together. Blockchain has changed how we perceive problems. It has brought tons of benefits. Blockchain technology solves key issues like trust in a network. Blockchain technology utilizes advanced security compared to other platforms or record-keeping systems. By using Continue Reading