Posts

Showing posts from May, 2018

[Pragmatic Thinking & Learning Notes] Chapter 1 Summary

Introduction: # of bugs programmers product in code remained constant for last 40 years despite technological advancement, programming languages, techniques, methodologies and so on. Perhaps we are focusing on the wrong places? Point #1: Software is created in your head, not IDE or other tools. In a paper by Federick Brooks, he says - "the Software Product is embedded in a cultural matrix of applications, users, laws, and machine vehicles. These all change continually, and their change inexorably force change upon the software product". We (developers) are at the center of society advancement. Thus, two most important modern skills are: Communication skills: Example: Agile methods improving communication skills between team members, managers and consumers Learning and Thinking skills. Learn constantly - not just technology, but also the context of the software, industry trends, and people. Point #2: Two most important modern skills are communication sk

[Network] Add/Delete Static Route in Windows Routing Table & TraceRoute an IP

Image
Adding Static Route in Routing Table Syntax of adding static route to routing table in cmd: route add -p destination_IP MASK subnet_mask   gateway_ip   metric_cost(optional) If you don't have a specific subnet_mask, then use 255.255.255.255. metric_cost is a cost relative to other costs in the routing table. Windows decides which route to take based on the metric_cost. Remember to trace route the destination_IP (explained later) after adding a static route to confirm the static route is working (that it does indeed go through your gateway_IP to reach your destination_IP). Removing Static Route in Routing Table Syntax of removing static route to routing table in cmd: route delete destination_IP Print Route To print your routing table, run this in cmd: route print For example, before you added any static route, in your 'route print' you will see none under persistent routes:  After you are done adding a static route, it'll look like this:

[Network] Static and Dynamic Routing

Routing Routing is the mechanism that informs the network the procedures to get to different IP networks. Routing is done via devices, known as routers. What's a Routing Table? According to howtogeek.com, "A routing routing table dictates where all packets go when they leave a system - whether that system is a physical router or a PC." Dynamic Route Most routers (including the one in your PC) use some form of dynamic routing, which means the router has the capability to figure out the best place to forward packets based on information from other routers. To see this in action, use the traceroute command to see the connections a packet makes as it reaches its destination. Use Case The use case of dynamic routing would be - imagine you have 100 routers, and you want to add 2 new different subnets. In this case, you will have to add 200 (2 x 100) static routing entries. Pros of using Dynamic Route Removes the likely of human error due to the repetitive n

[Web Architecture] Reverse Proxy vs Load Balancing

According to nginx.com, the definition of Reverse Proxy and Load Balancer are: A  reverse proxy  accepts a request from a client, forwards it to a server that can fulfill it, and returns the server’s response to the client. A  load balancer  distributes incoming client requests among a group of servers, in each case returning the response from the selected server to the appropriate client At this point, it almost seems as if they are the same thing. Let's dive deeper to see the difference. Load Balancing Sometimes, the volume of requests generated from your website may be too much for one server to handle. In that case, you will use  multiple servers. But even then, you will need something to distribute the requests to each server; evenly. This 'something' is the load balancer .  They basically solve network traffic problems. Session Persistence A cool thing that I also read about is session persistence . Will need more researching for this... Reverse Proxy

[Intro] Starting my Own Blog

Never thought I'd start my own blog. Thought it was time-consuming and only what show-offs would be doing, but I realized that I have many notes myself, and starting a blog will, in a way, force me to organize my notes better since I know anyone might be reading this.