GithubHelp home page GithubHelp logo

jameswei / shorturl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smallnest/shorturl

0.0 2.0 0.0 320 KB

a scalable high performance ShortURL server

License: Apache License 2.0

Scala 61.94% Shell 27.67% CSS 0.22% JavaScript 1.94% HTML 8.23%

shorturl's Introduction

shorturl server

A scalable high performance ShortURL server

Dependencies

It depends on:

  • Java: ShortURL backend sever is implemented by Scala which is running on JVM.
  • Nginx (Optional): Load balancer.
  • MongoDB: nosql database for persisting mapping between short urls and real urls.
  • Memcahced (Optional): cache server.

Scalability

You can run this application but you should set up a cluster because ShortURL services serves for many requests as a product. This project is designed for this requirement. You can scale your deployment easily, and even you can your existed cluster.

Backend server

It is stateless so you can scale it as necessary.

Load balancer

you can use Nginx or others as your load balancer. Remeber let your LB run as HA(High Availability)

Database

set up a mongodb cluster as database and use urlId for sharding key.

Cache

set up multiple memcached servers.

More installation guide and design: Wiki

shorturl's People

Contributors

smallnest avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.