카테고리 없음

[API] API Architecture (REST, GraphQL, SOAP)

donghunl 2024. 3. 5. 04:44
반응형

1. REST (Representational State Transfer)

REST is a widely used architectural style for designing networked applications. It employs standard HTTP methods(GET, POST, PUT, DELETE) to operate on resources using URIs.

 

특히 단순성, 확장성, 유연성이 중시되는 상황에서 웹에서 API를 구축하는 데 널리 사용됩니다. RESTful API는 웹 및 모바일 애플리케이션뿐만 아니라 트위터 및 구글과 같은 회사에서 제공하는 공개 API에도 널리 사용됩니다.

 

2. GraphQL (Graph Query Language)

Developed by Facebook, GraphQL is an alternative to REST that allows clients to request only the data they need, providing a more efficient and flexible approach.

 

정확한 데이터 요구 사항과 성능 최적화가 중요한 데이터 집약적인 애플리케이션을 구축하는 개발자들 사이에서 인기를 얻고 있습니다. GraphQL은 소셜 미디어 플랫폼, 전자 상거래 웹 사이트 및 콘텐츠 관리 시스템과 같은 시나리오에서 일반적으로 사용됩니다.

 

3. SOAP (Simple Object Access Protocol)

SOAP is a protocol used for exchanging structured information in web services. It uses XML for message formatting and typically operates over HTTP or SMTP.

 

일반적으로 기업 환경, 특히 금융 거래 또는 의료 시스템과 같이 보안과 신뢰성이 중요한 시나리오에서 사용됩니다. 복잡성 때문에 구현 및 유지 관리에 더 많은 노력이 필요할 수 있습니다.

 

반응형