用Go (Golang)和WebSockets开发实时Web应用|Working with WebSockets in Go (Golang)

用Go (Golang)和WebSockets开发实时Web应用|Working with WebSockets in Go (Golang)

WebSockets是一项技术,它使开发人员可以构建高度实时交互,非常快速的Web应用程序。由于所有现代浏览器都支持WebSocket,并且已经使用了很多年,因此没有理由不能在任何现代Web应用程序上实现它们。本课程将向您展示如何在Go中使用WebSockets。

我们将使用两种WebSocket技术:首先,直接从Web应用程序到所有连接的浏览器的简单调用,其中所有功能均由我们的应用程序处理。我们将构建的Web应用程序是一个简单的聊天应用程序,它将允许用户来回聊天,并显示实时更新的已连接用户列表。

接下来,我们将利用兼容Pusher的服务器(如果需要,也可以使用Pusher本身),并将该服务器用作Web应用程序和所有连接的客户端之间的消息代理。

我坚信,将特定技术应用于实际情况时,学习如何使用特定技术最为有效。很多时候,教程和课程过度简化了他们试图教的内容,并创建了一个人为的环境,事情变得如此简单,以至于所教的内容看起来很容易,但是当您试图在更复杂的环境中实现它时,就会立即遇到问题。项目。因此,为了实现和了解WebSockets和Pusher,我们将构建一个Web应用程序,该应用程序监视远程服务器和主机,并在服务中断或重新启动时实时通知我们。

MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English + .srt | Duration: 85 lectures (14h 8m) | Size: 6.6 GB
How to make highly interactive and responsive applications using WebSockets and Go

此内容仅限VIP查看,请先
本站资源仅限VIP会员下载点击购买VIP会员

What you’ll learn:
How to work with Websockets in Go (Golang)
How to build a real-time, responsive application using websockets
How to connect to third party services like Pusher, and how to use our own self-hosted Pusher-compatible service
How to build a real-time server monitoring web application
How to schedule periodic events in Go
How to write tests for websocket handlers
The basics of building a secure web application in Go
How to send SMS messages with Go using Twilio

Requirements
A basic knowledge of the Go programming language
A basic knowlege of Javascript
An internet connected computer (Windows, Mac, or Linux)

Description
WebSockets are a technology that allows developers to build highly interactive, extremely fast web applications. Since WebSockets are supported by all modern browsers, and have been for years now, there is no reason why they cannot be implemented on any modern web application. This course will show you how to work with WebSockets with Go.

We will work with two kinds of WebSocket technologies: first, with simple calls directly from our web application to all connected browsers, where all functionality is handled by our application. The web application we’ll build is a simple chat application, which will allow users to chat back and forth, and will show the list of connected users, updated in real time.

Next, we’ll take advantage of a Pusher compatible server (or Pusher itself, if you prefer) and use that server as a message broker between our web application and all connected clients.

I am a firm believer that learning how to use a particular technology works best when applying it to a real-world situation. All too often, tutorials and courses over simplify what they are trying to teach, and create an artificial environment where things are so simple that what is being taught looks easy enough, but you immediately run into problems when trying to implement it on a more complex project. So, to implement and learn about WebSockets and Pusher, we’ll build a web application which monitors remote servers and hosts, and notifies us in real-time when a service goes down or comes back up again. We will send notifications in real time using WebSockets (which will update the appropriate content on the pages being viewed by all connected clients), by email, and, as a bonus, we’ll also learn how to send notifications using text messages (SMS) with Twilio.

Who this course is for
Developers who want to make their web applications faster and more responsive.
Developers who are familiar with Go, and want to learn how to build highly responsive web applications

a5q16RlDe2l7xpL4OeKXwBpa56cFoDMs

原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/1277.html

赞 (0)
steven的头像steven
上一篇 2021年3月30日
下一篇 2021年3月30日

相关推荐

发表回复

登录后才能评论
分享本页
返回顶部