Giter Site home page Giter Site logo

experimental-duke_of_url's Introduction

What Is It?

Python & Cassandra url service. Give it a url, get some JSON.

Why Cassandra?

Distributed, scalable, high-performance, supports pretty easy clustering.

Why Python?

I'm most familiar with it. Not for performance reasons, certainly.

Instructions

  1. Install VirtualBox
  2. Install Vagrant
  3. Install git.
  4. Git clone this.
  5. From the git shell, navigate to <code_location>/machine_1
  6. vagrant up
  7. vagrant ssh or configure PuTTY to communicate with Vagrant
  8. ifconfig. Take note of the ip.
  9. cd synced/code/
  10. cqlsh <ip> < install.cql ( using the machine's IP, the public 192.168.X.X one, not the private 10.X.X.X one )
  11. python main.py .
  12. Open a browser and visit <ip>:5000
  13. Type in <ip>:5000/curtis.lassam.net:80/index.html . Ideally, everything is working.
  14. To create a second machine, open machine_2/Vagrantfile
  15. Replace the IP in the line :seeds => [ '192.168.1.86' ] with the IP of machine_1.
  16. vagrant up
  17. vagrant ssh
  18. cd synced/code/
  19. python main.py . This ip is now serving the URL service as well.
  20. To create machine_3, just copy machine_2's Vagrantfile into a new folder

Todo

  • Some kind of security? I'm like 90% sure publicly accessible DB and publicly modifiable URL safety data is not kosher.
  • Script to generate urls to cram down the service's throat
  • Report on the service's capacity and load to determine when to create new services.
  • Put up servers. Take down servers. How flexible is this thing?

experimental-duke_of_url's People

Contributors

cube-drone avatar

Watchers

 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.