반응형

<참고> https://masteringbackend.com/posts/top-5-golang-frameworks

Go 언어 프레임워크 Top 5

 

인기도, 사용 횟수, Github 스타 개수 기준, 2023년 최고 Golang 프레임워크 5개는 다음과 같다.

 

  1. Gin Framework
  2. FastHTTP
  3. Echo
  4. Beego
  5. Fiber

Gin Framework

Gin 프레임워크는 Go로 작성되었으며  많은 기능을 갖춘 빠른 웹 프레임워크이다. Martini에서 영감을 받았지만 Gin은 Martini보다 최대 40배 빠르다. 

미들웨어는 요청을 가로채서 서버로 보내기 전에 특정 작업을 수행하므로 모든 백엔드 개발 언어 및 도구에 필수이다. Gin 프레임워크에는 개발자가 미들웨어 체인과 최종 작업을 통해 들어오는 HTTP 요청을 처리하도록 구성할 수 있는 미들웨어 지원이 포함되어 있다. 예를 들어 Logger, Authorization, GZIP, DB 게시 등이다.

이외에 에러 처리, JSON 검증, 라우트 그룹 등을 지원한다.

 

https://gin-gonic.com/docs/

 

Documentation

Gin Web Framework

gin-gonic.com

 

FastHTTP

FastHTTP는 Go용 고속 HTTP 패키지이고 높은 성능을 제공한다. Golang의 원래 net/http 패키지보다 최대 10배 빠르다.
FastHTTP는 초당 수천 개 요청을 처리하고 일관된 낮은 밀리초 응답이 필요한 경우에 잘 동작하는 Golang의 빠른 HTTP 구현이다.

 

https://pkg.go.dev/github.com/valyala/fasthttp

 

fasthttp package - github.com/valyala/fasthttp - Go Packages

Discover Packages github.com/valyala/fasthttp Jump to ... README Documentation Overview Index Constants Variables Functions AcquireTimer(timeout) AddMissingPort(addr, isTLS) AppendBrotliBytes(dst, src) AppendBrotliBytesLevel(dst, src, level) AppendDeflateB

pkg.go.dev

 

Echo 

Echo 프레임워크는 작지만 고성능을 제공하며, 확장 가능한 Go 웹이다. 개발자는 최적화된 라우터, 미들웨어, 데이터 렌더링, 템플릿 등을 이용하여 확장 가능한 API를 구축할 수 있다.

 

https://echo.labstack.com/docs

 

Introduction | Echo

LabStack Echo Project

echo.labstack.com

 

Beego 

Beego 프레임워크는 Go 방식으로 애플리케이션을 구축하고 개발할 수 있는 오픈 소스이다. 인터페이스 및 구조체 임베딩과 같은 Go 관련 기능이 통합된 API, 웹 앱, 백엔드 서비스 등 Go 애플리케이션을 빠르게 개발하기 위한 RESTful HTTP 프레임워크이다.

 

https://github.com/beego/beego

 

GitHub - beego/beego: beego is an open-source, high-performance web framework for the Go programming language.

beego is an open-source, high-performance web framework for the Go programming language. - GitHub - beego/beego: beego is an open-source, high-performance web framework for the Go programming langu...

github.com

 

Fiber 

Fiber는 Fasthttp를 기반으로 구축된 Golang 웹 프레임워크이다. 빠른 개발을 쉽게 할 수 있도록 설계되었습니다. 프레임워크는 Go로 작성된 Express에서 영감을 받았다.

 

https://gofiber.io/

 

Fiber

An Express-inspired web framework written in Go.

gofiber.io

 

그외

이외에 다음과 같은 프레임워크도 있다.

  1. Revel
  2. Martini
  3. Mango
  4. Iris
  5. Kit
  6. Goji
  7. Buffalo
  8. Webgo
반응형

+ Recent posts