Author: Mr.ParottaSalna
-
Code Smell : Anemic Model / Data Class
Problem faced: During our software development, we used to use design a class just to use it as a data structure. But while i was interested in reading about code smells; i got to know that its one of the anti pattern. So what is the problem with using a class like that; what is the design…
-
COPY or ADD in DOCKERfile ?
While i was reading on the best practices of writing a Dockerfile, its mentioned that COPY is preferred than ADD. The COPY and ADD commands in Docker are both used to copy files or directories from the host machine to the Docker image. However, there are key differences between the two: Use of Local Files…
-
Why do we need to maintain same hash in load balancer ?
Introduction Have you ever thought of what is that ? when developers discuss like add a server; we need to scale up; we can scale down; implement a load balancer to equally share the request. In this blog post, we can go from basic methodologies in designing a solution where we equally distribute the request…
-
Can we use PUT in place of IDEMPOTENT POST ?
Consider we have created an idempotent post request. So now the functionalities of PUT and POST are similar. So is it okay to use PUT inplace for POST ? We should understand what PUT and POST from IETF documentation. PUT: https://www.rfc-editor.org/rfc/rfc9110#section-9.3.3 The PUT method requests that the state of the target resource be created or…
-
Can we use database as queue in asynchronous process ?
When reading about kafka, rabbitmq or any brokers; this is the thought that comes to my mind. Why can’t we simply use a database ? This post deals with analysing various working area of a broker and how it can be done in database. TL,DR; Don’t use RDBMS for implementing asynchronous process. There are some…