Before diving into the producer configurations, let us understand how the producer sends the data to Kafka. Kafka stores the messages in the topic, which are further broken into partitions. Producers send the messages to the topic with keys. If there is no key with the value, it will follow a round-robin process to select the partition for storage. The data can be sent synchronously or asynchronously by Producers.
By default, data is sent asynchronously. In it, when send() is called, messages are not actually sent, instead they are collected in the buffer and sent later. …
In recent years, GoLang has become popular backend language for web development. In this article I will tell you
For practise you can find the sample code on this link.
Someone can find creating project, importing the files as complicated, but once you know it is very easy. Install the go on your laptop either using brew install go or from the Golang website.
Create folder for your project.
Create Go.mod file…
Homebrew is a package management system which saves time from searching version and configuration of latest software packages. If you have not install the homebrew run the command from the homebrew website.
> brew install redis
Redis run in same way as we run mysql
> brew services start redis
Redis by default will start at 6379 port. You can check if its running or not by running command redis-cli. If it is connected you can run further redis command else it will show not connected.
You can configure the redis by making changes in configuration which can be found…
The best practice of developing an application is to make it loosely coupled. We should be able to add new features, properties without affecting its other pre-existing functionalities. And as our application grows, into different micro-services, modules it becomes difficult to manage the properties of the application. Which property is for the development platform and which is for production builds. With changes in the properties, we have to rebuild, retest and deploy the application again.
With Docker’s ease of deploying the application, getting rid of configuring server, and the environment of the application, ,most company uses docker for their products. In this article, I will talk about how we can create a docker image of the Node.js and Spring boot applications. Dockerizing Spring boot applications can be done in different ways which we will discuss.
Docker file is the file used by the docker engine to create the docker image of the application. It is a set of instruction which are run by docker engine. Think of it as steps that you would have followed…
In today’s market docker is vastly used to deploy applications on cloud, personal servers. It is an open source containerization technology, which containerize our application so that it can be run anywhere without configuring the environment.
For practising the commands you can use ruminder/docker-react-app:v1.0 image.
When you start developing your application and created one, everything works fine on your local machine. But when you deploy it, you get errors which can be due to any number of reasons, the environment does not have required libraries or the version is incompatible with it, or getting the errors from the system as…
Using kafka in Spring Boot is very easy. Spring Boot provide kafka dependency to use different classes to produce and consume methods to the kafka. In this post I will only be covering basics methods to start you producing and consuming the topics.
I have explained different ways we can achieve the production and consumption of messages. The code can be found here. Follow the instructions written in readme file to run.
Create spring boot project using spring initializer and add dependency of web and kafka. You can add it later in pom.xml.
To send data…
AWS Lambda make it easy to deploy our code without setting up any server. All the logic of our features can be written on Lambda functions, which run only when request is made to them. It automatically scales depending on the requests.
In this post we will see
Function where we put our application logic to be run on servers without managing them. Before starting with Lambda function, make…