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?

Multi line Log Parser in Python

So, I have a log file that is not single line log. It is kind of java stack trace. What I needed to do is read those log files and create some actions depending on them. I could use already built tools. But I thought why not just do this as simply as printing strings.

This is an example of the log format I wanted to play with. It seems too simple to pile up the Filebeats or elastic stack.

Continue reading Multi line Log Parser in Python

Some coding practice with Json, Itertools and Lambda in Python

I enjoy coding and solving problems. But as I go forward, I find myself in a sea of unknowns. Thus I decided to learn as much as possible to be confident. So, I am learning even the simplest it seems.

Continue reading Some coding practice with Json, Itertools and Lambda in Python