Scala

GitPython: How to use Git with Python

Reading Time: 4 minutes GitPython is a python library used to interact with git repositories. It is a module in python used to access our git repositories. It provides abstractions of git objects for easy access of repository data, and additionally allows you to access the git repository more directly using pure python implementation. Requirements for GitPython Python3 Git GitPython module pip and virtualenv, which come packaged with Python Continue Reading

AI: Right Structure of Agents For your Business

Reading Time: 5 minutes In the previous post, we discussed the environment in which the agent operates and the characteristics of those environments. In this post let us talk about the types of agents and challenges of data set for the agents. All agents have the same skeletal structure. They get percepts as inputs from the sensors and the actions are performed through the actuators. Now the agent can Continue Reading

Understanding persistence in Apache Spark

Reading Time: 4 minutes In this blog, we will try to understand the concept of Persistence in Apache Spark in a very layman term with scenario-based examples. Note: The scenarios are only meant for your easy understanding. Spark Architecture Note: Cache memory can be shared between Executors. What does it mean by persisting/caching an RDD? Spark RDD persistence is an optimization technique which saves the result of RDD evaluation Continue Reading

Stream your data using Amazon Kinesis Firehose

Reading Time: 4 minutes We live in a world driven by data and every second we are processing a large amount of data, using it, analyzing it, and transforming it. Data is very essential for businesses these days. Therefore need for handling the Dynamically generating data is important. As the number, variety, and velocity of data sources grow, new architectures and technologies are needed. Technologies like Amazon Kinesis are Continue Reading

How to Analyze query performance in MongoDB

Reading Time: 2 minutes Analyze query performance in mongodb may became complicated if we do not really know which part should be measured. Fortunately, MongoDB provides very handy tool which can be used to evaluate query performance: explain(“executionStats”). This tool provide us some general measurements such as number of examined document and execution time that can be used to do statistical analysis. The Database and Collection In this easy tutorial, Continue Reading

Mock Servers in Postman

Reading Time: 4 minutes If we do not have a production API ready, or you do not want to run your requests against actual data,we can make requests that return mock data defined within Postman . By introducing a mock servers and adding examples to our requests, we can reproduce the behaviour of a real API. Basically Postman matches the request configurations to the examples we saved with request Continue Reading

Java8 Futures: Introduction & Best Practices

Reading Time: 3 minutes Hi there! Today, we are going to talk about Futures in Java. We will also look at some of the best practices related to them. What are Java Futures and why do we need them? To understand this better, firstly we must understand what is blocking and why is it bad for our software. BLOCKING – A blocking/long-running call occurs when a thread is tied Continue Reading

How to generate AWS Signature with Postman

Reading Time: 4 minutes Hello folks, I hope you are having a productive day in this pandemic of COVID-19. Let’s move on to our next blog in the series of API automation. Most of us are doing automation using the tool Postman. So while performing automation with postman we have to integrate many other tools and APIs with Postman. Similarly to use the AWS APIs we need to create Continue Reading

Do you know about Union Types in Scala 3.0?

Reading Time: 2 minutes You might have learnt union of subsets in mathematics, similarly, we have union types in Scala 3.0 as well. Let’s see, how can we use union types while programming in scala: What is Union? Union of two things under consideration, is the collection of elements which can belong to either of them or both of them . Let’s understand with respect to set theory:Set s1 Continue Reading

Do you know about Intersection Types in Scala 3.0, Dotty?

Reading Time: 2 minutes You might have learnt intersection of subsets in mathematics, similarly, we have intersection types in Scala 3.0 as well. Let’s see, how can we use intersection types while programming in scala: What is Intersection or Conjunction? Intersection of two or more things under consideration, is the collection of common things among them. Let’s understand with respect to set theory:Set s1 = {2, 3, 5}, set Continue Reading

Combating Fallacy in Scala

Combating Fallacy in Scala: Part 3

Reading Time: 3 minutes Hey everyone, I’m back with another blog, “Combating Fallacy in Scala: Part 3“. So, in this blog, we will have a look into Classes in Scala and the Constructor Parameters. Class and Constructor Parameters Before moving to the problem in this blog, let’s have a look at classes in Scala. According to the Scala Docs “Classes in Scala are blueprints for creating objects. They can Continue Reading

AWS Serverless Services: Lambda

Reading Time: 3 minutes Hi folks, next in the series of our Serverless Service is AWS Lambda. But before that if you haven’t checked my previous blog on the serverless series, take a look at it here https://blog.knoldus.com/aws-serverless-services-athena/ What is AWS Lambda AWS Lambda is a compute service that lets you run code without provisioning or managing servers. What this basically means is that you can write the code Continue Reading