Author: Anmol Mehta

Working with Rust: Understanding struct, impl, methods and self

While working with any programming language, we always have a requirement of creating custom data types. If you are familiar with any object-oriented language, there are classes that comprise data attributes and some methods to play with their context. The objects of these classes are used for reflecting the behaviors. Like other languages, Rust also provides us with all these flexibilities, but in its own Continue Reading

Working with Rust: Formatting, Linting & Auto-completion

Every language has its own toolset for writing effective and clean code, Rust is no different. So in this blog, we would be describing how to format the rust code, while working with different editors or IDE. Formatting code is a mechanical task which takes both time and mental effort. By using an automatic formatting tool, a programmer is relieved of this task and can Continue Reading

4 Steps to Resolve CORS – Lagom.

Welcome All!! In this blog, we are going to discuss about the CORS issue and how it has to be resolved while working with Lagom. So Let’s begin. What is CORS? CORS: Cross Origin Resource Sharing Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the Continue Reading

Introduction to Consul (Part-2): KV-Store

Hello All !! In our previous blog we discussed in brief about what Consul is, and what could it provide us to work upon. And now we will be discussing one of the features mentioned earlier. Feature: Configuring the services. Consul provides a hierarchical key/value store for fulfilling our purposes like, including dynamic configuration, feature flagging, coordination, leader election and more. And in this blog, Continue Reading

Introduction to Consul (Part-1)

In this blog, we are going to discuss an amazing tool used for service discovery and configuring services using Consul. Hold on a second!! There must be some questions in your mind: Aren’t there so many tools already doing that and are being used by everyone? Wow !! I have been using tools like Zookeeper for service discovery, And they are pretty good. Now, do Continue Reading

Automate your requests using Postman Collections – Part #2.

Previously on the blog, We discussed what is Postman Collection and how to create them. But our main aim is to use these collections to automate our requests, such that, we can dynamically modify: URLs Paths Request parameters And a lot more. As we referred in the earlier blog,  We first need to understand the reasons for these automations. Environments: While working with APIs we Continue Reading

Automate your requests using Postman Collections – Part #1.

We usually use the Postman to send requests to our APIs and get a response. All the requests that we send come under history so that we could re-use the requests. But this is a manual approach. So the questions that rises are: Why use Postman collections?. Why would we need to automate them? We will be going through the answer to the first question Continue Reading

Actor Model : Basics before going deep.

We have CPUs and they are getting better every day, in helping us process fast. But CPUs are not getting faster!! What’s happening is that we now have multiple cores on them. And, to take advantage of this, we need a way to run our code concurrently. Some concurrency models that we are already familiar with, are: Processes Threads Futures Coroutines For concurrency, we as Continue Reading

JMockit: A beginner’s guide for Unit Testing

So we are following TDD, And we are working on unit test cases, And then we are stuck with mocking. Well this was the situation we faced. And while going through various API tools for mocking, we came through this amazing toolkit: JMockit. What is JMockit? JMockit is open source software licensed under the MIT License. It includes APIs for mocking, faking, and integration testing, Continue Reading

Lagom: Consuming a service part-2

So here’s the situation: We are using Lagom framework to develop our micro-services and we need to consume data from other services. What should we do? Well, it’s not going to be a problem for us. Lagom provides very easy way to consume a service. The very first way to consume a service is to use the unmanagedServices parameter provided in Lagom plugin. To understand Continue Reading

Lagom and Immutability

What is Lagom? Lagom is not in disguise anymore. Everyone who’s following on micro-service architecture knows about Lagom framework. Lagom is an open source framework built with the shifting from monoliths to micro-services-driven application architecture in mind. It abstracts the complexity of building, running and monitoring micro-services driven applications. The Lagom framework includes Java and Scala APIs to simplify development of microservices. Lagom helps us Continue Reading

Let’s Consume a Micro-service

Micro-services architecture is being widely adopted and guess what, Lagom is the most efficient way to achieve it.  While creating micro-services, we usually need to interact with other micro-services and consume their data. So the idea behind this blog is to guide you through the steps needed to integrate an unmanaged service. Apparently, Integrating an external API in Lagom is challenging at first but it Continue Reading

SMILE because Regression is easy with Scala

When we think about Regression in Machine Learning, what usually comes in mind are these two techniques: Linear and Logistic regressions. These forms of Regression are considered most used and that’s why they became the most popular. But the truth is, there are many other Regression techniques and all have their significant use in Machine Learning depending on the situation. So in this blog we Continue Reading

%d bloggers like this: