# A url shortener service in 35 lines of Clojure

DevFeed: [A url shortener service in 35 lines of Clojure](<https://devfeed.tech/articles/a-url-shortener-service-in-35-lines-of-clojure-32090.md>)

Original publisher: [Read original article](<https://adambard.com/blog/a-clojure-url-shortener-service/>)

Published: 2014-08-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [Adam Bard](<https://devfeed.tech/sources/adam-bard.md>)

Topics: [Clojure](<https://devfeed.tech/topics/clojure.md>), [Scala](<https://devfeed.tech/topics/scala.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [async](<https://devfeed.tech/topics/async.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [clojure](<https://devfeed.tech/tags/clojure.md>), [redis](<https://devfeed.tech/tags/redis.md>), [scala](<https://devfeed.tech/tags/scala.md>)

## AI overview

The article presents a 35-line URL shortener service implemented in Clojure, using Redis and an asynchronous web server. It compares the implementation with a Scala version, discussing dependencies, code size, readability, and testability while noting that performance benchmarking remains an open possibility.

## Source excerpt

I saw this post by Grasswire today, and I couldn't resist the urge to throw down a Fizz-Buzz-pocalypse. So, here's my implementation in Clojure, along with a list of ways that Clojure clearly wins. (That last sentence was to be read tongue-in-cheek, Scala is a good language too. Besties!).