Posts

Cookie, Session and Token

Browsing is significant in everyday life and unavoidable. Do you know how your data is stored and how you are getting the responses based on your HTTP request through the web browser? A session is created temporarily when the user wants to use a particular website. It refers to the user's visiting time and has other session-related details. The cookie and session are combined together to work for the user's better experience. The web browser sends the session ID with the cookie to the server to check the user is valid when they try to access another related page and the session ID is unique and hard to guess. The session information will be stored in the server's database only when the cookie has the session ID details. In the bank example, when the user logs in to their account, the session is created with ID and the session ends when the user logs out or is inactive for some time. A token is totally a different concept in which the server creates a token ID when the user ...

Monolithic architecture

Image
In today’s world, the debate is still going on about which architecture suits best in every perspective. We will discuss in a shorter context about this topic. Monolithic is a coupled, single-packed architecture that combines all the services related to the business under a single shed. It includes all related services such as web server, load balancer, database, UI/UX, business layer, and interfaces. It integrated everything into a single-piece server as a product. Examples of such organizations such as Facebook, GitHub, Epic System, and WordPress. We will see the pros and cons of using monolithic architecture. Benefits Easy deployment: Since monolith is a single unit, it is easy to deploy. No coupling time: There is no run-time and design-time coupling between multiple components. Operations: Operations that take place locally and can be done in ACID (Atomicity, Consistency, Isolation, and Durability) implementations since it uses a single database. Performance: Due...

Software Testing...

Image
Everyone is a tester in our day-to-day life without our knowledge irrespective of the technology we use. We do web application, mobile, and desktop testing to connect the world. “Testing  is the process of evaluating a product by learning about it through experiencing, exploring, and experimenting, which includes to some degree: questioning, study, modeling, observation, inference, etc.” -  James Bach and Michael Bolton Let me take an example. Nowadays, it is our first ritual or habit to check our mobile phone after we open our eyes or even before we hear the alarm. We have a separate inseparable bond with it. You might be shocked if the alarm is not ringing up correctly and you missed waking up. It might delay your daily routine. Right? Below are a few checkpoints you should verify before you go to bed. ü   Select the present time zone ü   Correct date and time to set up an alarm ü   Enable the alarm option ü   The alarm volume is not silent ...

What is a Socket?

Image
Socket acts as an endpoint to communicate two computers with one another in a computer network. When two applications running on two different machines want to send data, a socket is used to transfer by connecting ports on the machines through their IP addresses. It is executed by the transport layer such as a TCP/IP model or OSI model using protocols like TCP, and UDP. The client sends a request to the server by establishing a connection through the server port and its IP address. Socket address is the combination of socket and IP address. For example, the IP address is 10.10.10.10 and the port number is 80, so the socket address is 10.10.10.10:80. There are three types of sockets available: a) Stream socket (Connection-oriented): Error-free, reliable, and bidirectional. It uses Transmission Control Protocol (TCP) to deliver sequential packets by establishing a connection. Applications used here are Telnet/SSH, HTTP, HTTPS, etc. b) Datagram socket (Connectionless): This type of soc...

Who invented the Internet?

Image
 The Internet is familiar to everyone. We know that it is difficult to survive without them. But, have you ever had thoughts on who invented the internet? A short history of how the internet was born. Lawrence Roberts and Leonard Kleinrock worked together in the Advanced Research Project Agency (ARPA) in America. Roberts was the first to connect two computers by developing the packet-switching network in 1969. By using this, Kleinrock was able to transfer data to another site. This is how the ARPANET was born. “Bob Kahn” and “Vint Cerf” are the ones who developed the TCP/IP in 1974. American computer scientists developed this set of protocols governing how data moves through a network. Vint Cerf has the credit of the first written word ‘The Internet’. When asked to explain my role in the creation of the Internet, I generally use the example of a city. I helped to build the roads—the infrastructure that gets things from point A to point B. -Vint Cerf, 2007 No one invented the i...