Skip to Content
網頁應用程式設計--使用 Node 和 Express
book

網頁應用程式設計--使用 Node 和 Express

by Ethan Brown
December 2014
Intermediate to advanced
336 pages
6h 34m
Chinese
GoTop Information, Inc.
Content preview from 網頁應用程式設計--使用 Node 和 Express
140
|
第十二章
UptimeRobot
http://uptimerobot.com/
)可以免費使用 50 個監控程式,而且很容易設
定。它可以將警報發送到 emailSMS(文字訊息)、Twitter,或 iPhone app。你可以監
控單一網頁的回傳碼(除了 200 之外的都會被視為錯誤),或查看網頁上的關鍵字是否
存在。記住,如果你使用關鍵字監控程式的話,它可能影響你的數據(在大多數的分析
服務中,你可以排除工作時間監控程式的流量)。
如果你的需求比較複雜,也有其他較昂貴的服務,例如 Pingdom
http://pingdom.com/
Site24x7
http://www.site24x7.com/
)。
應用程式故障
工作時間監控程式在偵測大規模故障時很好用。如果你使用關鍵字監控程式的話,它們
甚至可以偵測應用程式故障。例如,如果你很誠實地加入關鍵字“伺服器故障”,當你
的網站回報錯誤時,關鍵字監控或許可以滿足你的需求。但是你經常想要優雅地處理
故障。讓你的使用者看到“很抱歉,這個服務目前正在維護中”訊息,而且可以收到
email 或文字訊息讓你知道故障的發生。當你依賴第三方元件時,通常這是你會採取的
做法,例如資料庫或其他的 Web 伺服器。
處理應用程式故障有一種輕鬆的方式,就是用電子郵件寄送錯誤給你自己。在第十一
章,我們看到如何建立一個錯誤處理機制來通知你發生錯誤。
如果你想要更複雜的通知(例如,如果你有大量的 IT 人員,有一些人會輪值“待
命”),你可以考慮通知服務,例如 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

HTML5與JAVASCRIPT WEB APPS開發實務

HTML5與JAVASCRIPT WEB APPS開發實務

Wesley Hales
jQuery Mobile建置與執行

jQuery Mobile建置與執行

Maximiliano Firtman

Publisher Resources

ISBN: 9789863474371