Coding Challenge #78 - Uptime Monitoring Service

Coding Challenge #78 - Uptime Monitoring Service

This challenge is to build your own uptime monitoring service. There are many such services and if you work for a company that runs an Internet facing property your company probably uses one of the well known ones such as Pingdom, pusetic, Uptime or Uptime Robot.

Essentially they will monitor your website / API endpoint and provide alerts when it is down so your on-call engineers can restore it ASAP. Some also offer alerts if the latency exceeds a threshold and can monitor it’s availability from multiple geographical locations.

Many will provide historic records of uptime, latency and alerts - useful for tracking your SLIs and SLAs.

But first…


The Coding Challenges Black Friday Sale Is Now On!

The Coding Challenges Black Friday sale is now on?and ends on?Monday December 2nd.?During this period,?paid subscribers to Coding Challenges can get?40% off all Coding Challenges courses. Check out the paid subscriber benefits page for the coupon code!

Free subscribers can get 20% off all the courses use code?BLACKFRIDAY?at the checkout:

And Maven have gone even further offering 25% off:

This is the biggest discount Coding Challenges does, so if you have been considering a course, this will be the best opportunity you get until next Black Friday.

The Challenge - Building An Uptime Monitoring Service

For this coding challenge we will be building an uptime monitoring service. It will allow one or more users to:

  1. Enter one or more URLs to be monitored.
  2. Configure the frequency of monitoring.
  3. Define an action to take when the monitored URL is either: Too slow to respond with a full page, or Not responding at all.
  4. View historical uptime and response-time data.

You could build this as a simple command line tool, just for your own use or you could build a full blown web based service hosted in the cloud. If so don’t forget AWS offer a free tier, Azure offers a similar set of services that are free (with limits) for 12 months and Google Cloud offers 20+ free products for all customers (with limits) and $300 in free credits (at the time of writing). Other cloud providers are also available.

Step Zero

In this step you decide which programming language and IDE you’re going to use and you get yourself setup with a nice new project for your uptime monitor. You might like to mix a couple of programming languages for this coding challenge, one for the backend and monitoring functionality and another for the user interface.

Step 1

In this step your goal is to allow the user to enter one or more URLs to be monitored and to set a frequency for monitoring. You will then need to store this in a database.

Depending on the solution you decide to build that could be as simple as a flat file or as complex as a cloud hosted SQL/NoSQL database. You could use any of those, but they will all have trade-offs.

Continued...

You can find the rest of this coding challenge on the Coding Challenges Substack or on the Coding Challenges website.

Gautam A.

Software Engineer

3 个月

What are the rules for doing a challenge? Are we suppose to use an inbuilt library or third party or every thing from scratch?

Omar Halabieh

Tech Director @ Amazon Payment Services | I help professionals lead with impact and fast-track their careers through the power of mentorship | #1 LinkedIn Arab World Creator in Management & Leadership

3 个月

Appreciate the challenges you share John Crickett to help others uplevel.

回复
Ali Zain Aslam

Apprenticeship | MERN Stack Web Developer

3 个月

John Crickett, These both links are not showing rest of details for this challenge.

Anton Martyniuk

Microsoft MVP | Helping 25K+ .NET Engineers Advance Careers to Senior/Architect roles | Technical Lead

3 个月

Build own Git Client and IDE to create an URL shortener, deploy it using own command line tools. Write posts on LinkedIn and provide links to your website and blogs using this URL Shortener. You have something to build for at least the whole decade. You'll thank me later ??

要查看或添加评论,请登录

John Crickett的更多文章

  • Coding Challenge #85 - Time Zone Converter

    Coding Challenge #85 - Time Zone Converter

    Coding Challenge #85 - Time Zone Converter This challenge is to build your own Time Zone Converter. That is a tool to…

    12 条评论
  • From The Challenges - IRC Client

    From The Challenges - IRC Client

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges “from the challenges” newsletter I’m…

    5 条评论
  • Coding Challenge #84 - Mandelbrot Set Explorer

    Coding Challenge #84 - Mandelbrot Set Explorer

    This challenge is to build your own Mandelbrot set explorer. The Mandelbrot set is a set of fractals that exhibit great…

    4 条评论
  • From The Challenges - Cat

    From The Challenges - Cat

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges “from the challenges” newsletter I’m…

    7 条评论
  • Coding Challenge #83 - Markdown Presentation Tool

    Coding Challenge #83 - Markdown Presentation Tool

    Coding Challenge #83 - Markdown Presentation Tool This challenge is to build your own version of Go’s Present or…

    3 条评论
  • From The Challenges - Shell

    From The Challenges - Shell

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges “from the challenges” newsletter I’m…

    3 条评论
  • Coding Challenge #82 - Markdown To PDF Editor

    Coding Challenge #82 - Markdown To PDF Editor

    Coding Challenge #82 - Markdown To PDF Editor This challenge is to build your own tool to convert markdown to PDF. It…

    14 条评论
  • From The Challenges - Diff

    From The Challenges - Diff

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges “from the challenges” newsletter I’m…

    7 条评论
  • Coding Challenge #81 - Brainf*ck Interpreter

    Coding Challenge #81 - Brainf*ck Interpreter

    This challenge is to build your own Brainf*ck Interpreter. Just in case you’re wondering, yes the * should be a u, but…

    34 条评论
  • From The Challenges - URL Shortener

    From The Challenges - URL Shortener

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges “from the challenges” newsletter I’m…

    13 条评论

社区洞察

其他会员也浏览了