Web Services

Being HEADLESS is cool!

Reading Time: 4 minutes Hi! Welcome to this two-part series wherein first I am gonna explain what is headless CMS and in second we are gonna create an end to end dynamic angular app with headless CMS for serving the API requests. In short, there will be no hands-on tutorial on this blog. Let’s learn So, if you are a complete beginner to the web development world or you Continue Reading

Integrate TestNG and Json-Server with Rest-Assured

Reading Time: 6 minutes A quick intro about Rest Assured? Integration of  TestNG with Rest-Assured What is  JSON Server and how to set it up. How to create or setup a project? Let’s get to our first question. What is Rest Assured? In brief Rest Assured is nothing but a JAVA library or a set of JAVA APIs for testing and validating RESTful webservices. In other words, REST Assured Continue Reading

Integration of a DocuSign service in Scala

Reading Time: 2 minutes DocuSign is the leading eSignature solution firm. Its cloud-based platform for automating the agreement process enables more than 370,000 companies and hundreds of millions of users in over 180 countries to accelerates  business and simplify life. DocuSign have a rich rest API interface and also have a SDK supports for many different languages like Java, C# , PHP etc. We can use these APIs to Continue Reading

Monkey patching in NodeJS

Reading Time: 3 minutes Hey guys, I am back with another blog in my series of blogs on mocking in nodeJS, so if you have read my last blog, in which we looked over how we can use sinon for testing in nodeJS to effectively mock and stub behaviours, so in this blog we would look over the concept of monkey patching to make things more testable, so let’s Continue Reading

Spies and Stubs in NodeJS

Reading Time: 3 minutes Hi folks, my last two blogs we discussed about how we can use monkey-patching to test complex code logic which could be difficult to test if it is not used, along with that we also looked over how can stub or mock behaviours of our dependencies using sinon, in this blog we would be exploring more utilities provided by sinon i.e; Spies and Stubs. Spies Continue Reading

Passing query parameters through your WebClient

Reading Time: 5 minutes We can use spring-boot:webflux’s WebClient to invoke a third-party service from within our spring boot application. This is asynchronous and reactive method supplied by spring for invoking of unmanaged services. We also saw how we can pass query params when invoking a 3rd party service and which case to chose with our requirements. Be cautious with what you are using and always document what you want and what you created so that things like these can be caught early during the development phase.

Spring: Reactive programming in Java

Reading Time: 3 minutes Reactive programming is a programming paradigm that promotes an asynchronous, non-blocking, event-driven approach to data processing. Reactive programming involves modeling data and events as observable data streams and implementing data processing routines to react to the changes in those streams. In the reactive style of programming, we make a request for the resource and start performing other things. When the data is available, we get Continue Reading

Integrating Lagom Service Discovery with Kubernetes

Reading Time: 3 minutes Consider a situation where a microservice is deployed on multiple pods and on condition one pod got restarted with any of the failure reason makes unreachable and at the same time interdependent services are registers its IP for communication. Now, since other pods of the service are alive but not able to communicate makes the communication failure as well as making the failure of every Continue Reading

Custom ErrorHandlers and Lagom

Reading Time: 3 minutes Hello everyone, it’s been quite a while now since I started working on Lagom(java) and it was only recently when I came across a scenario wherein I was required to override the ErrorHandler provided by Play in my Lagom microservice. As you all already know that Lagom is built on top of Play and Akka, so there will be times when we’ll be required to Continue Reading

Introduction to Consul (Part-1)

Reading Time: 4 minutes 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