Link Too Big? Make Link Short → libi.me
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmark
expander
lib
shortener
.dockerignore
.gitignore
ARCHITECTURE.md
Dockerrun.aws.json
LICENSE
NOTES.md
README.md
architecture.png
docker-compose.yml
in-action.gif

README.md

Link Too Big libi.me

⚠️ I had to shut it down to allocate more resources for my other project. Submit an issue if you have any questions ⚠️

Ever got tired of them huge links? Just feed them to libi.me and get super tiny ones instead

Unlike https://bitly.com/ it supports internationalized links, e.g., http://президент.рф

I made this to:

  • Implement highly scalable distributed architecture
  • Make the whole thing runnable on a single machine with a single command
  • Explore Ruby core API
  • See how fast Ruby can go, compare different ways vs. NodeJS
  • Explore Redis database
  • Explore Poi with Vue + JSX
  • Make good UX

How to run

Install Docker and do: docker-compose up, go to http://localhost:20000

It's deployed to AWS EB using: Dockerrun.aws.json

Architecture

See ARCHITECTURE

Benchmark

I benchmarked HTTP server serving Redis values written with:

  • Ruby making new thread on each request
  • Ruby with event-machine
  • NodeJS

See BENCHMARK

Notes

See NOTES

License

MIT, see LICENSE


Leave a star if you like it ♥