My Understanding about RUN, CMD and ENTRYPOINT in Dockerfile

Containerization gives us many benefits from packaging to distribution and others. Thus, Docker is widely used as a containerization tool which is designed for running specific tasks and processes, not for hosting operating systems or like other virtualization tools like VMWare, VirtualBox etc. You create a container to serve a single unit task. Once it completes the given task, it stops. The container life-cycle depends on the ongoing process inside of it. Once the process stops,

Continue reading My Understanding about RUN, CMD and ENTRYPOINT in Dockerfile

Effective use of Redis with Python and Connection Pool

I have been working with redis and python for sometime. It is fun to play with python and redis. There are so many things can be solved by redis.

  • Session persistency
  • Caching
  • Volatile Datastore
  • Job or Message Queue
  • Search

And many more. But recently I was thinking about using it as main database. I am not yet sure what kind of problem I might face or what things to optimize when it is about scalability or reliability. I will for sure share my experience.

Here I want to talk about –

Continue reading Effective use of Redis with Python and Connection Pool

How to run Python Flask Application?

I mostly use Python Flask when I need to develop a Web App or API.

Why? Because it is:

  • lightweight
  • Very Flexible
  • Micro-Service Friendly
  • Fast Development

These are one of the main reasons I choose Flask. But mostly I love to code with Flask. There are so many ways to run flask applications. I will write some of them here with code examples.

Continue reading How to run Python Flask Application?

Apache Kafka in Docker Container and Implement it’s Functionalities with Python

According to the website, Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.

In this post, I am going to share a basic way to start using Apache Kafka with python.

Continue reading Apache Kafka in Docker Container and Implement it’s Functionalities with Python

Pythons datetime of a timezone

In python, we can use datetime module from standard library for manipulating dates and times. From the documentation, we can say, date and time objects may be categorized as “aware” or “naive” depending on whether or not they include timezone information. How can we get a datetime?

Continue reading Pythons datetime of a timezone