Udemy

How to develop a productive HTTP client in Golang (Go)

立即報名
  • 2,112 名學生
  • 更新於 10/2020
  • 可獲發證書
4.4
(214 個評分)
CTgoodjobs 嚴選優質課程,為職場人士提升競爭力。透過本站連結購買Udemy課程,本站將獲得推廣佣金,有助未來提供更多實用進修課程資訊給讀者。

課程資料

報名日期
全年招生
課程級別
學習模式
修業期
9 小時 43 分鐘
教學語言
英語
授課導師
Federico León
證書
  • 可獲發
  • *證書的發放與分配,依課程提供者的政策及安排而定。
評分
4.4
(214 個評分)
2次瀏覽

課程簡介

How to develop a productive HTTP client in Golang (Go)

Stop choosing between performant and testable HTTP clients. We're building one from scratch!

Have you ever called a REST API from your Go program? Did you implemented your own HTTP client or did you ended up using some of the thousand libraries out there? Do you know what your HTTP client is doing in the background?


In this course we're starting from scratch! We're going to remember how a basic HTTP call looks like by digging into the request & response objects. We're going to write a basic HTTP client to perform HTTP requests and then use it in productive applications. What issues do we have? Can we scale our applications by following this approach? Of course not! That's why we're creating an HTTP client library that provides:

  • Fast, reliable and friction-free HTTP connections.

  • Support for all HTTP methods: GET, POST, PUT, DELETE, PATCH and more!

  • A Concurrency-Safe HTTP client that you can use without worrying about performance.

  • Content type management and optimization.

  • Mocking features out of the box.

  • A clean interface in case you want to unit test your code without relying on integration testing features.

  • A robust implementation so you won't need any external dependency whatsoever.

  • Completely customizable interface: timeouts, transport layer, custom HTTP client and lots of useful features.

  • A library that is PRODUCTION-READY!

If you're looking to integrate a 3rd party REST APIs in your code, you'll need to perform an HTTP call to it. Make sure you take a look at this course before even considering alternatives out there that will force you to use different dependencies for running, testing and extending your code! As Robert Pike says: "A little copying is much better than a little dependency". In this course we're not only getting rid of the dependencies but we're also getting rid of the copying. We're not using anything more than the Go's standard library to design & develop our own HTTP client.


This client will the baseline for all of the applications we're going to build later, making our business scale and grow as fast as we can Go.


Take a look at the preview lessons you have available to have an idea about the structure and content of the course. I know you're going to enjoy it! If you have any doubt, take a look at my other courses and see what my students have to say!


See you on the other side!

課程章節

  • 7 個章節
  • 45 堂課
  • 第 1 章 Introduction
  • 第 2 章 HTTP calls
  • 第 3 章 Working on the core
  • 第 4 章 Testing & Mocking features
  • 第 5 章 Publishing & using our library
  • 第 6 章 Tuning our library
  • 第 7 章 Final chapter

課程內容

  • Understand the paradigms behind the Go programming language.
  • What an HTTP client is.
  • How to perform HTTP calls in Go.
  • Issues and blocks when working with native HTTP client.
  • How to design a Go library from scratch using Modules.
  • How to design a public API: Interfaces and methods.
  • How to provide mocking features out of the box.
  • Unit, integration and functional testing our HTTP client.
  • Most important: End up with a production-ready HTTP client that you can use without worrying about performance!


評價

  • M
    Michael Falk
    4.0

    There are definetely some things I learned from this course regarding how to structure my Golang projects and some idiomatic ways of building interfaces and structs. But overall until now the return on investment is not the greatest. The tutor does explain things often in a great manner but also I feel like a lot is beeing omitted or the reasoning is incomplete.

  • S
    Sergii Sizov
    5.0

    I liked this Go course, because it is showing the real programming practice. Choosing "HTTP client" as an example app is a very good idea :)

  • J
    João Kiakumbo Sebastião
    5.0

    Very good course, good explained content and best coding practices applied.

  • S
    Sidharth Mohanty
    4.0

    Nice explanations, and I am always a fan of Federico. The videos are sometimes long but it's not at all a minus to take this course.

立即關注瀏覽更多

本網站使用Cookies來改善您的瀏覽體驗,請確定您同意及接受我們的私隱政策使用條款才繼續瀏覽。

我已閱讀及同意