Primrose Docs
  • Home
    • ⛓️Blockchain
      • Avalanche
        • What is AVAX?
      • Ethereum
        • Ethereum Cancun Upgrade Explained(draft)
        • go-ethereum: gas estimate
        • Blockchain Transaction Lifecycle
        • Mempool
        • Gas optimization in Solidity, Ethereum
      • Solidity DeepDive
        • Meta transaction
        • solidity: patterns
        • UUPS vs Transparent
        • Solidity Interface
        • Smart contract storage
        • ERC-2981 Contract
        • Solidity modifier
        • Solidity delete keyword
        • How To Make NFTs with On-Chain Metadata - Hardhat and JavaScript
        • How to Build "Buy Me a Coffee" DeFi dapp
        • How to Develop an NFT Smart Contract (ERC 721) with Alchemy
        • Upgradeable Contract
        • Smart Contract Verification
      • Common
        • Eigenlayer
        • MultiSig(draft)
        • Chain-Based Proof-of- Stake, BFT-Style Proof-of-Stake
        • Byzantine Fault Tolerance
        • Zero-knowledge
        • Hierarchical Deterministic Wallet
        • Maker DAO
        • Defi
        • Uniswap
        • IBC
        • Cosmos
        • Gossip Protocol
        • Tendermint
        • UTXO vs Account
        • Blockchain Layer
        • Consensus Algorithm
        • How does mining work?
        • Immutable Ledger
        • SHA256 Hash
        • Filecoin
        • IPFS - InterPlanetary File System
        • IPFS와 파일코인
        • Livepeer
        • Layer 0
      • Bitcoin
        • BIP for HD Wallet
        • P2WPKH
        • Segwit vs Native Segwit
    • 📖Languages
      • Javascript/Typescript
        • Hoisting
        • This value in Javascript
        • Execution Context
        • About Javscript
        • tsconfig.json
        • Nest js Provider
        • 'return await promise' vs 'return promise'
      • Python
        • Pythonic
        • Python: Iterable, Iterator
        • Uvicorn & Gunicorn
        • WSGI, ASGI
        • Python docstring
        • Decorator in Python
        • Namespace in Python
        • Python Method
      • Go
        • GORM+MySQL Connection Pool
        • Context in golang
        • How to sign Ethereum EIP-1559 transactions using AWS KMS
        • Mongo DB in golang(draft)
        • Golang HTTP Package
        • Panic
        • Golang new/make
        • golang container package
        • errgroup in golang
        • Generic Programming in Golang
        • Goroutine(draft)
    • 📝Database
      • MongoDB in golang
      • Nested loop join, Hash join
      • DB Query plan
      • Index
      • Optimistic Lock Pessimistic Lock
    • 💻Computer Science
      • N+1 query in go
      • Web server 를 구성할 때 Thread, Process 개수를 어떻게 정할 것인가?
      • CAP
      • Socket programming
      • DNS, IP
      • URL, URI
      • TLS과 SSL
      • Caching(draft)
      • Building Microservices: Micro Service 5 Deploy Principle
      • Red Black Tree
      • AOP
      • Distributed Lock
      • VPC
      • Docker
      • All about Session and JWT
      • Closure
      • Singleton Pattern
      • TCP 3 way handshake & 4 way handshake
      • Race Condition
      • Process Address Space 
      • Call by value, Call by reference, Call by assignment
      • Zookeeper, ETCD
      • URL Shortening
      • Raft consensus
      • Sharding, Partitioning
    • 📒ETC
      • K8S SIGTERM
      • SQS
      • Git Branch Strategy: Ship / Show / Ask
      • Kafka
      • Redis Data Types
      • CI/CD
      • How does Google design APIs?
      • Minishell (42 cursus)
      • Coroutine & Subroutine
      • Redis
Powered by GitBook
On this page
  • URL과 URI
  • URI(Uniform Resource Identifier)
  • URL (Uniform Resource Locator)
  1. Home
  2. Computer Science

URL, URI

URL과 URI

URL과 URI에 대한 얘기가 나왔을 때 직장동료가 “하나는 식별자고 하나는 아니다” 라는 얘기를 했는데, 속으로 “그렇게 쉽게 표현하다니, 대단한데?” 라고 생각했다.

개인적으로 좀 더 이해도를 높이고자 글로 남기려고 한다.

URI(Uniform Resource Identifier)

URI에 대해 검색해보면 다음과 같은 설명들이 쭉 나온다.

  • 인터넷에 있는 자원을 나타내는 유일한 주소이다.

  • 웹 기술에서 사용하는 논리적 또는 물리적 리소스를 식별하는 고유한 문자열 시퀀스다.

  • URI의 하위 개념으로 URL과 URN이 있다.

  • 어떤 형식이 있다기 보다는 특정 자원을 식별하는 문자열을 의미한다.

단어를 뜯어보면 쉽게 이해할 수 있다.

Uniform

유니폼은 리소스를 식별하는 통일된 방식을 말한다. 축구팀 유니폼처럼.

Resource

리소스는 직역해도 자원이고 실제로 여기서도 자원을 뜻한다. URI로 식별이 가능한 모든 종류의 자원(웹 브라우저 파일 및 그 외)를 전부 지칭하는 말이다.

Identifier

식별자.

즉 URI는 인터넷 상의 리소스를 식별하는 문자열이다. 그래서 쉽게 “URI는 식별자이다” 라고 말해도 무리가 없을 것 같다.

URL (Uniform Resource Locator)

Uniform과 Resource는 위에서 했으니 지나가자.

Locator

Location이 위치를 뜻하는 것은 다들 알 것이다. “위치를 가리키는 어떤 것” 정도로 이해해보자.

즉 URL은 네트워크상에서 자원의 위치를 나타내기 위한 규약이다. 리소스를 식별할 뿐만 아니라 위치까지 표현해야한다.

웹 사이트 주소 + 컴퓨터 네트워크 상의 자원

네이버에 들어갈 때 우리는 https://www.naver.com로 접속한다.

자연스럽게 앞에 프로토콜을 붙여주는데, 이러면 URL이다.

특정 웹 페이지의 주소에 접속하기 위해서는 주소뿐만 아니라 프로토콜(https, http, sftp, smp 등)을 함께 알아야 접속이 가능한데, 이들을 모두 나타내는 것이 URL이다.

PreviousDNS, IPNextTLS과 SSL

Last updated 1 year ago

💻