Python & Cassandra url service. Give it a url, get some JSON.
Distributed, scalable, high-performance, supports pretty easy clustering.
I'm most familiar with it. Not for performance reasons, certainly.
- Install VirtualBox
- Install Vagrant
- Install git.
- Git clone this.
- From the git shell, navigate to
<code_location>/machine_1
vagrant up
vagrant ssh
or configure PuTTY to communicate with Vagrantifconfig
. Take note of the ip.cd synced/code/
cqlsh <ip> < install.cql
( using the machine's IP, the public 192.168.X.X one, not the private 10.X.X.X one )python main.py
.- Open a browser and visit
<ip>:5000
- Type in
<ip>:5000/curtis.lassam.net:80/index.html
. Ideally, everything is working. - To create a second machine, open machine_2/Vagrantfile
- Replace the IP in the line
:seeds => [ '192.168.1.86' ]
with the IP of machine_1. vagrant up
vagrant ssh
cd synced/code/
python main.py
. This ip is now serving the URL service as well.- To create machine_3, just copy machine_2's Vagrantfile into a new folder
- 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?