• How to solve “root” does not exist in Postgres docker

    Problem By default when we create docker in Postgres, we usually use this command to create a container after that, we execute to Postgres container for my case, I run created command And we got an error createdb: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL:  role “root” does not exist Solution By default […]

  • What is a circuit breaker pattern

    The circuit breaker pattern is a design pattern that helps to prevent cascading failure in an application. It is based on the idea of breaking the connection between two components when there is a problem to reduce the impact of the failure. I’ll give an example of a real situation on the gateway. you can […]

  • How to convert list to numpy array in python

    In this tutorial, I will show you how to convert a list to a numpy array in python. The first thing we need to do is import the numpy module. This module is used for scientific computing and it has a lot of useful functions for data analysis. convert list to numpy array convert numpy […]