https://github.com/cosimo/ticketserver
Flickr-like Ticket Server implemented with Perl + DBI + MySQL
https://github.com/cosimo/ticketserver
Last synced: about 1 year ago
JSON representation
Flickr-like Ticket Server implemented with Perl + DBI + MySQL
- Host: GitHub
- URL: https://github.com/cosimo/ticketserver
- Owner: cosimo
- Created: 2011-09-22T15:52:22.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-09-22T21:08:29.000Z (almost 15 years ago)
- Last Synced: 2025-03-21T19:05:05.938Z (over 1 year ago)
- Language: Perl
- Homepage:
- Size: 97.7 KB
- Stars: 24
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Tickets server
=========================
A sample implementation hacked together in a couple of hours
in Perl + MySQL of the Flickr tickets server, as explained
in this [blog post](http://code.flickr.com/blog/2010/02/08/ticket-servers-distributed-unique-primary-keys-on-the-cheap/).
Assumptions
-----------
* MySQL 5.1+ is installed locally, listening on `localhost:3306`
* Perl 5.8+ is installed, along with DBI (`apt-get install libdbi-perl`)
How to use this
---------------
* Basic sql schema is found in `sql/tickets.sql`
* To test basic sanity, after setting up the db, run: `prove -Ilib -v`
* To stress test the tickets db, run: `perl bin/stress.pl`
Contacts
--------
Email: cosimo@cpan.org
Twitter: @cstrep