Posts

Showing posts from August, 2020

Setting up RabbitMQ MQTT broker with for 2-way SSL

Image
I wrote this tutorial because of the problems which I have faced in setting up 2-way SSL in the Rabbitmq broker. Hope you can figure your problem easily by following this guide. In two way SSL both certificates are exchanged among server and client and both sides are verifying the certificates. First, we have to generate certificates let's user guide in the Rabbitmq documentation to generate certificates https://www.rabbitmq.com/ssl.html git clone https://github.com/michaelklishin/tls-gen tls-gen cd tls-gen/basic # private key password make PASSWORD=bunnies make verify make info ls -l ./result                                                                                                                 Then you will generate the following certificates Next, you have to edit the rabbitmq.conf and advanced.conf to setup these certificates in rabbitmq.conf Add following config ( location /etc/rabbitmq/rabbitmq.conf )

Microservices basics

Image
Microservices development is about is making the architecture at a component level work the way good development practices and well modularization the code. In simple definitions, microservices have the following characteristics. In this article, we are focusing to see these in a more practical way. Smaller scoped units of work Scale independently among other components without affecting them Focus on data and business or function domains Before going to the design patterns lets define basics for the microservices These terms can be explained via a simple example. Think about a pizza delivery system. 1. Data Service will be a product, customer in this pizza delivery system.  2. Business service is defined by data services from a business perspective. Business services can be built on a single data domain or multiple data domains. As an example order domain, we can say as business services which uses product data and customer data and also you will