Descriptive and Inferential statistics – the two types of statistics Data Science by Sunny Srinidhi - January 30, 2020January 30, 20200 If you’re new to the world of data science, you’ll know that lack of knowledge in statistics could sometimes be very frustrating and hinder progress. It becomes very important to know at least the basics of statistics. In this post, we’re going back to the basics. Read more... “Descriptive and Inferential statistics – the two types of statistics”
Binary Tree Implementation in Java Tech by Sunny Srinidhi - January 27, 2020January 27, 20201 More in The Data Structures series. After learning how to implement a stack, various types of linked lists, and even a hash map in Java, today we’ll see how we can build our own binary tree in Java. Read more... “Binary Tree Implementation in Java”
Sorting in MongoDB in Java using BasicDBObject Tech by Sunny Srinidhi - January 24, 2020January 24, 20200 In this post, we’ll see how we can write a MongoDB sort query in Java. Sorting is one of the basic operations we do when querying any database. MongoDB is no different. The database offers sorting on any field in a document, and in any direction. Read more... “Sorting in MongoDB in Java using BasicDBObject”
Emulating Apache Kafka with Amazon SNS and SQS Tech by Sunny Srinidhi - January 22, 2020January 24, 20200 I have already written quite a few posts about Apache Kafka. It’s an awesome tool for parallel and asynchronous processing. You can have multiple producers and multiple consumers listening to a topic to process each and every message coming out of the topic. Read more... “Emulating Apache Kafka with Amazon SNS and SQS”
Publishing messages to Amazon SNS from a Spring Boot application Tech by Sunny Srinidhi - January 20, 2020January 24, 20200 In this post, we’ll see how we can publish messages to Amazon SNS, which stands for Simple Notification Service. If you’ve already read through my post about how to send messages to an SQS queue, you’ll see this post is quite similar to that. Read more... “Publishing messages to Amazon SNS from a Spring Boot application”
Receiving messages from Amazon SQS in a Spring Boot application Tech by Sunny Srinidhi - January 16, 2020January 24, 20200 In this post, we'll see how we can receive messages from an Amazon SQS queue in a Spring Boot application. This is a continuation of the previous post where we talked about how we can send messages to an SQS queue. The obvious next part of that is how do we receive those messages. So in this post, we'll do just that. If you don't have an Amazon SQS queue created already, checkout the previous post on how to do it. Here, I'll assume that you already have that pipeline setup. So I'm going to skip that part of the post. We'll jump right into the code. The Code The first thing we need to add in our Spring Boot application is the
Sending messages to Amazon SQS from a Spring Boot application Tech by Sunny Srinidhi - January 14, 2020January 24, 20203 We're looking at yet another proof of concept (POC) application today. We're going to see how we can integrate Amazon SQS, which stands for Simple Queue Service into our Spring Boot application so that we can send messages to the queue. I'm going to use a few terms in this post which are influenced by Apache Kafka, because I come with extensive Kafka experience. However, I'm not going to compare Apache Kafka and Amazon SQS here. To clear things up, any service which sends a message to an SQS queue, I'll refer to such a service as the producer. And any service which receives a message from an SQS queue, I'll refer to that as the consumer. Now that we
Circular Double Linked List Implementation in Java Tech by Sunny Srinidhi - January 10, 2020January 16, 20200 More in The Data Structures series. We'll continue our data structures journey with this post about how to implement a circular Double Linked List (DLL) in Java. This is very similar to the standard DLL with the only difference being the connection of the head with the tail. That means, we link the head the tail to each other, which we can visualise as a circle, because a circle has no start and no end. Because the head and the tail of the list are connected to each other, we can say that there is no start and no end. But of course, we have references to both the head and the tail, to make our traversal easy. If you have not
Using Google’s libphonenumber Library to Parse and Validate Phone Numbers Tech by Sunny Srinidhi - January 9, 2020January 9, 20200 We all work with phone numbers in almost any project or product which has human users. And when the product is available to a global user base, it becomes very difficult to maintain valid phone numbers in the database. We need to make sure the phone numbers for different regions are of the proper length for their regions, add country codes, or remove them, and a lot of such validations. This could become a project of its own pretty soon. We had such an issue in one of our projects. When I was doing the research to find an easy to use and light weight tool so that I could outsource the smarts involved in this to, I came across the
Encrypting and Decrypting data in MongoDB with a SpringBoot project Tech by Sunny Srinidhi - January 8, 2020January 8, 20205 In quite a few applications, we'll have a requirement to keep the data in our databases encrypted so that even if somebody gets into the database, they might not understand what the data is. Encrypting is crucial in many applications. With the rise of NoSQL databases these days, we'll take a look at how we can encrypt data going into a MongoDB database from our Spring Boot application. We'll also see how we can decrypt that data after getting it from the database into our application. One thing you need to know before trying this on any production-grade application is that this will slow things down. There are two extra steps involved in this process - encrypting and decrypting the data.