Advent of System Design - Day 1 of 31 : URL Shortener

2026-12-01来源 dev.toEnglish
Advent of System Design - Day 1 of 31 : URL Shortener

This December, I am challenging myself to finish the Advent of System Design by Arjay McCandless and document my progress here to keep myself accountable.

The first day of the challenge really piqued my interest for problem solving and math skills. Coincidentally, the first challenge is a URL shortener, which was my technical exam when I applied to Swarm as a Software Engineer Intern.

I was provided with a laptop and access to Claude Code, which kinda bummed me out, I was pretty confident to do it with a simple vanilla HTML interface where it would return the shortened url.

However, the experience felt lackluster as the AI Agent did most of the building and prompted it to deploy it to Cloudflare, through the wrangler cli. It was effortless if you ask me since the AI did most of the building.

Although, if I hadn't had AI assistance it might take me the whole day or a few hours to accomplish and deploy it to AWS. Cloudflare was the ideal option as it serves directly to edge, according to my findings that day, and I didn't had that much experience with Typescript which you will use to build on Cloudflare workers.

5 minute challenge he said...

Arjay mentioned that a challenge could just take around 5 minutes lol, but the first challenge took me longer than that as I really enjoyed solving the math problems.

This is a great opportunity for me to use my pen and paper to solve problems without the assistance of AI. A few questions I had knowledge and prior experience already.

The reason why it took me so long to answer some questions, I had to :

  • study how to convert base 10 to base 62,
  • do manual computation of converting decimal to a whole number 😂 (brings me back to my high school days)

I was ecstatic when I was able to solve the 2nd question, I thought I still have that competitive mathematician in me way back in high school. However, I got confused with the next question by thinking that I just needed to convert the number to a base62.

Putting on my Solutions Architect Hat

After solving the quiz you will be presented with a solution challenge.

I liked that most of the services mentioned in the challenge are about AWS since I am a Certified Cloud Practitioner, so I am kinda familiar with some of the services mentioned.

Basically, you are going to calculate what is the viable architectural approach that will pass the criteria given without stressing the system by designing whether you should use a large database, utilize caching, or either HTTP 301 or 302 redirects.

Moving forward
As a Junior Engineer, I genuinely think that I need this to improve my technical and architectural decisions in building systems. So come and join me in completing this challenge to become a better developer.

1/31

One system design problem a day, Dec 1–31. Free, no account needed.

favicon devmaxx.dev

原文:https://www.a8q9.cn/en/article/advent-of-system-design-day-1-of-31-url-shortener-bfd19b.html

相关文章