-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathsession-07.txt
109 lines (72 loc) · 1.92 KB
/
session-07.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Roboshop configure
---------------------
1. Web/frontend tier
2. App/Api/Backend tier
3. DB tier
DB apps are called statefull
App/Web apps are called stateless
CRUD over database
--------------------
create user
read user
update profile
delete profile
nginx is used as reverse proxy here.
RHEL = Fedora = CentOs = AWS Linux
CentOs
devops-practice based on centos-8
centos/DevOps321
Web
-----------
http = web server
nginx = 80
dnf vs yum
-----------
centos 7 = yum is default package
centos 8/9 = dnf is default package manager
yum > dnf in memory
/etc/nginx
forward proxy vs reverse proxy
-------------------------------
VPN --> virtual private network
Servers are not aware of clients are behind VPN
anonymous access --> hiding our identity
forward proxies can't understand real clients
security --> companies can impose restrictions not to use particular sites, file upload and to monitor use internet behaviour
clients are aware of proxy, servers are not aware
reverse proxy
-------------------------------
clients are not aware of server side
apps use reverse proxy to secure their code
load balancing
http://54.197.5.96/api/catalogue/categories --> querying catalogue to know the product categories
HTTP status
--------------------
2** --> success
3** --> redirect/temp --> images, gifs are redirected
failure responses
-----------------
400, 404, 403, 402
4** --> client side error
5** --> server side error --> purely project error
MongoDB
-----------------
forward proxy vs reverse proxy
caching
--------------
Airtel --> 1000 users
1 user downloaded bahubali movie --> server from US
cache server --> bahubali movie
2nd user get from cache server --> more speed
127.0.0.1 --> localhost
dnf install nginx -y
systemctl start nginx -->
http://54.197.5.96/api/catalogue/categories
304 --> not modified
Assignment
--------------
HTTP codes
Forward proxy vs Reverse proxy
configure our project
devops-practice
centos/DevOps321