Go Lang Framework to watch in 2022
Go Lang is becoming quite popular not only because it is easy to learn but also for its performance, concurrency and other useful constructs. Like emerging, easy and performant Python frameworks like FastAPI, it seems Go Fiber as a good candidate for becoming the next popular Go Framework.
Reasons:
- Minimalism: Good level of abstraction, aiding developer productivity like FastAPI or Express.js frameworks. Example: Hello World from Go Fiber.
//main.go package main import ( "log" "github.com/gofiber/fiber/v2" ) func main() { app := fiber.New() app.Get("/", func (c *fiber.Ctx) error { return c.SendString("Hello, World!") }) log.Fatal(app.Listen(":3000")) }
2. Performance: Claims to be "one of the" fastest and lightest frameworks. Refer: gofiber.io for more comparative stats.
3. Other goodies: In-built support for TLS, HTTP Pipelining, AWS Lambda, Middleware, RateLimiter and PreFork making it ready for production.
Although there is AWS Lambda adapter - could not find a working example for it and hence created a small one on GitHub last weekend.