Image for post
Image for post
Photo by Caspar Camille Rubin on Unsplash

Assume you have an Application and you have to keep an eye on MongoDB’s queries or you want to track all Redis operations in order to optimize your application performance, the question which will jump to your mind how can i do that ?

following this article you will be able to do that.

1- MongoDB Logging using Mongotail

I am going to use mongotail which is command line tool to outputs any operation from a Mongo database in the standard output


Get started

I built a small NodeJs app to insert, query and drop this JSON data

First, we have to set log level to 2 to list all the operations [Enable…

The Domain Name System

Image for post
Image for post
“A meshwork of green ropes against a red background” by Clint Adair on Unsplash

In Part 1 We talked about :-

  • What is DNS?
  • The History Of DNS
  • Why DNS is important?
  • DNS Hierarchy
  • How does DNS work?

The main points for this part are:-

  1. Domain Delegation
  2. Resource Record (RRs)
  3. DNS Query
  4. DNS Message
  5. DNS zones
  6. DNS Resolvers

Domain Delegation

Domain delegation gives an organization authority for a domain. Having authority for a domain means that the organization’s network administrator is responsible for maintaining the DNS database of hostname and address information for that domain, example Google is repressible for managing .DEV

Resource Record (RRs)

DNS resource records describe the characteristics of a zone (or domain) and have a binary or wire-format, which is used in queries and responses, and a text format used in zone files and you can find more details here. …

Ansible + Real World App

Image for post
Image for post
“Colorful software or web code on a computer monitor” by Markus Spiske on Unsplash

What Is Ansible?

is an open source software that automates software provisioning, configuration management, and application deployment.

The Keys Features of Ansible


There is no software or agent to be installed on the client that communicates back to the server.


No matter how many times you call the operation, the result will be the same.

Simple and extensible

Ansible is written in Python and uses YAML for playbook language, both of which are considered relatively easy to learn.

Get Started

Installing and Running Ansible

For other OS check this link

Ansible Architecture


small programs that do some work on the server, so for example instead of running this…

The Domain Name System

The main points in this article :-

Funny Fact about DNS :

when you type you actually going to page

there is a dot at the end of the domain 🙂 “give it a try …….”

where is the last dot represents the root of the internet’s NameSpace

What is DNS “Domain Name Server”?

Is like a phone book for the Internet, If you know a person’s name but don’t know their telephone number, you can simply look it up in a phone book.

DNS provides this same service to the Internet by mapping a domain name to IP Address. …

Image for post
Image for post
Photo by Ryan Song on Unsplash

What is an Idempotency?

One can apply a certain operation on something many times, without changing the result of the operation after the first time the operation is applied.

No matter how many times you call the operation, the result will be the same.

The Funny Example about it

let’s say we have a cow it eats a mixture of grass hay, alfalfa hay, grains as well as corn and grass silage and it always gives you a milk

Image for post
Image for post
“Macro shot of Storm Trooper toys with a black background.” by James Pond on Unsplash

A makefile is a special file, containing shell commands, While in the directory containing this makefile, you will type make and the commands in the makefile will be executed

Get Started:

Open Makefile and paste the following lines into it which three tasks

help ,install andprepare


The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, and hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web.


a protocol is the special set of rules that end points in a telecommunication connection use when they communicate. Protocols specify interactions between the communicating entities.

Protocols usually consist of three main parts:-

1- Header: contains information such as source, destination, fileType and size.

2- Payload: the actual information transmitted using the protocol .

3- Footer: a control field to ensure the Payload data is transmitted free of errors.

History of HTTP

Image for post
Image for post

HTTP 0.9

From 1989, Tim Berners-Lee and his team at CERN , the European Nuclear Research Center in Switzerland, developed the Hypertext Transfer Protocol, together with the concepts of URL and HTML , which created the foundations of the World Wide Web. First results of this effort in 1991 were the version HTTP 0.9. …


Ahmad Farag

Software Engineer @

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store