Skip to content

Instantly share code, notes, and snippets.

@notionquest
notionquest / Distributed_Logging.md
Last active June 22, 2020 13:32
Distributed_Logging.md

Distributed Logging:-

B3 Propogation:-

https://github.com/openzipkin/b3-propagation

B3 Propagation is a specification for the header "b3" and those that start with "x-b3-". These headers are used for trace context propagation across service boundaries.

Span Id:-

@notionquest
notionquest / docker.md
Last active December 3, 2019 11:25
Docker

Container:-

Containers are just normal Linux Processes with additional configuration applied.

PID and PPID:-

Docker can help us identify information about the process including the PID (Process ID) and PPID (Parent Process ID) via

docker top db

@notionquest
notionquest / refactoring.md
Last active November 20, 2019 12:13
Refactoring code

Basics:-

  1. Names are important
  2. Replace condition with Polymorphism i.e. create subclass for each variation
  3. Remove duplicated code i.e. DRY - Don't Repeat Yourself principle
  4. Yagni ( "You Aren't Gonna Need It" ) - Extreme Programming - i.e. Don't design or code anything for future requirements because it may not be required
@notionquest
notionquest / kubernetes.md
Last active November 21, 2019 11:18
Kubernetes

Basic Kubernetes Commands:-

  • minikube start --wait=false

To start the Kubernetes minikube

  • kubectl cluster-info

To get the cluster information

@notionquest
notionquest / reactivesystems.md
Last active November 18, 2019 17:28
Reactive systems

https://projectreactor.io/ http://rsocket.io/docs/Motivations

Reactive Systems are:-

  • Responsive - The system responds in a timely manner if at all possible.
  • Resilient - The system stays responsive in the face of failure.
  • Elastic - The system stays responsive under varying workload.
  • Message Driven - Reactive Systems rely on asynchronous message-passing to establish a boundary between components that ensures loose coupling, isolation and location transparency
@notionquest
notionquest / cloudnativeprinciples
Last active November 18, 2019 12:48
Cloud Native Application Principles
Cloud Native technologies empower organizations to build and run scalable applications in modern, dynamic environments such as public, private and native clouds.
Cloud Native is structuring teams, culture and technology to utilize automation and architecture to manage complexity and unlock velocity.
* More Speed
* More Scale
* More stability
* More Secure
* Cloud native infra
@notionquest
notionquest / aws_sysops_2019.txt
Last active September 19, 2019 19:35
AWS SysOps Admin - Associate 2019
https://d1.awsstatic.com/training-and-certification/docs-sysops-associate/AWS%20Certified%20SysOps%20-%20Associate_Exam%20Guide_Sep18.pdf
Min Score: 720
Time: 130 minutes
65 Questions
150 USD
Scenario based questions
@notionquest
notionquest / fake_rest_api.txt
Last active August 24, 2019 20:01
Fake REST Api
https://github.com/typicode/json-server
@notionquest
notionquest / PWA.txt
Last active March 20, 2019 09:06
Progress Web Application
https://material.angular.io/guide/schematics
ng add @angular/material
ng add @angular/cdk
cdk - component development kit
JWT:-
----
Storing it in cookie Vs Local Storage ..
@notionquest
notionquest / dynamodb_scan_table_local.js
Created June 1, 2018 12:53
dynamodb scan table local in shell
var dynamodb = new AWS.DynamoDB({
region: 'us-east-1',
endpoint: "http://localhost:8000"
});
var params = {
TableName: "Movies",
};
function doPrint(response) {