Engineering IT Glossary: Infra & Cloud

๐Ÿ’ก Engineering IT Glossary: Infra & Cloud โ€” Executive Summary

Technical architectural analysis, practical configuration manifests, and deployment instructions for Engineering IT Glossary: Infra & Cloud.

Web development common

Basic Terminology
Parameter
  • Parameters used in function definition
  • a and b below are parameters of the test function.
javascript
function test(a, b) {
  	return a + b;
  }
Argument
  • Argument values passed when using a function
  • c and d below are arguments when calling test.
javascript
const c = 20;
  const d = 10;
  test(c, d);
Query Parameter
  • In URL ? Subsequent key=value pairs
  • a and b below are query parameters of the request.
bash
curl -XGET http://aaa.bbb.ccc/ddd?a=10&b=20
Path Parameter (or Path Variable)
  • Variables included as part of URI (path)
  • 123 below is the Path Parameter of the request.
bash
curl -XGET http://aaa.bbb.ccc/eee/123
Payload
  • Data included in POST, PUT, PATCH Request Body
  • The JSON data in the -d flag below is Payload.
bash
curl -XPOST http://aaa.bbb.ccc/fff/ \
    -H "Content-Type: application/json" \
    -d '{"name": "Alice", "age": 30}'
URI
  • Identifier of the resource (any string representing the resource)
  • Example: mailto:[email protected]
URL
  • Identifier including location and access method (scheme) of the resource
  • Example: https://example.com/page
  • URL is a subconcept of URI.
HTTP status code
โœ… 1xx (Informational) โ€“ Informational response
Code Meaning Description
100 Continue keep going If the client sends Expect: 100-continue, the server responds asking to continue.
101 Switching Protocols Protocol Switching Used when changing the protocol to WebSocket, etc.
โœ… 2xx (Success) โ€“ Request Success
Code Meaning Description Example
200 OK Request Success Typical response for most requests, such as GET, PUT, etc. GET /users
201 Created Resource creation successful When a new resource is created with a POST request POST /users
202 Accepted Accept request (asynchronous processing) When still processing (e.g. stored in queue) Large batch operations, etc.
204 No Content Request successful, no response body When no response is required, such as a DELETE request DELETE /users/123
bash
curl -XDELETE http://aaa.bbb.ccc/users/123
# ์‘๋‹ต: HTTP/1.1 204 No Content
โš ๏ธ 3xx (Redirection) โ€“ Redirection
Code Meaning Description
301 Moved Permanently permanent move Resource moved to another URI
302 found temporary move Temporarily respond with a different URI
304 Not Modified no change Cached resources can be used as is (when using If-Modified-Since, etc.)
โŒ 4xx (Client Error) โ€“ Client Error
Code Meaning Description Example
400 Bad Request bad request Parameter error, JSON parsing failure, etc.
401 Unauthorized Authentication required Token missing, invalid
403 Forbidden no access No permission (authenticated but denied)
404 Not Found doesn’t exist Bad URLs, deleted resources, etc.
409 Conflict crash occurred Duplicate data, version conflicts, etc.
422 Unprocessable Entities Unable to process Mainly used when validation fails (e.g. name is required but missing)
bash
curl -XPOST http://aaa.bbb.ccc/users \
  -H "Content-Type: application/json" \
  -d '{"age": 30}'
# ์‘๋‹ต: HTTP/1.1 422 Unprocessable Entity
๐Ÿ’ฅ 5xx (Server Error) โ€“ Server Error
Code Meaning Description
500 Internal Server Error Server internal error Exception handling failure, runtime error, etc.
502 Bad Gateway gateway error Proxy/Gateway server receives invalid response
503 Service Unavailable Service unavailable Server overload, under maintenance
504 Gateway Timeout gateway timeout Backend server response delay
Web Storage
Cookie
  • Accessible from both browser and server
  • Automatically sent to the server with each request
  • Expiration date can be set
LocalStorage
  • Only accessible through browser
  • Keep until manually deleted
  • Not sent to server
SessionStorage
  • Only accessible through browser
  • Deleted when tab is closed
  • Not sent to server

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *