Introduction to Go Fiber (and why you should NOT use it)

Поділитися
Вставка
  • Опубліковано 22 сер 2024

КОМЕНТАРІ • 73

  • @GolangDojo
    @GolangDojo  2 роки тому +4

    📝Get your *FREE Golang Cheat Sheet* -
    golangdojo.com/cheatsheet

  • @GAMarine137
    @GAMarine137 2 роки тому +53

    Been using Go Fiber for a year and it is awesome. Extremely performant and easy to use

    • @codelucky
      @codelucky 2 роки тому +2

      How do you compare it with gRPC? Even that's super fast.

    • @GAMarine137
      @GAMarine137 2 роки тому +3

      @@codelucky it’s been amazing. Sub-millisecond api response even under full load with zero errors. I also love the middleware options

  • @jeno427
    @jeno427 2 роки тому +23

    The lack of http2 would rarely be a problem. Usually you put these web services behind a reverse proxy that handles SSL certificates, throttling etc. Your internal services can still use http1.1. The more interesting argument is that fasthttp is a lot faster than the standard library but since normally the database is the bottleneck, you wouldn't notice that speed. Certainly worth considering. However in a microservices architecture there is a lot of communication between services where fasthttp can be leveraged (all behind a reverse proxy).

    • @bitman6043
      @bitman6043 2 роки тому

      Yeah, your reasoning I understand. His - not so much

    • @BboyHotshot
      @BboyHotshot Рік тому

      Why use http at all for internal communications. Message queues are faster and decoupled.

  • @AlexisRodriguez-rk1ts
    @AlexisRodriguez-rk1ts 2 роки тому +27

    Please do that Go modules video! Thanks for the video!

  • @zcizzorhandz5567
    @zcizzorhandz5567 2 роки тому +8

    I don't like the concept of Go Fiber. I didn't come from Node to Go just to do things the Node way. That's just my POV.
    But I must say the video title is misleading and it implies that there is something bad about Go Fiber (Which is not the case)
    I think this a little unfair to the people working on Go Fiber.

    • @snehanshuphukon728
      @snehanshuphukon728 3 місяці тому

      The only thing i think is similar between express and fiber is the endpoint path definition. Example how you specify method and params. The rest are quite different.

  • @roberto_camp
    @roberto_camp 2 роки тому +5

    Yes, do the Go Modules video, asap! ✌🏾

  • @OganySupreme
    @OganySupreme 4 місяці тому +1

    It looks like go fiber now supports HTTP/2 as Fasthttp gained support for it. Note that as of the time I made this comment, this video was 2.5 years old.

  • @mx338
    @mx338 Рік тому +2

    Not having HTTP2 will not result in compatibility issues, it HTTP1.1 is just slower but still supported by every browser, and significant amount of websites and services still exclusively use it.
    6 years may seem old to web developers but for a protocol like H2 it's still rather young.

  • @TJ-wc3iq
    @TJ-wc3iq 2 роки тому +5

    Excellent! ✌🏻More videos about Web development please 🔥

  • @alexanderwoods4625
    @alexanderwoods4625 2 роки тому +6

    Thanks for the video!
    I think the "why you shouldn't use it part is a bit misleading - realistically, almost all APIs are built with some framework. I've never seen one built with the raw HTTP libraries (why would a team choose to do this? Companies want us to focus primarily on business logic, not low-level details).
    I think folks want performance with little development overhead.
    I'd be more interested in hearing why you shouldn't use Fiber compared to Gin or another Go API framework.
    Curious to hear if anyone disagrees with me - do any of you guys use built-in HTTP libraries to develop APIs (not just for fun)?

    • @dineyantunes4630
      @dineyantunes4630 2 роки тому +1

      I think when it comes to real production application, you won't rely on reinventing the wheel (neither using println to respond requests o.o like in the example)
      Also readability and simplicity is one thing which you should care a lot, because you working with teamates, the more clarity in your code the better. So, I'll use any frameworks if they give me these things I've appointed

    • @dineyantunes4630
      @dineyantunes4630 2 роки тому

      I've used both fiber and gin and also chi for some periods. They are great, which one has its own benefits, but when it comes to writting fast, simple and easy handlers to understand, gin and fiber, in my opnion, outstands

    • @edboss36
      @edboss36 Рік тому

      @@dineyantunes4630 Is Go your first programming language?

  • @doodelinux
    @doodelinux 9 місяців тому +1

    Hi mate, very good video, do you intend to update this content to a more recent version ?

  • @mkgenov3691
    @mkgenov3691 2 роки тому +5

    I know how Go modules work but i would be happy see a tutorial about it here. Thanks.

  • @flogginga_dead_horse4022
    @flogginga_dead_horse4022 2 роки тому +2

    Fiber is great, it just isn't as mature as a few other frameworks. Keeping track of it until it does everything I need.

  • @wadoudazer6906
    @wadoudazer6906 11 місяців тому

    this video was really beautiful and helpful for me , i am really interested to migrate from nodejs to go to fiber :) , and i like the last song in the outro of this video hhh. thank you my freind !

  • @aburaihan4245
    @aburaihan4245 2 роки тому +2

    Always enjoy your video because your video is full of important info. Keep it up. Love u #bro🇧🇩

    • @GolangDojo
      @GolangDojo  2 роки тому +1

      Glad you found them helpful!

  • @captainmujheri
    @captainmujheri 2 роки тому +3

    Make video on Go Modules, and Explain Briefly

  • @csmastery1337
    @csmastery1337 2 роки тому +3

    what happened to the go web app series?
    will there be a tutorial series on authentication and sessions?

    • @GolangDojo
      @GolangDojo  2 роки тому +1

      Taking a pause to learn some other things. Will continue it soon!

    • @csmastery1337
      @csmastery1337 2 роки тому

      @@GolangDojo I'll be looking forward to it!

  • @kay23456
    @kay23456 Рік тому

    Really awesome tutorial! Thank you!

  • @Myektaie
    @Myektaie Рік тому +1

    This is a misleadng title! The downside are common to all framework, not just fiber except the http 2 one, but I wasted 17 minutes on this video.

  • @neerajbg
    @neerajbg 2 роки тому

    Please make a video on channel , routines that paves the way to concurrency. And interface as well as it helps clean code. Thanks for ur effort mate

  • @theodoreivanov6257
    @theodoreivanov6257 Рік тому +1

    Very instructive. By the look of your editor, it appears to be VSCode, but with a specific look and feel, which I find most pleasant. Can you tell us what this theme is ? Thanks.

  • @parthipankalayini8
    @parthipankalayini8 2 роки тому +2

    gin gonic vs fiber
    Which is better one ?!

  • @mx338
    @mx338 Рік тому

    It's open source, so why would I not be able fix bugs in it?

  • @rydmerlin
    @rydmerlin Рік тому

    Why isn’t it 201 for your createNinja?

  • @guhkunpatata3150
    @guhkunpatata3150 2 роки тому

    Thanks for the video!
    i wonder if you could create video about the pros vs cons fiber vs gin.

  • @AdharshMk96
    @AdharshMk96 Рік тому

    Thats why i made my own framework using http standard library

  • @mx338
    @mx338 Рік тому

    On Linux port 80 and all other ports bellow 1024 are privileged ports, so your app might not be able to start on port 80 without running it via sudo.

  • @datacruncher1564
    @datacruncher1564 2 роки тому +1

    I am contemplating, creating an ads clickstream project in Golang. Which other Golang framework can we use instead of Fiber which is faster with less memory footprint and has lesser cpu consumption? Thanks!

    • @thatonesnowboarde
      @thatonesnowboarde Рік тому +1

      pure golang, but fiber is the fastest go framework based on the benchmarks i have seen maybe I am wrong

  • @hos7012
    @hos7012 Рік тому

    why it took 500 ms ? isn’t go fater than that?

  • @lexsoft3969
    @lexsoft3969 2 роки тому

    I am still looking for reference on how to use Pug in Fiber. For instance, how to use iteration described in Pug doc, because I find it only works for javascript, not Go. Does this mean, I have to modify pug code using Go syntax ?
    The example in Fiber doc doesn't explain this thing; it only has an example of simple interpolation.

  • @chamod_jayampathi
    @chamod_jayampathi 2 роки тому

    please do a video about go modules

  • @bavan1358
    @bavan1358 2 роки тому

    I wanted to break your PC so bad after watching that theme, anyways.. thanks for the tutorial

  • @asuzukosi581
    @asuzukosi581 2 роки тому +1

    I STILL DONT UNDERSTAND GO MODULES

    • @xanaduzhang186
      @xanaduzhang186 2 роки тому

      Is it an alternative “CMake”?

    • @frankhuurman3955
      @frankhuurman3955 2 роки тому

      Every new project I keep on having trouble with Go modules again, right now I'm working on a Fyne app in Go but every time I try to load in a part of the framework it auto-imports parts of version 1 of the Fyne framework and it's nowhere to be found in the dependencies so Go modules and imports/dependencies are why I still don't like working with Go as much as I'd like to.
      I've also noticed that sometimes Goland doesn't resolve dependencies that are actually available, after restarting the IDE it picks up on them but that I guess that's an issue with the IDE.
      Plus the whole:
      - go mod init
      - go get package
      - go mod tidy
      workflow never seems to work consistent for me to get third party things running.

    • @GolangDojo
      @GolangDojo  2 роки тому +1

      In the pipeline!

  • @MrAtomUniverse
    @MrAtomUniverse Рік тому

    I end up using GIN -.-

  • @kousheralam8657
    @kousheralam8657 Рік тому +1

    Very misleading title , 1000 dislike

  • @redbionic
    @redbionic 2 роки тому

    What’s app 🇮🇩

  • @kaushik5055
    @kaushik5055 2 роки тому

    👍

  • @davidagyakwa288
    @davidagyakwa288 2 роки тому

    what about gin gonic

  • @MarvinCollins14
    @MarvinCollins14 2 роки тому +1

    kinda a bait tittle

    • @GolangDojo
      @GolangDojo  2 роки тому

      What do you mean?

    • @StickyPlasters
      @StickyPlasters 2 роки тому

      Not a bait title. The Fasthttp issue is why lots of people avoid Fiber right now

  • @Seraph_impact
    @Seraph_impact 2 роки тому +1

    Introductioneeeh tow gohhh fiberhhh

  • @oktay9784
    @oktay9784 Рік тому

    how you guys understand this guy

  • @wissemaljazairi
    @wissemaljazairi 2 роки тому

    Stop with this fake accent

  • @phanirithvij
    @phanirithvij 2 роки тому

    you can do go build && .\exectuable.exe, that will prompt the firewall on windows only once.